Skip to main content

MCP Elicitation

Elicitation allows MCP servers to request additional information from users during tool execution. This enables interactive workflows where servers can collect structured data or direct users to external URLs.

Protocol Version

This feature implements MCP Protocol Version 2025-11-25.

Elicitation Modes

Action Values

Python API

Form Mode Elicitation

URL Mode Elicitation

Using Factory Methods

Custom Handler

MCP Protocol Messages

Form Mode Request

URL Mode Request

Response

Security Considerations

Form Mode

  • Use for non-sensitive structured data
  • Schema validation ensures data integrity
  • Default values are supported

URL Mode

  • Use for sensitive operations (OAuth, payments)
  • Data never passes through the MCP server
  • Requires elicitationId for tracking

CI/Non-Interactive Mode

For automated environments:
In CI mode:
  • Form mode uses provided defaults
  • URL mode returns decline (cannot be automated)