Metin mi, Yapılandırılmış İçerik mi
Düz metnin ne zaman, verinin ne zaman döndürüleceğini öğrenin.
Metin mi, Yapılandırılmış İçerik mi, CoddyKit'te ücretsiz bir MCP Academy dersidir. Bu, 4 dersinin 1. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, MCP Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. MCP Academy kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
Two Ways to Reply
Every MCP tool result carries content, and you choose its shape. The big split is plain text versus structured data the client can parse.
What Text Content Is
A text result is just a string for the model to read, like a sentence or a paragraph. It is simple, human-friendly, and easy to drop into a prompt. 📝
What Structured Content Is
Structured content is real data, like a JSON object with named fields. Clients can read each field instead of guessing from prose.
{"temp_c": 21, "condition": "sunny", "city": "Cappadocia"}Why Text Alone Can Fail
If a tool returns "It is 21 degrees and sunny," the client must parse that English to use it. Wording changes break the parsing instantly.
Why Structure Wins for Code
With structured output, a client reads result.temp_c directly. The shape is predictable, so apps and agents can rely on it without scraping text.
You Can Send Both
MCP lets a tool return a readable text summary and structured data together. The model reads the prose; code reads the fields.
When Text Is the Right Call
Pick plain text when the answer is a message for a human to read, like an explanation, a status note, or a short summary.
When Structure Is the Right Call
Pick structured content when another program will consume the result, such as a price, a record, or a list of items to act on.
Default Is Text
If your tool just returns a string, MCP wraps it as text content automatically. Structured output is something you opt into on purpose.
def get_status() -> str:
return "All systems healthy"Think Consumer First
Ask who reads the result: a human, the model, or downstream code? That consumer decides whether you reach for text or structure.
Mixing Is Common
Mature tools usually return both: a friendly summary for the model plus a typed payload for the app. This keeps the result useful on every side.
Quick Check
A tool feeds prices into a billing app. Which output fits best?
Recap: Text vs Structure
You learned the two result shapes: readable text for humans and the model, and structured data for code. Match the shape to who reads it. ✅
Sıkça Sorulan Sorular
“Metin mi, Yapılandırılmış İçerik mi” dersi ücretsiz mi?
Evet — “Metin mi, Yapılandırılmış İçerik mi” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve MCP Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. MCP Academy kursu toplamda 4 dersten oluşur.
“Metin mi, Yapılandırılmış İçerik mi” dersinde ne öğreneceğim?
Düz metnin ne zaman, verinin ne zaman döndürüleceğini öğrenin. MCP Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
MCP Academy öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te MCP Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 1. dersidir.
“Metin mi, Yapılandırılmış İçerik mi” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu MCP Academy dersinde kod yazıp çalıştırabilir miyim?
Evet. Her MCP Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Metin mi, Yapılandırılmış İçerik mi
- Türü Belirlenmiş Sonuç Nesnesi Döndürme
- İstemciler için Çıktı Şemaları
- Görüntü ve İkili Veri Döndürme