A technical publication on MCP tooling, agent guardrails, and safe infrastructure access for developers building AI agents that touch real s

Guide

MCP Elicitation: How a Server Asks the User Before a Tool Acts

What the Model Context Protocol lets a server ask the user in the middle of a tool call, how the request travels in the current and previous revisions of the specification, what servers must never ask for, and how to use it to put a person in front of an agent's riskiest sends.

Last reviewed December 1, 2026

What MCP elicitation is

Elicitation is the Model Context Protocol's way for a server to ask the user for something while it is handling a request: a missing value, a choice, a confirmation, or a visit to a web page. The question goes to the client (the app or IDE the agent runs in), which shows it to the user and hands back their answer. The model doesn't answer it; the person does.

It arrived in the 2025-06-18 revision of the specification. The 2025-11-25 revision added URL mode alongside the original form mode. The current revision, 2026-07-28, keeps both modes but changes how the question travels: instead of the server sending its own elicitation/create request, it returns the question as part of the result of the client's request, and the client retries with the answer. Requirements below are quoted at the strength the specification gives them (MUST, SHOULD, MAY); where something is our recommendation, it says so.

Form mode and URL mode

  • Form mode. The server sends a message explaining why it needs the input and a requestedSchema describing a flat form; the client renders it, lets the user review and edit their answers, and returns them as content. The data passes through the client. Form mode is the default: a request with no mode field MUST be treated as form mode.
  • URL mode. The server sends mode: "url", a message and a url. The client shows the full URL, asks the user's consent, and opens it in a way the client and the model can't inspect. Whatever the user does on that page (enter an API key, complete a payment, authorize a third-party account) goes straight to the server and never through the client.
  • Which one to use. Servers MUST NOT use form mode to request sensitive information such as passwords, API keys, access tokens or payment credentials, and MUST use URL mode for interactions involving them. Contact details such as a name or email address are not categorically prohibited in form mode; the specification leaves that to the server, subject to the user's ability to review and decline.
  • What URL mode is not for. URL mode is not how a client gets authorized to call the MCP server; that is MCP authorization, and servers MUST NOT rely on URL mode to authorize users for themselves. It is for the server getting something of its own from the user, such as credentials for a third-party API the server calls on their behalf.

Declaring support on the client

Clients that support elicitation MUST declare the elicitation capability, listing the modes they support as form and url. An empty elicitation object means form mode only, for backwards compatibility. Under 2025-11-25 the capability is declared once, during initialization; under 2026-07-28, which removed the initialization handshake, the client sends it in _meta under io.modelcontextprotocol/clientCapabilities on each request.

Servers MUST NOT send elicitation requests in a mode the client hasn't declared. A server can't assume every client will show a form: check your client's documentation for whether it declares elicitation and which modes, and design a tool so it still behaves safely when the capability is missing.

How a request for input travels under 2026-07-28

The 2026-07-28 revision introduced Multi Round-Trip Requests (MRTR) and made it the only way for a server to ask the client for something; the earlier pattern of server-initiated requests is no longer supported, a breaking change. Servers MAY return the input request from tools/call, prompts/get and resources/read, and MUST NOT from any other request.

  1. The client calls a tool. An ordinary tools/call with the arguments the model produced.
  2. The server answers that it needs input. Instead of a final result it returns an InputRequiredResult: resultType: "input_required", an inputRequests map whose values are elicitation/create requests keyed by identifiers the server chooses, and optionally a requestState string. It MUST include at least one of the two. The original request is finished at this point.
  3. The client asks the user. It shows each form or URL to the user and collects an ElicitResult for each key. The client MUST construct the requested inputs before retrying.
  4. The client retries with the answers. It sends the same tools/call again under a new JSON-RPC id, with inputResponses (the answers, under the same keys) and the exact requestState it was given. The client MUST NOT inspect, parse or modify requestState, and MUST NOT include one if none was given.
  5. The server finishes, or asks again. With what it needed, the server returns the final result. If something is missing, it SHOULD return a new InputRequiredResult asking again rather than an error. Servers MUST NOT assume the client will answer or retry at all.

What changed from 2025-11-25

