Searching for mcp structured content vs content (or “mcp output schema / tool output schema example”) usually means a server returns both a model-facing blob and a typed payload—and you need a clear split. Short answer—use content for what the model should read (short, honest, scrubbed); use structuredContent (with an outputSchema) for what applications / UIs / validators consume. Do not dump the same giant JSON twice into the model context. This page deepens annotations and resources vs tools; it is not a restatement of SDK flag tables. Build path: MCP server tutorial; ops honesty: best practices.

01

Independence note

02

Working definitions: content vs structuredContent

  • content: the tool-result blocks a host typically shows the model (text, and sometimes other content types). Primary job: a readable, bounded summary the model can reason over without drowning in raw upstream JSON.
  • structuredContent: a typed / object-shaped payload alongside (or instead of dumping) the prose summary. Primary job: application consumption—UI tables, validators, downstream code—without forcing the model to re-parse a wall of JSON from text.
  • outputSchema: a JSON Schema (or SDK equivalent) declaring the shape of structured tool results so clients can validate and document the contract. See outputSchema below—same page, not a second thin URL.

Think of content as the model channel and structuredContent as the app channel. Hosts differ in how aggressively they forward structured fields into the prompt—assume anything you put in content will cost tokens and influence tool choice.

03

When to use which

  • Prefer content alone for small, human-readable outcomes (“created ticket ABC-123”, “3 files matched”). No UI or typed consumer needs fields beyond what the model should see.
  • Prefer structuredContent + outputSchema when a client UI, test harness, or orchestrator must reliably read ids, counts, URLs, or enums—without regexing prose.
  • Prefer both when the model needs a short summary and the app needs typed fields: keep content terse; put the full object in structuredContent; do not paste the full object into content as well.
  • Prefer resources when the payload is large, stable, or browsable context rather than a one-shot action result—see resources vs tools.

04

MCP output schema: when to declare it

Searching for mcp output schema usually means you want the structured result to be a contract, not a suggestion. Declare outputSchema when:

  • Clients (or your own tests) must validate success shapes before trusting fields.
  • Multiple hosts will consume the same server and need documented enums / required keys.
  • You version breaking field renames the same way you version inputSchema.

Skip a heavy outputSchema when the tool only returns a one-line acknowledgement and no app reads structured fields. Schema without consumers is paperwork; consumers without schema are guesswork.

// Illustrative — pin your SDK; field names follow your MCP revision
{
  "name": "create_ticket",
  "inputSchema": { /* ... */ },
  "outputSchema": {
    "type": "object",
    "required": ["id", "url", "status"],
    "properties": {
      "id": { "type": "string" },
      "url": { "type": "string", "format": "uri" },
      "status": { "type": "string", "enum": ["open", "pending"] }
    }
  }
}
// Tool result: short content for the model + structuredContent matching outputSchema

05

How to compose safely

  1. Write the structured object first (ids, status, links)—that is the source of truth for apps.
  2. Derive a short content summary from that object (one to three sentences). Never echo tokens, cookies, or full upstream dumps.
  3. Mark danger honestly with tool annotations when the action mutates or is open-world.
  4. Cap size. Huge structured payloads belong behind a resource URI or pagination—not in every tool result. See pagination.
  5. Keep naming aligned with tool naming so models pick the right tool before caring about result shape.

07

Anti-patterns

  • Double-stuffing: full JSON in content and structuredContent—burns tokens and teaches the model to ignore schema.
  • Schema theater: declaring outputSchema while returning free-form prose that never matches.
  • Secret echo: raw auth headers, cookies, or PII in either channel—“helpful” dumps are breaches.
  • Using structuredContent as a RAG dump: large static text belongs in retrieval / resources, not every tool call. See MCP vs RAG.
  • SDK-flag mirror pages: chasing every helper name instead of deciding which channel the consumer is.

09

FAQ

Is structuredContent better than content?

Neither is universally better. content serves the model; structuredContent serves apps and validators. Prefer both with a short summary when you have typed consumers—without duplicating the full payload into content.

When should I declare an MCP output schema?

When clients or tests must validate structured results, or multiple hosts share the contract. See outputSchema. Skip heavy schemas for one-line acknowledgements with no typed consumer.

Should I put the same JSON in both fields?

No. Derive a short content summary; keep the object in structuredContent. Double-stuffing wastes context and hides the contract.

How does this relate to annotations and resources?

Annotations label risk; resources carry large/browsable context; this page decides result channels for tool calls. See annotations & resources.

Is this an SDK configuration guide?

No. Deliberately not. Pin your SDK and read upstream Structured Output / tool-result docs for exact field names. This page is selection judgment from 墨码 / codemo.fun.

Is this official documentation?

No. Unofficial engineering notes from 墨码 / codemo.fun. Spec text and vendor docs remain authoritative.