Skip to content
{mcpdesc}

Show completed results without message envelopes

An example result is the completed payload, not a JSON-RPC response or a pending workflow. Remove envelope fields such as jsonrpc and id and do not include task or input-required state. Multi-step interactions belong in the explicit interaction example structure.

An example result is a completed result payload: it contains no JSON-RPC envelope field and no non-completed workflow field.

Rule ID: mcpdesc.example.completed-result-form
Owner: mcpdesc
Surface: Example result
Kind: mcpdesc-semantic
Requirement level: must
Protocol versions: independent of the MCP protocol version
Status: internal · Enforcement: internal

Envelope fields are jsonrpc, id, and error. Non-completed workflow fields are task, inputRequests, and requestState. They are excluded from the field classification of mcp.result.additional-properties.preserve.

Source: expected-invalid/invalid-tool-example-result-semantics.json · Selected: /tools/3/examples/task-result/result

{
"resultType": "complete",
"content": [],
"task": {
"taskId": "task-example"
}
}

Source: expected-invalid/invalid-prompt-example-semantics.json · Selected: /prompts/3/examples/task-state/result

{
"resultType": "complete",
"messages": [],
"task": {
"taskId": "task-example"
}
}

Source: expected-invalid/resource-example-result-semantics.json · Selected: /resources/0/examples/invalid-result/result

{
"resultType": "complete",
"jsonrpc": "2.0",
"task": {},
"contents": [
{
"uri": "asset:///invalid.bin",
"blob": "not base64"
}
]
}

Source: expected-invalid/invalid-completion-example-semantics.json · Selected: /prompts/2/completionExamples/bad-membership/result

{
"resultType": "complete",
"completion": {
"values": [
"Ada"
]
},
"jsonrpc": "2.0"
}

example.yaml at immutable tag v0.9.0-rc.3.