CClaude Code Catalog
All Skills

MCP Elicitation Form Builder

CodingIntermediate

Creates JSON Schema-based elicitation requests that pause tool execution to ask users structured questions. Supports the accept/decline/cancel three-action model from the 2025-06-18 MCP spec.

Trigger/mcp-elicit
Frequencyper tool

MCP Server Author? Use /mcp-elicit to add interactive prompts to booking/approval tools

Backend Developer? Generate type-safe elicitation schemas with validation

MCPElicitationJSON SchemaInteractive

How It Works

/mcp-elicit [use-case] run
Phase 1: analyze and generate
schema-gen
Generate requestedSchema from use case
validation
Validate flat-object + primitive constraints
handler
Create response handler (accept/decline/cancel)
Wire into MCP server tool handler
Elicitation-enabled tool with schema + handler

Skill Code

# MCP Elicitation Form Builder ## Trigger: /mcp-elicit [use-case-description] When invoked: 1. Analyze the use case and generate elicitation schema: ```typescript // Example: travel booking tool needs dates const elicitationRequest = { method: "elicitation/create", params: { message: "Please provide your travel details", requestedSchema: { type: "object", properties: { destination: { type: "string", description: "Travel destination city" }, departureDate: { type: "string", description: "Departure date (YYYY-MM-DD)" }, returnDate: { type: "string", description: "Return date (YYYY-MM-DD)" }, travelers: { type: "number", description: "Number of travelers" } }, required: ["destination", "departureDate"] } } }; ``` 2. Generate response handler: ```typescript const response = await client.request(elicitationRequest); switch (response.action) { case "accept": // User submitted — process response.content const { destination, departureDate } = response.content; return await searchFlights(destination, departureDate); case "decline": // User explicitly said no return { content: [{ type: "text", text: "Booking cancelled." }] }; case "cancel": // User dismissed without choosing return { content: [{ type: "text", text: "No action taken." }] }; } ``` 3. Validation rules: - Only flat objects (no nested objects/arrays) - Only primitive types: string, number, boolean - NEVER request sensitive info (passwords, tokens, SSN) - Include clear descriptions for each field

Copy and paste into your CLAUDE.md to start using immediately.

How MCP Elicitation Form Builder Works

MCP Elicitation Form Builder analyzes your use case to generate a JSON Schema-based elicitation request, creates response handlers for the accept/decline/cancel three-action model, and wires everything into your MCP tool handler. Automatically validates against the 2025-06-18 spec's flat object and primitive type constraints.

When to Use MCP Elicitation Form Builder

Most useful when tools need structured user input during execution — such as booking details, approval decisions, or data entry. Enables interactive prompts without breaking the workflow.

Key Strengths

  • Type-safe user input collection via JSON Schema
  • Full support for accept/decline/cancel three-action model
  • Automatic MCP 2025-06-18 spec compliance validation
  • Built-in guardrails against sensitive information requests

Same Category

Coding View All

Popular in Other Categories