Skip to main content
Glama

Wait for Approval

wait_for_approval
Read-onlyIdempotent

Wait up to 45 seconds for a pending approval. It returns as soon as the user approves, rejects, chooses an option, or replies on the review screen. If the result remains pending, call this tool again with the same ID. When the status is replied, the reply field holds the user's instructions: follow them instead of running the original operation.

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": {
      "approval_id": "<approval_id>"
    },
    "name": "wait_for_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
approval_idYesapproval_id returned by request_approval.

Output Schema

NameRequiredDescriptionDefault
approvalYes
next_actionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already say readOnlyHint=true and idempotentHint=true, and the description is fully consistent with them while adding real behavior: a 45-second cap, early return on any of four user actions, the polling loop contract, and how to interpret the reply field. That is meaningfully more than the annotations convey.

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

Conciseness5/5

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

Three tight sentences: the timeout and behavior first, then the retry rule, then the reply-handling rule. Every sentence earns its place with no filler.

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

Completeness4/5

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

With an output schema present, the description need not explain return values, and it covers timeout, retry, and reply interpretation well. It could go further by clarifying its relationship to get_approval, the closest sibling for reading approval status.

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

Parameters3/5

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

One parameter at 100% schema coverage, and the schema already says approval_id comes from request_approval. The description only echoes that by telling the agent to reuse the same ID on retry, which adds a small amount of intent but no new parameter semantics.

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

Purpose4/5

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

Names a specific verb and resource ('wait ... for a pending approval') and states the 45-second bounded duration plus the four return conditions. It does not distinguish itself from the sibling get_approval, which an agent could plausibly reach for instead, so it stops short of a 5.

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

Usage Guidelines4/5

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

Gives explicit operational guidance: re-call with the same ID if still pending, and follow the reply instructions rather than executing the original operation when status is 'replied'. What is missing is an exclusion — when to prefer get_approval or list_approvals over long-polling here.

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