Skip to main content
Glama

respond_permission

Answer pending tool permission requests for a jcode agent session by submitting the request ID with an allow, allow-always, or deny decision.

Instructions

Answer a pending tool permission request shown in agent_status.pending_permissions.

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": {
      "id": "<id>",
      "request_id": "<request_id>",
      "decision": "<decision>"
    },
    "name": "respond_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesjcode session id returned by spawn_agent
decisionYes
request_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for an authorization-mutating action, and it does almost none of that. It does not say whether a decision is final or can be revisited, what allow_always scopes to (session, agent, tool), what deny does to the waiting agent, or whether requests expire.

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?

A single front-loaded sentence with no filler, and the pointer to the pending-permissions list is placed where it is most useful. Its brevity is efficient, though it borders on under-specification rather than tight writing.

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

Completeness2/5

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

For a permission-granting tool with no annotations, no output schema, and partial parameter documentation, the description omits the information an agent most needs: where request_id comes from, how allow_always differs from allow, and what happens to the agent after each decision. The workflow prerequisites and consequences are left implicit.

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

Parameters2/5

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

Schema description coverage is only 33% (just id), so the description should compensate for request_id and decision but adds nothing about either. Crucially, the meaning of the allow_always enum value versus allow — a persistent versus one-shot grant — is documented nowhere in the definition.

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 — answering a pending tool permission request — and anchors it to the agent_status.pending_permissions list, which makes the tool's role distinguishable from sibling control tools like message_agent or cancel_agent. 'Answer' is slightly soft for a grant/deny action, but the intent is clear.

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?

It implies the workflow by pointing at agent_status.pending_permissions as the source of pending items, which tells the agent when this tool applies. It gives no exclusions, no statement of what to do if no request is pending, and no guidance on choosing this over other ways of unblocking an agent.

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