Skip to main content
Glama

get_approval_gate

Read-onlyIdempotent

Poll a durable approval gate by ID to check whether a human accepted, declined, or cancelled it and retrieve any supplied content; returns null if no gate exists.

Instructions

Poll a durable approval gate by id. Returns the gate — state is pending until a human answers, then accepted/declined/cancelled with any content they supplied — or null if no such gate exists in your workspace. Hosts with MCP Apps show it as an inline approval card.

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": {
      "gate_id": "<gate_id>"
    },
    "name": "get_approval_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
gate_idYesthe gate id returned by request_approval

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety is covered. The description adds genuinely new behavior: the full state lifecycle (pending → accepted/declined/cancelled), that human-supplied content is included, the null case for a missing gate, and the MCP Apps rendering as an inline approval card.

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, front-loaded with the verb and resource, then the return contract, then the host-UI note. Every clause carries information; nothing is padding.

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?

No output schema exists, yet the description fully covers the return shape: the gate object, its possible states, included human content, and the null outcome. Combined with annotations and a 100%-covered single parameter, an agent has everything needed to call and interpret it.

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 description coverage is 100% and the single gate_id parameter is documented there, including its provenance from request_approval. The description only echoes 'by id' and binds the null case to workspace scope, adding little beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ('Poll a durable approval gate by id') and frames the result semantics, which makes clear it is a read/poll operation rather than a decision. It stops short of naming approval_decide or request_approval as the complement, so sibling differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

'Poll' plus 'state is pending until a human answers' implies the intended loop: call repeatedly until the state is terminal. There is no explicit guidance on when to prefer this over approval_decide or how to hand off a decision, and no polling cadence or timeout advice.

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