Skip to main content
Glama

Respond to a permission request

respond_to_approval

Approve or decline permission requests for command execution, file reads, or file changes on a thread. Select accept, acceptForSession, decline, or cancel to manage agent actions.

Instructions

Approve or decline a pending permission request (command execution, file read, file change) on a thread. Get the requestId from pending_actions or get_thread. Decisions: accept (once), acceptForSession (don't ask again this session), decline, cancel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionYes
threadIdYes
requestIdYesFrom pendingRequests in pending_actions/get_thread
Behavior4/5

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

With no annotations, the description carries the full burden. It adds valuable behavioral context by detailing decision semantics ('accept (once), acceptForSession (don't ask again this session), decline, cancel'), which goes beyond basic approval. It doesn't cover potential irreversible effects or auth requirements, but the core behavior is transparent.

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?

The description is concise and well-structured: it leads with the main action, then explains how to get the requestId, and finally lists the decisions. Every sentence is informative with no unnecessary clutter.

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 simple three-parameter tool with no output schema, the description adequately covers how to use it: requestId source, decision options, and request types. It doesn't explain the return value, but that is not critical for this straightforward approval action.

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?

The schema covers only requestId (33% coverage). The description compensates by explaining the decision enum values and mentioning the thread context for threadId. The requestId schema description is reinforced, and the added decision semantics significantly enhance parameter understanding.

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 clearly states the tool's function: 'Approve or decline a pending permission request' and specifies the resource types (command execution, file read, file change). It distinguishes itself from sibling tools like respond_to_user_input by focusing specifically on permission requests.

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 provides explicit guidance for obtaining the requestId ('Get the requestId from pending_actions or get_thread') and explains the meaning of each decision option. However, it doesn't explicitly state when not to use this tool or mention alternatives beyond the source tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThomasCrund/t3code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server