The Silent Failure of MCP Elicitation: A User's 'Decline' Still Deletes Your Data
A well-formed Elicitation response can be a refusal, and treating it as mere form data deletes data without any error. Any MCP integration using Elicitation for destructive operations must check `action` first, or an explicit "no" from a user gets silently converted into a successful deletion.
A developer tests MCP Elicitation, the protocol feature that lets a server tool pause and ask the client for user input. The test implements a delete-note tool with a confirmation form and exercises three response actions: `accept`, `decline`, and `cancel`. When the server code correctly checks `action === "accept"`, refusals leave data intact. But when that check is omitted, a `decline` or `cancel` still deletes the note, and the tool reports success; no error appears anywhere in the logs. The protocol delivers a complete, well-formed response, and whether that response means "no" is entirely up to the developer's code.
Beyond the action check, the test reveals three more traps. The SDK validates `content` for `accept` responses against `requestedSchema`, throwing `-32602` for a type mismatch, but it never validates `decline`/`cancel` where content is empty. Capability declaration has a backward-compatibility fallback: an empty `elicitation: {}` silently enables form mode, so a typo doesn't fail. URL elicitation is a separate capability with its own lock. The author concludes with a diagnostic table and a set of server- and client-side guidelines.
The protocol's design puts the burden of honoring refusal entirely on the application developer; a response that looks like valid form data can semantically be a "no".
The backward-compatibility fallback that turns `elicitation: {}` into form support is a time bomb: it keeps misconfigured clients running until the protocol tightens or the implementation changes.
Elicitation's danger compared to Sampling is that failure arrives as a complete, success-shaped response, so the only safeguard is discipline in checking `action` before reading `content`.
To add a distinction on capability declaration: the 2025-11-25 version explicitly states that elicitation: {} is equivalent to supporting only form, so this is a protocol-defined backward compatibility, not just the SDK's own fallback. Explicitly writing form: {} is clearer, but it's recommended to change "writing it wrong still doesn't error" to "a compatible form allowed by the spec," distinguishing it from not declaring elicitation at all. Official docs: https://modelcontextprotocol.io/specification/2025-11-25/client/elicitation#capabilities