Servers and clients built against 2025-11-25 work differently, so check which revision each side of a connection implements (your SDK's release notes say which revision it supports).

  • Server-sent requests. Under 2025-11-25 the server sends elicitation/create to the client as its own JSON-RPC request, nested inside the handling of another request, and the client replies with the result. Under 2026-07-28 the same request travels inside inputRequests and the reply inside inputResponses.
  • URLElicitationRequiredError. Under 2025-11-25 a server that can't proceed until a URL-mode interaction is done MAY return error -32042 listing the URL elicitations required. Under 2026-07-28 that case is an InputRequiredResult like any other.
  • Completion notifications and elicitationId. 2025-11-25 added notifications/elicitation/complete and an elicitationId on URL-mode requests so the server could tell the client an out-of-band step was done. 2026-07-28 removed both: the client learns the outcome by retrying, and a server that needs to correlate an elicitation across retries encodes its own identifier in requestState.
  • Server state. Under 2025-11-25, servers keep state about which elicitations are pending and MUST NOT associate it with session IDs alone. Under 2026-07-28 elicitation doesn't require server state, since requestState can carry it; if a server does store state, it MUST still bind it securely to the individual user.

What a form can contain

To keep client forms simple, requestedSchema is a restricted JSON Schema: a flat object whose properties are strings, numbers or integers, booleans, or enums. The only arrays allowed are multi-select enums. Nested objects, arrays of objects and other advanced JSON Schema features are intentionally not supported.

  • Strings. With optional title, description, minLength, maxLength and default, and a format of email, uri, date or date-time.
  • Numbers and integers. With optional minimum, maximum and default.
  • Booleans. With optional default. A single required boolean is the natural shape for a yes-or-no confirmation.
  • Enums. Single-select as a string with enum (or oneOf entries of const and title for labelled options); multi-select as an array with minItems, maxItems and items holding the options.
  • Defaults and validation. Clients that support defaults SHOULD pre-fill fields with them. Clients SHOULD validate responses against the schema, and servers SHOULD validate what they receive as well.

Accept, decline and cancel

Every answer carries one of three actions, in both modes. Servers MUST handle a decline, a cancel, and a client that fails to process the request, and SHOULD NOT assume an elicitation will succeed.

  • accept. The user explicitly approved and submitted. In form mode content holds their answers; in URL mode content is omitted, and accept means only that the user agreed to open the URL, not that they finished what was on the page.
  • decline. The user explicitly said no. The specification suggests handling it by, for example, offering alternatives.
  • cancel. The user dismissed the request without choosing: closed the dialog, pressed Escape, or the page failed to load. The specification suggests handling it by, for example, asking again later.

Security rules for servers that elicit

  1. Never ask for secrets in a form. Passwords, API keys, access tokens and payment credentials go through URL mode only, so they never pass through the client or the model's context.
  2. Bind every elicitation to the client and the user. Servers MUST bind elicitation requests to the client and user identity. Take the user from MCP authorization (for example the token's sub claim) when possible, and MUST NOT rely on identification the client supplies, such as a user typing "I am joe@example.com".
  3. Treat requestState as attacker-controlled. It passes through the client. If it influences authorization, resource access or business logic, servers MUST protect its integrity (for example with an HMAC or AEAD) and reject state that fails verification. They SHOULD put the authenticated principal, a short expiry and an identifier of the originating request (the method and a digest of its key parameters) inside the protected payload and check each on receipt.
  4. Enforce single use on the server. Those checks bound replay but don't make state single-use. Servers for which a requestState must be consumed at most once MUST enforce that server-side.
  5. Check who opens a URL. A URL from a URL-mode elicitation can be forwarded to someone else. The server MUST verify that the user who opens it is the user the elicitation was created for, for example by sending them first to its own connect page that compares the session's subject with the elicitation's before redirecting to a third party.
  6. Keep URLs clean. Servers MUST NOT put credentials or personally identifiable information in an elicitation URL, MUST NOT send a URL that is pre-authenticated to a protected resource, SHOULD use HTTPS outside development, and SHOULD NOT put clickable URLs in any field of a form-mode request.
  7. Keep third-party credentials away from the client. Credentials obtained through URL mode MUST NOT be sent to the client, and the server MUST NOT use the client's token for the third-party service; that would be token passthrough.

Using elicitation in an MCP server that sends email

For a server whose tools send email, elicitation is the protocol's own way to put a person in front of the sends that can't be undone. These are our recommendations, built on the rules above.

  • Confirm broadcasts with a form, not with the model. Before a send to a list, return a form-mode elicitation with one required boolean and a message stating the sending domain, the list and the number of recipients the server resolved. The person reads the facts the server computed, not a summary the model wrote.
  • Bind the consent to the exact message. Put a digest of the recipients, sender and rendered content in the integrity-protected requestState. If the retry arrives with different arguments, the digest won't match, and the server asks again instead of sending a message nobody approved.
  • Make each approval send once. Retries are new requests with new IDs, so an approval replayed or retried twice could mean two sends. Consume each approval server-side and keep requiring an idempotency key on the send itself.
  • Treat cancel differently from decline. On decline, drop the send and say so in the tool result. On cancel, nothing was decided: leave the draft as it is and let the agent ask again later rather than reading silence as yes.
  • Connect mail providers through URL mode. If the server sends through a provider account the user owns, collect that provider's API key or OAuth grant on the server's own HTTPS page through URL mode, store it bound to the user, and never ask for it in a form.
  • Decide what happens without the capability. If the client doesn't declare elicitation, the server can't ask. Fail the broadcast with an error that says a confirmation is required, rather than sending unconfirmed. Elicitation is a confirmation step, not a permission system: the tool still needs its own narrowly scoped token.
  • MCP authorization. Decides whether a client may call the server at all, through OAuth between client and server. Elicitation asks the user something during one call by a client that is already authorized.
  • Tool annotations and client confirmations. destructiveHint and the other annotations are hints the client may use to decide when to ask the user before calling a tool, and clients MUST treat them as untrusted unless the server is trusted. Elicitation is the server asking, with the server's own facts, after the call has arrived.
  • Sampling. Lets a server ask the client's model to generate text; elicitation asks the user. 2026-07-28 deprecated Sampling (along with Roots and Logging) and suggests integrating with model providers directly instead. Elicitation is not deprecated.

Sources

Further reading on Autonomous MCP Rail