Request human approval
elicit_approvalRequest human approval before proceeding. Async: returns immediately with a pending request that a human decides later on the hosted review page (block with elicit_await, fetch the outcome with elicit_result); for a synchronous in-session form answered by the connected host, use elicit_form instead. Two modes, at least one of context / requestedSchema is required: (1) json mode — pass context, a read-only payload the reviewer approves or declines as-is; optionally also pass displayTemplate, a LiquidJS template that customizes how context is rendered on the review page (instead of the default raw JSON view); (2) form mode — pass requestedSchema, a JSON Schema restricted to the MCP elicitation requestedSchema subset (MCP 2025-11-25): a flat object whose properties are strings, numbers/integers, booleans, or single/multi-select enums (no nested objects, arrays of objects, $ref, or allOf) — the reviewer fills in these fields on the review page and submits them back as the submitted data. Both may be passed together: context (optionally rendered via displayTemplate) is then displayed as read-only context above the form (it is NOT merged into or used to pre-fill the form fields, which are seeded only from requestedSchema defaults). Per the MCP elicitation spec, form mode MUST NOT be used to request secrets, credentials, or other sensitive information from the reviewer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "elicit_approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | Relabel or localize the action buttons (submit, decline). Each label is trimmed, 1-40 characters; unknown keys are rejected. Button placement and styling stay fixed. | |
| context | No | json mode: a read-only JSON payload the reviewer approves or declines as-is. Echoed back verbatim in elicit_result. Rendered as raw JSON unless `displayTemplate` is given. | |
| message | Yes | The prompt shown to the reviewer at the top of the review page — say what needs approving and why. | |
| displayTemplate | No | Optional LiquidJS template that customizes how `context` is rendered on the review page. `context` is exposed to the template under the `context` key (e.g. {{ context.recordId }}). | |
| requestedSchema | No | form mode: JSON Schema in the MCP elicitation requestedSchema subset (flat object of string / number / integer / boolean / enum properties — no nested objects, arrays of objects, $ref, or allOf). The reviewer fills these fields on the review page; property `default`s seed the form. | |
| expiresInSeconds | No | How long the request stays decidable, in seconds (default 3600, clamped 60-604800 — 1 minute to 7 days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Always `pending` at creation. | |
| expiresAt | Yes | When the request stops being decidable (timestamp). | |
| reviewUrl | Yes | URL of the hosted review page where a human decides this request. | |
| elicitationId | Yes | Unique id of the created request — pass it to elicit_await / elicit_status / elicit_result / elicit_cancel. | |
| elicitationDelivered | Yes | True when the request was also pushed to the connected client as a url-mode elicitation; when false, surface `reviewUrl` to the human yourself. |