MCP elicitation

Build agents
HoneyHive Engineering

MCP elicitation lets a server ask the user for input mid-request, with form mode for structured data and URL mode for secrets, plus accept, decline and cancel.

MCP elicitation is the part of the Model Context Protocol that lets a server ask the user for more information while it is handling a request. The spec defines two modes: form mode, which collects structured data through the client, and URL mode, which sends the user to an external page for interactions that must not pass through the client. This page covers the server side and the message flow. For what the client has to implement, see MCP client; for the protocol itself, see what is the Model Context Protocol.

How a request flows

In the 2026-07-28 revision, a server cannot send an elicitation out of the blue. The spec says the new multi round-trip pattern “replaces the previous approach of sending server-initiated requests”, and calls this a breaking change. It works like this:

  1. The client sends a request, such as tools/call.
  2. The server answers with an InputRequiredResult whose inputRequests map holds an elicitation/create request.
  3. The client asks the user, then retries the original request with the answers in inputResponses.
  4. The server finishes and returns the real result.

Only prompts/get, resources/read and tools/call may return an InputRequiredResult. A server can also return an opaque requestState string that the client must echo back unchanged, which lets the server avoid keeping state between rounds. Because that string passes through the client, the spec requires servers to treat it as attacker-controlled and protect its integrity (for example with an HMAC or AEAD) when it affects authorization, resource access or business logic.

The earlier 2025-11-25 revision worked differently: the server sent elicitation/create as its own request and the client replied. If you target both revisions, check which one your SDK speaks.

Declare and check support

A client that supports elicitation declares an elicitation capability in the _meta of each request, with form, url or both. An empty object is the same as form only. A server must not send a mode the client did not declare, and the MRTR rules add that it must not include an elicitation/create request for a client with no elicitation capability.

Form mode

A form request carries a message that explains why the server is asking and a requestedSchema. The schema is a restricted subset of JSON Schema: a flat object with primitive properties only. The spec allows:

Type Options the spec lists
String minLength, maxLength, and format of email, uri, date or date-time
Number or integer minimum, maximum
Boolean none beyond title, description and default
Enum single-select (enum, or oneOf with const and title) and multi-select (an array of enum items)

Every type accepts a default, which clients should use to pre-fill the field. Nested objects and arrays of objects are left out on purpose to keep client forms simple. The spec’s own example asks for a GitHub username with a one-field string schema and gets back {"action": "accept", "content": {"name": "octocat"}}.

Clients should validate answers against the schema and servers should validate again on receipt.

URL mode

URL mode is for what a form must not carry. The server sends a url and a message, the client asks the user for consent and opens the page, and the user finishes the step there. The spec describes typical uses as collecting credentials on a page the user trusts and running an OAuth flow so the server can act on a third-party service.

An accept in URL mode only means the user agreed to open the page. The spec says it “does not mean that the interaction is complete”, and the client is not told how it ended. When the client retries, the server decides from its requestState or its own stored state whether the out-of-band step finished, and either returns the result or asks again. The 2025-11-25 revision used an optional completion notification for this; the 2026-07-28 page does not describe one. The spec also notes that URL mode was new in 2025-11-25 and its design may change.

URL mode is not a replacement for MCP authorization. The spec says servers must not rely on it to authorize users for themselves, and that third-party credentials obtained this way must not pass through the MCP client or be sent to it.

Choose a mode

Question Form mode URL mode
Does the data pass through the client? Yes No
What is it for? Structured, non-secret input such as a name, a choice or a date Credentials, payments, third-party authorization
What does accept carry? The submitted content Nothing; the work happens elsewhere
Who validates? Client and server, against the schema The server’s own page

The spec draws the line on sensitivity: general contact or profile details such as a name or email are not banned from form mode, and it is the server’s call whether to ask, subject to the user’s ability to review and decline.

Handle accept, decline and cancel

Every response has an action:

  • accept: the user approved. In form mode content holds the data; in URL mode it is omitted.
  • decline: the user said no. The spec suggests offering alternatives.
  • cancel: the user dismissed the prompt without choosing, for example by closing the dialog or pressing Escape. The spec suggests prompting again later.

Servers must handle decline, cancel and a client that fails to process the request, and should not assume an elicitation succeeds. If the client retries without every requested answer, the MRTR rules say the server should ask again instead of returning an error.

Security rules for servers

  • Bind each elicitation to the client and user identity, and never trust a user identity that the client supplies without verification.
  • Keep sensitive user data out of the URL, and never send a pre-authenticated URL that could be used to impersonate the user. Use HTTPS outside development.
  • When a user opens an elicitation URL, verify that this user is the one the elicitation was created for. The spec’s phishing scenario is an attacker who sends the link to a victim, so the victim’s authorization ends up bound to the attacker’s account. It suggests comparing the sub claim from the MCP authorization server with the session cookie on the page.
  • If you store state between rounds, the spec requires you to tie it to individual users, identified from MCP authorization credentials (such as the sub claim) where possible.

Clients have their own list: show which server is asking, give clear decline and cancel options, let users edit form answers, show the full URL and get consent before opening it, and never pre-fetch it. Those are covered in MCP client, and the wider threat picture is in MCP security.

Elicitation and sampling

Both let a server ask the client for something mid-request, and both now travel through the same multi round-trip mechanism. They differ in who answers. Elicitation asks the person. Sampling asks the client’s model for a generation, so a server needs no API key of its own. As of the 2026-07-28 revision sampling is deprecated: new implementations should not adopt it, and existing ones should migrate to calling model provider APIs directly. The spec keeps it for at least twelve months. The elicitation page carries no such notice.

Observe elicitation in practice

An elicitation adds a round trip and a human to a tool call, so a slow or failed call may be waiting on a person. Tracing the original request and its retry as one unit shows where the time went. See MCP observability for how, and build an MCP server for the rest of server design.

FAQ

What is MCP elicitation?

A way for an MCP server to ask the user for more information while it handles a request, through the client. The spec defines form mode for structured data and URL mode for sensitive interactions.

Can I ask for an API key with elicitation?

Not in form mode. The spec says servers must not use form mode for passwords, API keys, access tokens or payment credentials, and must use URL mode for them.

What is the difference between MCP elicitation and sampling?

Elicitation asks the user for input. Sampling asks the client's model for a generation. Sampling is deprecated as of the 2026-07-28 revision; elicitation is not.

What can the user answer to an elicitation request?

One of three actions: accept (with data, in form mode), decline (an explicit no) or cancel (dismissed without a choice). The server must handle all three.

Does the client need to declare support for elicitation?

Yes. A client declares an elicitation capability with form, url or both, and an empty object means form only. Servers must not send a mode the client did not declare, per the spec.

Share