Skip to main content
Glama

Ask the user for approval

ask_human

Send a question to the user's phone and return their answer. It reaches them in Telegram or by email, with one button per option. Use it when the user wants to approve or decide something outside the conversation, for example before you pay, send a message or an email on their behalf, delete, publish or sign up for something, or when they ask you to check with them through Aval or on their phone. Not for things the user already approved in the conversation, or for questions you can answer yourself. Ask one decision per call. Write question in the user's language so that it makes sense on its own, give up to 6 short options (Yes / No when left out), and put the details they need in context. The call waits up to 45 seconds. Status "answered" comes with answer (the chosen option), answer_index and an optional comment from the user. Status "pending" comes with a question_id: call wait_for_answer until the status changes, and wait for the answer before carrying out the action. Status "expired" means no approval. Error "rate_limited": more than 6 questions a minute.

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": {
      "question": "<question>"
    },
    "name": "ask_human"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoEverything the human needs to decide, plain text, 2000 characters max: amounts, recipients, dates, the exact text you will send, links to check, what happens with each option. Shown under the question.
optionsNo2 to 6 distinct answer buttons, 40 characters max each, in the human's language, the most likely first. Make each one an action you know how to carry out. Leave it out for Yes / No. Example: ["Pay", "Wait until Monday", "Don't pay"]
questionYesThe question, in the human's language, at most 300 characters, understandable without the conversation: say what you will do and to whom. Example: "Pay the OVH invoice of €42.90 now?"
agent_nameNoWho is asking, shown to the human so they know which agent or task it is. Example: "Claude Code · billing"
wait_secondsNoHow long this call waits for the answer before returning "pending" (0 to 45, default 45). Keep the default.
expires_in_minutesNoHow long the human can answer, in minutes (1 to 10080, default 60). After that the question expires, which means no approval. Give more time when nothing is urgent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond annotations, the description discloses delivery channels, the 45-second call wait, the answered/pending/expired status semantics, the requirement to wait before acting, and a rate limit of more than six questions per minute. It does not contradict the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but front-loaded and organized around purpose, usage, parameters, and return statuses. Most sentences carry unique information, though a few parameter guidance points repeat the schema and could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex approval tool with no output schema, the description covers the full lifecycle: sending the question, waiting, answered/pending/expired statuses, error handling, and the requirement to wait before acting. It gives enough context for an agent to call it correctly and interpret the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds operational meaning: phrase `question` in the user's language and standalone, give up to six short `options`, default to Yes/No, and put supporting details in `context`. It also explains `wait_seconds` and expiry behavior in workflow terms, though much of this overlaps with the rich schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it sends a question to the user's phone and returns their answer. It also distinguishes the tool's role from sibling `wait_for_answer` by explaining how pending questions should be handled, so an agent can identify the tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use examples such as paying, sending a message or email, deleting, publishing, or signing up, and it names when not to use it: already approved actions or questions the agent can answer itself. It also specifies one decision per call and routes pending cases to `wait_for_answer`.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources