Use MCP Elicitation when a tool needs an answer from the user
Implement mid-task user input with MCP 2026-07-28: InputRequiredResult, form and URL modes, accept/decline/cancel, and retries that preserve the original operation.

A store lookup finds two branches with the same name. Instead of guessing the city, the tool can ask the user and continue the original query. MCP Elicitation provides the protocol structure: the server requests missing information, the client presents it to the person, and the server handles the decision.
As checked on December 2, 2026, the current specification is 2026-07-28. Elicitation remains supported, but delivery now uses InputRequiredResult and a retry of the original operation. Older examples that push a server-initiated JSON-RPC request use a different message pattern.
How is Elicitation different from a model asking a question?
Elicitation is a structured request from the tool server, presented and answered through the client. A model saying “Which city?” is conversation text; the application must still arrange how that answer reaches the tool.
The Elicitation specification defines form mode for structured input inside the client and url mode for an external interaction. Ordinary filters fit forms. Passwords, API keys, access tokens, and payment credentials must use URL mode rather than a form or model context.
The protocol does not prescribe a particular UI. Terminal, desktop, and web clients can present different interfaces. Check the capabilities declared on the current request before selecting a mode. The MCP roles guide distinguishes the user-facing host, protocol client, and server.
How does the current protocol deliver a question?
The server returns the question as part of the original call’s result. After gathering input, the client retries that operation with the answers.
The multi round-trip request specification defines this sequence:
- The client sends
tools/call. - The server returns
resultType: input_requiredwith questions ininputRequests. - The client presents the questions to the user.
- The client retries the original operation with a new JSON-RPC
idand matchinginputResponses, echoingrequestStateexactly if it was supplied. - The server validates input and completes the operation or asks for more information.
Capabilities belong in each request’s _meta.io.modelcontextprotocol/clientCapabilities. The server may request only supported modes. For backward compatibility, elicitation: {} means form support alone, not URL support.
What does a region-selection request look like?
Elicitation forms use a restricted JSON Schema subset. Keep ordinary choices simple. This is a server response example using fictional store data and a placeholder state string:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resultType": "input_required",
"inputRequests": {
"region": {
"method": "elicitation/create",
"params": {
"mode": "form",
"message": "Two branches share this name. Choose a region.",
"requestedSchema": {
"type": "object",
"properties": {
"region": {
"type": "string",
"title": "Region",
"enum": ["Shanghai", "Hangzhou"]
}
},
"required": ["region"]
}
}
}
},
"requestState": "OPAQUE_SERVER_STATE"
}
}
After submission, the retry contains this inputResponses fragment. Its key matches the original question. A complete request also needs the original operation parameters and the version’s required _meta; this fragment is not a standalone wire request.
{
"inputResponses": {
"region": {
"action": "accept",
"content": {"region": "Shanghai"}
}
},
"requestState": "OPAQUE_SERVER_STATE"
}
The client must echo requestState without decoding, changing, or interpreting it. If the server supplied no state, the client must not add one.
Forms support flat objects with strings, numbers, booleans, and enums. Arrays are limited to the specified multi-select enum forms. Redesign complex nested objects or arbitrary arrays rather than copying an entire tool schema. Model structured output is a separate feature with its own schema restrictions.
What happens when the user declines or closes the dialog?
decline is an explicit refusal; cancel means the interaction ended without an explicit choice. Neither is acceptance.
| Result | Appropriate handling | Invalid assumption |
|---|---|---|
accept with valid form data | Continue using that input | Additional writes are also approved |
decline | Stop this step or offer an allowed alternative | Defaults were approved |
cancel | Keep the step incomplete; allow later retry or exit | The first option was selected |
| Mode unsupported | Return a manageable failure or alternative | The model may quietly fill it in |
Choosing a region in this lookup grants no permission to publish, purchase, or delete. Business actions still need their own authorization. Tool output and execution permissions explains why receiving instructions does not confer authority.
Does accepting a URL mean the external interaction finished?
Acceptance establishes consent to the interaction, not its completion.
In 2026-07-28, the server determines completion when the client retries the original operation. It returns the final result or another InputRequiredResult. Do not insert the older elicitationId and notifications/elicitation/complete flow into this version.
The client must identify the requesting server, display the destination host, and obtain consent before navigation. Sensitive input belongs in the separate webpage, without returning credentials through chat or a form. URL Elicitation also does not replace authorization for the client’s access to the MCP server itself.
What should an integration test cover?
Use public fixtures to check acceptance, decline, cancellation, unsupported modes, and repeated requests for missing input. The JSON here was parsed and its identifiers checked; no live MCP client/server exchange was run.
Also run two concurrent lookups. Answers and state for operation A must return only to A. Retries need new JSON-RPC IDs, and operations that write require separate duplicate-action checks. Recovering workflows explains how to establish whether an action already finished before retrying it.
If the same integration handles inference, read MCP Sampling deprecation and migration. Elicitation asks the person for information; the application arranges model inference. Verify both paths independently.


