MCP elicitation is how an MCP server asks the user a question in the middle of a task. It can ask for a confirmation, a missing detail, or a choice from a list, and the client shows that as a small form. For anything sensitive, like a password, a card number or a third-party sign-in, the server sends the user to a web page instead, so the answer never passes through the client or the model.
The idea is simple. The mechanics changed a lot this year, though. In the 2026-07-28 spec a server can no longer send the question as its own request. It ends the tool call early with the question attached, and the client calls again with the answer. Most elicitation tutorials still show the older push-style code, which fails on a 2026-07-28 connection. We confirmed that ourselves with the Python SDK.
This guide covers both modes, the new flow with real wire messages, a Python example we ran under both protocol versions, the security rules, and which clients actually answer. Everything was checked against the spec, the SDKs and client docs on November 23, 2026.
What is MCP elicitation?
Elicitation is a client feature. Most of MCP runs the other way: the client calls the server's tools, reads its resources and fetches its prompts. Elicitation is the one non-deprecated way for the server to ask for something, and what it asks for is input from the person using the app.
The spec describes it as "a standardized way for servers to request additional information from users through the client during interactions," while clients "maintain control over user interactions and data sharing." The client decides how the form looks, and the user can always say no.
It's also the only client feature still standing. The 2026-07-28 revision deprecated sampling (the server borrowing the host's model), roots and logging. Elicitation stayed. Our MCP client vs server guide covers that cut in more detail.
Typical uses:
- Confirm before a side effect. "Delete 14 files in /tmp/project?" or "Deploy to production?"
- Fill a gap. The user said "book a table" but not for how many people.
- Pick from options. Which of three matching calendars, or which repository.
- Connect another account. Send the user to sign in to a third-party service the server needs (URL mode).
Form mode and URL mode
There are two modes, and the difference is where the user's answer goes.
| Form mode | URL mode | |
|---|---|---|
| What the user sees | A form rendered by the client | A link to a page on the server's (or a partner's) site |
| Who sees the answer | The client, then the server | Only the web page. The client just learns the user agreed to open it |
| Allowed for | Non-sensitive data: confirmations, choices, names, dates | Anything sensitive: passwords, API keys, payments, third-party OAuth |
| Schema | A flat object of strings, numbers, booleans and enums | None. Just a message and a url |
| Added in | 2025-06-18 | 2025-11-25 |
The sensitive-data rule is a hard requirement, not advice. The spec says servers "MUST NOT use form mode elicitation to request sensitive information such as passwords, API keys, access tokens, or payment credentials," and must use URL mode for them. Names, email addresses and usernames aren't banned outright. That's left to the server, as long as the user can review and decline.
Form schemas are deliberately small. Each field is a string (optionally with the email, uri, date or date-time format), a number or integer with a range, a boolean, or an enum. Enums can be single-select or multi-select, with or without display titles. Every type can carry a default. No nested objects, no arrays of objects. If you need more than a handful of fields, that's a sign the tool should take them as arguments instead.
How elicitation works in the 2026-07-28 spec
Up to the 2025-11-25 revision, a server sent elicitation/create as its own JSON-RPC request while the tool call was still open, and waited for the client's response. That needed a live back-channel, which is why remote servers kept long-lived streams and sticky sessions.
The 2026-07-28 revision removed that channel. Servers now never start a request. Instead they use a pattern the spec calls Multi Round-Trip Requests: the server answers the original call with an InputRequiredResult that carries the question, the client gets the answer from the user, then retries the call with the answer attached. The spec's Multi Round-Trip Requests page calls the switch "a breaking change." Only three requests can do this: tools/call, prompts/get and resources/read.
Here's the first round from the example server further down, as the Python SDK returned it (trimmed, with the JSON-RPC envelope added). The inputRequests map is keyed by an ID the server chose, and requestState is an opaque, signed blob (shortened here):
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resultType": "input_required",
"inputRequests": {
"server:ask_to_confirm": {
"method": "elicitation/create",
"params": {
"mode": "form",
"message": "Call +1 416 555 0100 to: book a table",
"requestedSchema": {
"type": "object",
"properties": {
"confirm": { "type": "boolean", "title": "Place this call?" },
"callback_ok": { "type": "boolean", "title": "OK if they call you back?", "default": false }
},
"required": ["confirm"]
}
}
}
},
"requestState": "v1.JzyA6H28gQ7fUXKV..."
}
}
The client shows the form, then sends the same tool call again with a new JSON-RPC ID. It echoes the state back exactly and puts the answer under the same key:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "place_call",
"arguments": { "to": "+1 416 555 0100", "objective": "book a table" },
"inputResponses": {
"server:ask_to_confirm": { "action": "accept", "content": { "confirm": true } }
},
"requestState": "v1.JzyA6H28gQ7fUXKV...",
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": { "elicitation": { "form": {} } }
}
}
}
Three details matter if you're building either side:
- Capabilities travel with every request. There's no handshake anymore, so the client declares
elicitationin_metaon each call. An empty object means form mode only. A server must not ask in a mode the client didn't declare. - The state is attacker-controlled input. The spec says servers "MUST treat
requestStateas an attacker-controlled input." If it affects authorization or business logic, sign or encrypt it, and bind it to the user, a short expiry and the original request. The Python SDK seals it by default. In the TypeScript SDK you opt in withcreateRequestStateCodec, which is "signed, not encrypted," so the client can read it. Keep secrets out either way. - Nothing has to come back. The client may never retry. A server "MUST NOT assume that clients will fulfill the inputRequests or retry," so don't start the side effect until the answer arrives.
The upside is the point of the whole redesign. Any server instance can handle the retry, as long as every instance can verify the same requestState, so you can run elicitation behind a plain load balancer. With several workers, give them a shared key. The Python SDK's default key is per process, so a retry that lands on another worker fails. Our MCP architecture guide covers what else the stateless revision changed.
Accept, decline, cancel
Every elicitation ends in one of three actions, in both modes:
accept: the user submitted. In form mode,contentholds the values. In URL mode there's no content, and accept only means the user agreed to open the page, not that they finished.decline: the user said no on purpose. Respect it, and maybe offer an alternative.cancel: the user closed the dialog without choosing. Treat it as "not now" rather than "no."
Your tool has to handle all three, plus a fourth case the spec also calls out: the client fails to process the request at all. In practice that fourth case is common, as the client section below shows. A declined confirmation should come back as a normal tool result ("Not deleting: you declined"), so the model can explain it to the user, rather than as an error.
An MCP elicitation example in Python (tested)
The official Python SDK (mcp 2.3.0, with the high-level class now called MCPServer) has two ways to ask. The older await ctx.elicit(...) sends a server-to-client request, so it only works on legacy connections. The SDK docs say that on a 2026-07-28 connection "these calls fail." We checked: the same tool returned accept over the 2025-11-25 handshake and raised NoBackChannelError on 2026-07-28.
The newer style is a resolver. You declare that a parameter is filled by asking the user, and the SDK picks the right wire shape for whichever version the client speaks. Here's a call-confirmation tool written that way:
from typing import Annotated
from pydantic import BaseModel, Field
from mcp.server import MCPServer
from mcp.server.mcpserver import (
AcceptedElicitation,
Elicit,
ElicitationResult,
Resolve,
)
server = MCPServer("call-demo")
class ConfirmCall(BaseModel):
confirm: bool = Field(title="Place this call?")
callback_ok: bool = Field(default=False, title="OK if they call you back?")
def ask_to_confirm(to: str, objective: str) -> Elicit[ConfirmCall]:
return Elicit(f"Call {to} to: {objective}", ConfirmCall)
@server.tool()
def place_call(
to: str,
objective: str,
answer: Annotated[ElicitationResult[ConfirmCall], Resolve(ask_to_confirm)],
) -> str:
"""Place a phone call after the user confirms."""
match answer:
case AcceptedElicitation(data=ConfirmCall(confirm=True) as form):
return f"Calling {to} (callback ok: {form.callback_ok})"
case AcceptedElicitation():
return "Not calling: the user unticked confirm."
case _:
return f"Not calling: the user chose {answer.action}."
Note that answer never shows up in the tool's input schema. The model only sees to and objective, so it can't fill in the confirmation itself. We ran it with the SDK's in-process client and an elicitation callback that answered accept, decline or cancel, on each protocol version. An excerpt of the results, reformatted:
mode=legacy negotiated 2025-11-25 accept -> Calling +1 416 555 0100 (callback ok: True)
mode=legacy negotiated 2025-11-25 decline -> Not calling: the user chose decline.
mode=2026-07-28 negotiated 2026-07-28 accept -> Calling +1 416 555 0100 (callback ok: True)
mode=2026-07-28 negotiated 2026-07-28 cancel -> Not calling: the user chose cancel.
no elicitation capability declared -> MCPError code=-32021
"Client did not declare the form elicitation capability required by resolver 'server:ask_to_confirm'"
Same server code, same form, both eras. The last line is the useful surprise. When the client doesn't declare elicitation, the SDK doesn't skip the question. It fails the whole call with -32021, the 2026-07-28 code for a missing client capability. If your tool must still work in clients without elicitation, give it another path, such as an explicit confirmed argument the model sets after asking the user in chat.
The TypeScript v2 SDK (@modelcontextprotocol/server 2.4.0) makes the round trip explicit instead. A tool checks inputResponses and, if the answer isn't there yet, returns the question. This is the shape from the SDK's input-required guide:
const confirmationSchema = z.object({ confirm: z.boolean().meta({ title: 'Confirm deployment' }) });
server.registerTool('deploy',
{ description: 'Deploy after the operator confirms', inputSchema: z.object({ env: z.string() }) },
async ({ env }, ctx): Promise<CallToolResult | InputRequiredResult> => {
const confirmed = acceptedContent(ctx.mcpReq.inputResponses, 'confirm', confirmationSchema);
if (confirmed?.confirm !== true) {
return inputRequired({ inputRequests: {
confirm: inputRequired.elicit({ message: `Deploy to ${env}?`, requestedSchema: confirmationSchema })
} });
}
return { content: [{ type: 'text', text: `Deployed to ${env}` }] };
});
The v1 package, @modelcontextprotocol/sdk, stops at 2025-11-25, and its README says 2026-07-28 support "is not planned for v1.x." FastMCP 4 also splits the two: ctx.elicit() for legacy connections and a "guard pattern" for the modern protocol, where the tool reads ctx.input_responses. Our FastMCP guide compares the frameworks.
URL elicitation: credentials, payments and third-party sign-in
URL mode exists because some answers must never pass through the client or the model. The request is just a message and a link:
{
"mode": "url",
"message": "Connect your calendar so the agent can check your free slots.",
"url": "https://mcp.example.com/connect?req=7f3a"
}
The user opens the page, signs in or pays there, and the server stores what it needs against that user's identity. The spec's usual example is a server that acts as an OAuth client to another service, such as a calendar or a CRM. That's separate from MCP authorization. URL mode is not how a user signs in to the MCP server itself, and servers "MUST NOT rely on URL mode elicitation to authorize users for themselves." Our MCP authorization guide covers that first sign-in.
Two things changed in 2026-07-28. The notifications/elicitation/complete message and the elicitationId field, both new in 2025-11-25, are gone. So is error -32042 (URL elicitation required). Now the client learns the outcome by retrying. The server checks requestState or its own records and either returns the result or asks again. The spec says clients should give the user manual controls to retry or cancel, since the client can't see when the page is done.
The security rules are stricter for URL mode, because a link is easy to abuse:
- Clients must not prefetch the URL, must not open it without consent, and must show the full URL first. They should highlight the domain and warn about lookalike (Punycode) addresses.
- Clients must open it somewhere the client and the model can't read the page. The spec's example: on iOS, SFSafariViewController is fine, WKWebView is not.
- Servers must not put personal data or credentials in the URL, and must not send a pre-authenticated link.
- Servers must check that the person who opens the link is the person who triggered it.
That last rule blocks a real attack the spec walks through. Alice triggers a "connect your account" link, then tricks Bob into opening it. Bob completes the sign-in, and the server binds Bob's tokens to Alice's account. The fix is to send users to your own "connect" page first. It checks their session against the identity behind the MCP token (the sub claim, for example) before redirecting to the third party. Our MCP security checklist has more on identity binding.
Which clients support elicitation
This is where elicitation gets messy. The official MCP clients feature matrix has been removed from the docs, so the table below comes from each client's own docs, changelogs and issue trackers on November 23, 2026. "Not documented" means we found nothing either way.
| Client | Form | URL | 2026-07-28 flow | Notes |
|---|---|---|---|---|
| Claude Code | Yes | Yes | Yes | Dialogs in interactive sessions. In -p and SDK runs only an Elicitation hook or callback can answer; otherwise the call times out (or is cancelled with --permission-prompts none). |
| Claude (claude.ai, Desktop chat) | Not documented | Not documented | No | No first-party docs. Third-party tests report connectors speak 2026-07-28 but don't declare elicitation. |
| ChatGPT | Yes | Yes (tested by others) | Yes | OpenAI-registered servers need 2026-07-28 for OpenAI's extended forms. OpenAI's docs: don't use it to collect secrets. |
| OpenAI Codex CLI | Yes | Yes | Not by default | Negotiates 2025-06-18 by default, with 2026-07-28 behind an opt-in. In codex exec, requests are silently not accepted (open issue). |
| Cursor | Yes | Not documented | Not documented | Supported since Cursor 1.5 (August 2025). |
| VS Code (GitHub Copilot) | Yes | Yes | Not documented | Cancelled in Autopilot, declined when there's no active turn. |
| MCP Inspector | Yes | Yes | Yes | Pauses on each round, so it's the easiest way to debug. |
| Goose | Yes | No | Not documented | Form only. An open issue reports failures in goose acp mode. |
| Gemini CLI | No | No | No | A form+URL pull request was closed without merging. |
| Zed | No | No | No | Zed supports tools and prompts only. |
The pattern is that support depends on context as much as on the client. Claude Code supports both modes, but in a headless run nobody sees the dialog, so only a hook can answer. VS Code declines when there's no active turn. Claude Cowork declares elicitation but, per an open bug report, never answers and leaves the tool call hanging. A client that advertises the capability isn't a promise that a person will see the form.
So test against the clients your users actually have. The MCP Inspector is the quickest place to watch each round, and our client setup page covers connecting the common ones to a remote server.
How elicitation changed across spec versions
| Revision | What changed |
|---|---|
| 2025-06-18 | Elicitation introduced as a form-only client feature, declared once during initialize. Servers could not request sensitive information at all. |
| 2025-11-25 | URL mode added (SEP-1036), with elicitationId, a completion notification and error -32042. Titled and multi-select enums (SEP-1330). Defaults on every field type (SEP-1034). |
| 2026-07-28 | Elicitation now rides the Multi Round-Trip Requests pattern (SEP-2322). Capabilities are declared on every request (SEP-2575). The completion notification, elicitationId and -32042 are removed. Sampling, roots and logging are deprecated. Elicitation isn't. |
If a tutorial shows initialize capabilities, ctx.elicit() or elicitInput() without mentioning protocol versions, it's describing the 2025 flow. That code still works against clients that negotiate 2025-11-25 or earlier, and many still do (Codex defaults to 2025-06-18, for example). It fails once a client moves to 2026-07-28, and Claude Code already negotiates 2026-07-28 by default.
When to use elicitation, and when not to
Elicitation is good for a few narrow jobs. Use it when:
- The tool is about to do something hard to undo, and you want the confirmation to come from the user rather than from the model. A form the model can't fill in is a stronger signal than a
confirm: trueargument. - A small piece of information is missing and asking beats guessing.
- The server needs a credential or a third-party sign-in. Use URL mode, and never form mode.
Skip it when:
- The model could ask. In a chat client, the model asking "for how many people?" in plain text is often just as good, and it works everywhere.
- The data belongs in the tool's arguments. If a field is always needed, make it a required parameter. A form shouldn't patch over a schema problem.
- It's a safety control. Clients can auto-decline, auto-cancel, or answer through a hook, so a form isn't a guarantee a human looked. Rules that must hold (rate limits, allowed hours, blocked numbers) belong in server-side code that runs no matter what the client does.
- The work takes minutes. A single question fits a round trip. For long jobs that might pause for input, the MCP Tasks extension has its own
input_requiredstatus.
If the server renders a whole interface rather than a short form, look at MCP Apps instead. Our tools guide covers the annotations clients use when deciding whether to ask before a call.
Where elicitation would fit in a phone-call server
We run DialMCP, a remote MCP server that lets an agent place real phone calls from the user's own verified number. It's a useful test case, because a phone call is a side effect you can't take back.
Today DialMCP doesn't send elicitations. It runs on the 1.x TypeScript SDK and speaks the 2025 protocol. Before calling place_call, the agent confirms the number and details with the user in chat. The rules that must hold no matter what are enforced on the server: calling hours in the recipient's time zone, rate limits, an opening line that says the caller is an AI, and a permanent opt-out list. A client that auto-accepts a form couldn't get around any of them, and that's the design we'd keep.
Elicitation would add a cleaner confirmation on top: a form like the one in the Python example, in clients that show it, and a chat confirmation everywhere else. The SMS check that proves you own your number already happens on a web page during sign-in, so it's handled by MCP authorization rather than URL mode, which the spec rules out for signing in to the server itself. The safety page lists what's enforced, and /docs/tools has the full tool contract.
Further reading
- MCP spec 2026-07-28: Elicitation
- MCP spec 2026-07-28: Multi Round-Trip Requests
- MCP spec 2026-07-28: changelog
- MCP spec 2025-11-25: Elicitation (legacy flow)
- Python SDK: elicitation
- TypeScript SDK v2: input required
- FastMCP: elicitation
- Claude Code docs: MCP
Try a remote MCP server that does real work. DialMCP lets Claude, ChatGPT, Codex, Cursor or VS Code place real phone calls from your own verified number and hand back a transcript and a structured outcome. Add https://mcp.dialmcp.com/mcp as a connector and sign in. US and Canada, free during launch.
FAQ
What is MCP elicitation?
Elicitation is the MCP feature that lets a server ask the user for input in the middle of a task, through the client. Form mode shows a small form for things like a confirmation, a missing detail or a choice from a list. URL mode sends the user to a web page for anything sensitive, such as a password, a payment or a third-party sign-in, so the answer never passes through the client.
What is the difference between form mode and URL mode?
In form mode the client renders a form from a flat JSON schema and passes the answers to the server. In URL mode the client only shows a link and asks for consent to open it, and the user enters data directly on the server's web page. The spec forbids form mode for passwords, API keys, access tokens and payment credentials, so those must use URL mode.
How does elicitation work in the 2026-07-28 spec?
Servers can no longer send elicitation/create as their own request. A server answers tools/call, prompts/get or resources/read with an InputRequiredResult that holds the question and an opaque requestState. The client asks the user, then retries the original request with a new ID, the answers in inputResponses and the same requestState. Code that uses ctx.elicit() or elicitInput() only works on 2025-11-25 and earlier connections.
Which MCP clients support elicitation?
As of November 23, 2026, Claude Code, OpenAI Codex, VS Code with GitHub Copilot and the MCP Inspector document both form and URL mode. ChatGPT documents form mode, and third-party tests show URL mode working too. Cursor documents form mode, and Goose declares form mode only. Gemini CLI and Zed don't support it. Anthropic doesn't document elicitation for claude.ai chat, though Claude Code sessions on claude.ai/code show it. Several clients also cancel or decline requests when no one is actively in the session.
What happens if a client doesn't support elicitation?
A server must not send elicitation requests to a client that didn't declare the capability. In the Python SDK, a tool that requires an answer fails with error -32021, missing required client capability. If the tool should still work in those clients, give it another path, such as a confirmation argument the model sets after asking the user in chat.