Example results carry MCP result values: a Tool result has content, a resource read result has contents, a prompt result has messages, and a completion result has completion. Their members follow the MCP types.
Requirement
Section titled “Requirement”Completed example results have the required members and member types of the MCP result type they carry.
Details
Section titled “Details”Rule ID: mcp.example-result.members
Owner: mcp
Surface: CallToolResult, ReadResourceResult, GetPromptResult, CompleteResult
Kind: structural
Requirement level: must
Protocol versions: independent of the MCP protocol version
Document schema locations: #/$defs/completedToolResultExample, #/$defs/completedReadResourceResultExample, #/$defs/completedPromptResultExample, #/$defs/promptMessageExample, #/$defs/completedCompletionResultExample
Status: internal · Enforcement: internal
Required by
Section titled “Required by”- MCP Description 0.9.0, Sections 3.6, 9.3, 10.4.4, and 11.3
- 3. Document Structure: req-carried-defined-fields
-
- Resources and Resource Templates: req-resource-example-result-shape
-
- Prompts: req-prompt-example-result-shape
-
- Document Structure: req-completed-result-fields
-
- Resources and Resource Templates: req-resource-example-contents
-
- Resources and Resource Templates: req-template-completion-result
-
- Prompts: req-prompt-completion-result
Based on
Section titled “Based on”- Tier 1 — MCP schema.ts and normative specification text: MCP 2025-11-25 and 2026-07-28 schema.ts, CallToolResult, ReadResourceResult, GetPromptResult, PromptMessage, and CompleteResult
- validation/mcp-schemas/2025-11-25/schema.ts#L1104-L1130
- validation/mcp-schemas/2025-11-25/schema.ts#L723-L725
- validation/mcp-schemas/2025-11-25/schema.ts#L971-L977
- validation/mcp-schemas/2025-11-25/schema.ts#L1032-L1035
- validation/mcp-schemas/2025-11-25/schema.ts#L2042-L2057
- validation/mcp-schemas/2026-07-28/schema.ts#L1809-L1838
- validation/mcp-schemas/2026-07-28/schema.ts#L1229-L1231
- validation/mcp-schemas/2026-07-28/schema.ts#L1634-L1640
- validation/mcp-schemas/2026-07-28/schema.ts#L1704-L1707
- validation/mcp-schemas/2026-07-28/schema.ts#L2644-L2661
Examples
Section titled “Examples”Invalid example
Section titled “Invalid example”Source: expected-invalid/malformed-resource-examples.json · Selected: /resourceTemplates/0/examples/missing-uri/result/contents
[]Invalid example
Section titled “Invalid example”Source: expected-invalid/resource-example-cache-fields.json · Selected: /resources/1/examples/invalid/result/cacheScope
"shared"Rule Source Code
Section titled “Rule Source Code”example.yaml at immutable tag v0.9.0-rc.3.