Skip to main content
Glama

codex_respond

Destructive

Answer pending Codex approval or user-input requests after reviewing pending requests, applying only authorized decisions or answers; approvals are never auto-accepted.

Instructions

Answer a pending Codex approval or user-input request. Only accept actions within user authorization. Read pending_requests first; approvals are never auto-accepted.

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": {
      "conversation_id": "<conversation_id>",
      "request_id": "<request_id>"
    },
    "name": "codex_respond"
  }
}

Input Schema

NameRequiredDescriptionDefault
answersNoFor user-input requests: {questionId: {answers: ["answer"]}}
decisionNo
request_idYesExact pending request_id
conversation_idYesBridge conversation_id returned by codex_start/resume/list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is partly covered. The description usefully adds that approvals must never be auto-accepted and that actions must stay within user authorization, but it never says what accepting actually triggers (e.g., command execution) or whether the effect is reversible.

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?

Three short sentences, front-loaded with the action and followed by the safety constraint and prerequisite. No filler, though "Only accept actions within user authorization" is somewhat vague as written.

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

Completeness3/5

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

For a destructive, open-world mutation tool with nested answer objects and no output schema, the description covers the prerequisite and safety stance but omits what a successful response contains and how to handle multiple pending requests. Adequate but with clear gaps.

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 75%, so the baseline is 3. The phrase "approval or user-input request" implicitly maps decision to approvals and answers to user-input, but the description never states that mapping outright, and the decision enum values are left to the schema.

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 ("Answer") and a specific resource ("a pending Codex approval or user-input request"), which is enough to distinguish it from siblings like codex_read or codex_wait. It does not name an alternative tool explicitly, but the action is unambiguous.

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?

Gives a concrete prerequisite ("Read pending_requests first") and a hard constraint ("approvals are never auto-accepted"), plus an authorization boundary. It stops short of saying when to choose decision versus answers, or when to prefer codex_cancel instead.

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