Skip to main content
Glama

Accept or decline an agent's approval request

respond_approval
Destructive

Accept or decline a pending agent approval request from get_pending after showing the full command, directory, reason, and permissions and obtaining the person's explicit decision.

Instructions

Accept or decline an approval from get_pending (e.g. a command the agent wants to run). ALWAYS show the person the full kind/command/cwd/reason/permissions and get their explicit decision before accepting. Does not change saved permissions. Owner-only approvals give 403 — the person must answer in OpenBot.

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": {
      "agent": "<agent>",
      "requestId": "<requestId>",
      "decision": "<decision>"
    },
    "name": "respond_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.
decisionYes
requestIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description adds genuine context beyond them: it clarifies that approving does not persist saved permissions, and documents the 403 failure mode for owner-only requests with the required workaround. It does not state what the agent observes on decline or the response shape, keeping it below a 5.

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?

Four tight sentences, front-loaded with the action and followed by the human-in-the-loop constraint and the 403 edge case. Information density is high with almost no filler, though the em-dash chaining of field names is slightly breathless.

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?

For a 3-parameter destructive mutation with no output schema, the description covers the critical gaps: human confirmation requirement, non-persistence of permissions, and the owner-only 403 path. Only the return/decline behavior is left unstated, which is a minor omission rather than a blocking one.

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?

With schema description coverage at 33%, only 'agent' is documented in the schema (case-insensitive ID or name). The description partially compensates by tying the request to get_pending, implicitly sourcing requestId, but never explains requestId format or that decision accepts only accept/decline in prose. Baseline 3 is appropriate given partial compensation.

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 opens with a specific verb pair and resource ('Accept or decline an approval'), names the upstream tool 'get_pending' as the source, and clarifies what an approval represents ('e.g. a command the agent wants to run'). This distinguishes it from siblings like answer_prompt 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?

It gives a strong procedural rule: always surface the full kind/command/cwd/reason/permissions and obtain an explicit human decision before accepting. It also states an exclusion boundary for owner-only approvals handled in OpenBot. It stops short of naming sibling alternatives (e.g. answer_prompt) explicitly, so a 4 rather than 5.

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