Artificial Intelligence

Skills, Tasks and Elicitation in MCP: asking the user before a risky action

On 24 November 2026 Anthropic put Skills over MCP into public beta in Claude and made Tasks and Elicitation generally available. Model a delete-confirmation flow with Elicitation in Python.

What changed and why it matters

Previously a tool call had to finish before Claude could move on, and a server could not stop halfway to ask the user anything. Now a server can run long work as a Task and get approval through Elicitation before risky steps such as spending money or deleting data. Anthropic’s examples include Supabase confirming costs before creating a paid project or running destructive SQL, and GitHub having users enter a repository’s name before an agent deletes it.

These features are part of the open MCP spec and its extensions, so a server that supports them works in any compatible client, not just Claude. Per the MCP specification, a server must not use form mode to request passwords, API keys, access tokens or payment credentials; URL mode exists for that kind of information.

Exercise: model a delete confirmation in Python

The example does not start a real server or client: it builds a form-mode “elicitation/create” request as described in the MCP specification and handles the three response actions. The operation runs only when the user accepts and types the name correctly.

Run it: python3 elicitation_demo.py. After the request JSON is printed, the last four lines we verified are: "accept → deleted demo-app", "accept → name mismatch: nothing deleted", "decline → user declined: nothing deleted", "cancel → cancelled: ask again later".

Pythonelicitation_demo.py
import json

# Simplified, offline model of MCP form-mode elicitation.
# No real server or client: we only build the request and handle the three actions.

def confirm_request(project):
    return {
        "method": "elicitation/create",
        "params": {
            "mode": "form",
            "message": f"Type the project name to permanently delete '{project}'.",
            "requestedSchema": {
                "type": "object",
                "properties": {"confirm_name": {"type": "string", "title": "Project name"}},
                "required": ["confirm_name"],
            },
        },
    }

def delete_project(project, response):
    action = response.get("action")
    if action == "accept":
        typed = response.get("content", {}).get("confirm_name")
        if typed == project:
            return f"deleted {project}"
        return "name mismatch: nothing deleted"
    if action == "decline":
        return "user declined: nothing deleted"
    return "cancelled: ask again later"

print(json.dumps(confirm_request("demo-app"), indent=2))
for resp in [
    {"action": "accept", "content": {"confirm_name": "demo-app"}},
    {"action": "accept", "content": {"confirm_name": "demo"}},
    {"action": "decline"},
    {"action": "cancel"},
]:
    print(resp["action"], "->", delete_project("demo-app", resp))

Limitations and next step

Skills over MCP is still in beta and File Uploads has not shipped yet, so check which features your plan has in Claude. An Elicitation prompt adds safety but does not replace the server’s own checks: as in the example, validate the submitted data on the server even after “accept”, and change nothing on decline or cancel.

Next step: add a second, boolean field to requestedSchema (for example, whether to keep a backup) and handle it in delete_project. Then find the riskiest tool in your own MCP server and plan a confirmation step like this for it.

Recommended reading

All articles