Skip to main content
Glama

Dispatch Backend Planning to Codex

codex_plan_backend

Dispatch read-only backend architecture and implementation planning to local Codex CLI, with optional blind mode for unbiased proposals. Auto-detach before MCP timeout and resume via wait command.

Instructions

Dispatch a read-only backend architecture/implementation planning task to the local Codex CLI (GPT 6.2-sol) using --sandbox read-only. Set blind_mode=true for independent double-blind planning from the user original words (no orchestrator draft/bias). Auto-detaches before MCP timeout with wait_cmd for reactive wakeup.

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": {
      "prompt": "<prompt>"
    },
    "name": "codex_plan_backend"
  }
}

Input Schema

NameRequiredDescriptionDefault
asyncNoIf true, return immediately with run_id and wait_cmd for reactive wakeup via run_command.
titleNoShort task title shown in the AI Hub dashboard.
promptYesBackend requirement and planning instructions (original user requirement when blind_mode=true).
workdirNoAbsolute working directory path.
blind_modeNoTrue to run an independent double-blind proposal without orchestrator draft bias.
timeout_secNoTimeout in seconds (default 600).
contract_pathNoOptional path to shared API contract file.
soft_wait_secNoMax seconds to wait synchronously before auto-detaching (default 25, max 120, 0 = immediate async).
resume_session_idNoOptional previous Codex thread_id to continue planning.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the load and does add useful behavior: read-only sandbox, model identity, auto-detach before MCP timeout with wait_cmd, and blind-mode isolation from orchestrator bias. It does not disclose failure behavior, cost/duration characteristics, or what the detached run ultimately returns. That's a meaningful but incomplete behavioral picture.

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 sentences front-loaded with the core action and scope, then the two optional behaviors. The parenthetical clutter ('(no orchestrator draft/bias)', '--sandbox read-only') is dense but each clause carries information.

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 nine-parameter dispatcher with no output schema, the description should say what a caller gets back beyond wait_cmd — the plan text, run_id shape, or where results land. Detach semantics are covered, but return-value expectations are not.

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 100%, so the schema already documents all nine parameters, establishing a baseline of 3. The description restates blind_mode in nearly the same words as the schema and touches on detach/wait behavior, adding little new parameter meaning.

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: dispatch a read-only backend architecture/implementation planning task to the local Codex CLI, naming the model and sandbox flag. The 'planning' vs execution distinction implicitly separates it from codex_exec_backend, but no sibling is named explicitly.

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?

Gives one conditional ('Set blind_mode=true for independent double-blind planning') and explains the auto-detach behavior, which implies use for long planning runs. It never says when not to use this tool or which sibling to prefer for execution versus planning.

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