part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
Since 2026-07-28 the same method may return different structures depending on the outcome. The resultType field is the discriminator the client uses to know how to interpret result.
resultType |
Defined in | Meaning |
|---|---|---|
"complete" |
Core | The request finished and result contains the final content. |
"input_required" |
Core (MRTR) | The request is incomplete; result is an InputRequiredResult with inputRequests and/or requestState. |
"task" |
Tasks extension | The server created a task; result is a CreateTaskResult with taskId, status, ttlMs, pollIntervalMs. |
result MUST include resultType."task" to a client that did not declare io.modelcontextprotocol/tasks is violating the spec."complete"."input_required" may only appear in tools/call, resources/read and prompts/get; in any other method the server MUST NOT return it."input_required" results are not cacheable and do not carry ttlMs/cacheScope.{ "jsonrpc": "2.0", "id": 2, "result": { "resultType": "complete", "content": [{ "type": "text", "text": "OK" }] } }
{ "jsonrpc": "2.0", "id": 2, "result": {
"resultType": "input_required",
"inputRequests": { "confirm": { "method": "elicitation/create", "params": { "mode": "form", "message": "Do you confirm the deletion?",
"requestedSchema": { "type": "object", "properties": { "ok": { "type": "boolean" } }, "required": ["ok"] } } } },
"requestState": "v1.eyJ..." } }
{ "jsonrpc": "2.0", "id": 2, "result": { "resultType": "task",
"task": { "taskId": "t-9f1", "status": "working", "createdAt": "2026-10-25T10:00:00Z", "lastUpdatedAt": "2026-10-25T10:00:00Z",
"ttlMs": 3600000, "pollIntervalMs": 2000 } } }
resultType before applying any result policy: a "redact PII in content" policy does not apply to an input_required.complete), or declaring it and materialising the task itself (polling tasks/get and returning a complete to the host). The latter turns the gateway into a holder of state: decide it consciously.resultType only if you know the host ignores it; in practice it is enough to leave it (unknown fields are ignored).1. What must a modern client do if it receives a result without resultType?
For compatibility with earlier servers, the absence MUST be interpreted as complete.
2. In which methods can input_required appear?
The spec lists exactly those three; in the rest the server MUST NOT return it.
3. What happens with a resultType the client does not recognise?
An unknown value is invalid; only the core values and those of negotiated extensions are valid.