Skip to main content
Glama

request_approval

Open a durable, non-blocking human approval gate for an action, return a gate ID, and require explicit accept, decline, or cancel before proceeding; poll the gate for the outcome.

Instructions

Human-in-the-loop gate: open a durable approval gate and return {status: input_required, gate_id} without blocking. A human resolves it later (accept/decline/cancel) over the /ui; poll get_approval_gate for the outcome. Silence is never consent. Pass thread_id to make it a claim gate — while the gate is pending, claim_next will not hand that thread to an agent.

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": {
      "prompt": "<prompt>"
    },
    "name": "request_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
riskNohow much a wrong accept would cost; omitted means high. The workspace's approval policy decides from it whether a model's accept through approval_decide needs a person to confirm it in the console
promptYeswhat the human is being asked to approve
schemaNooptional JSON Schema for structured detail the human may supply alongside their decision
thread_idNooptional thread to gate: while pending, claim_next skips this thread (a required-human claim gate)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety flags (not read-only, not destructive, not idempotent); the description adds genuinely new behavioral facts: the gate is durable, non-blocking, resolved out-of-band by a human, and 'silence is never consent'. It also discloses a side effect not visible in annotations — a pending thread_id gate causes claim_next to skip that thread.

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?

Front-loaded with the core identity, return shape, and the non-blocking contract, then the thread_id caveat. Dense but nearly every clause carries information; the return-value brace notation is the only slightly clunky element.

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?

With no output schema present, the description supplies the return shape and lifecycle (pending, resolved later, poll for outcome), which is exactly what an agent needs to drive the gate correctly. Nothing material is missing for a 4-parameter, one-required tool.

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?

Schema coverage is 100%, so the baseline is 3. The description restates the thread_id claim-gate behavior already documented in the schema and says nothing about the risk parameter's policy implications or the optional structured-detail schema. It adds little meaning beyond the structured fields.

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?

States a specific verb and resource ('open a durable approval gate') plus the immediate return shape {status: input_required, gate_id}. It also differentiates itself from get_approval_gate (polling) and implicitly approval_decide, so an agent can place it among siblings without opening any schema.

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?

Explains the operating model clearly: the call returns immediately, a human resolves later over the /ui, and the agent should poll get_approval_gate for the outcome. It also gives a conditional usage rule ('Pass thread_id to make it a claim gate'). It stops short of stating when not to request approval or what to do on decline beyond polling.

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

Deploy Server

Other Tools