Skip to main content
Glama

codex_start

Destructive

Delegates a coding task to Codex and opens its conversation immediately; poll or wait for a terminal status before reporting completion.

Instructions

Delegate a coding task to Codex and open its conversation. Returns immediately; MUST use codex_read/wait until a terminal status before reporting completion. One active turn per project. Uses the local Codex login.

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": {
      "cwd": "<cwd>",
      "prompt": "<prompt>",
      "request_id": "<request_id>"
    },
    "name": "codex_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesAbsolute project directory inside an allowed root
modelNoOptional Codex model id; omit to use local settings
titleNoShort conversation title
promptYesTask or follow-up instructions. Include scope and acceptance criteria.
sandboxNoworkspace-write
request_idYesStable idempotency key. Reuse the SAME key and arguments when retrying.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds genuinely non-redundant behavior: it returns immediately rather than blocking, only one active turn per project is allowed, and it authenticates via the local Codex login. It stops short of explaining what happens to workspace files under workspace-write or how failures surface.

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?

Four short sentences, front-loaded with the action and immediately followed by the mandatory follow-up protocol and the concurrency limit. No sentence is filler and the async caveat is placed before the operational constraints.

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?

With no output schema and an asynchronous tool, the description correctly supplies the missing return semantics (returns immediately, poll via codex_read/codex_wait) plus auth and concurrency context. Remaining gaps – sandbox permission implications and failure behavior – are modest for a 6-parameter delegation tool.

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 description coverage is 83% and the schema already documents cwd, model, title, prompt, sandbox, and request_id thoroughly, including the idempotency retry rule. The description adds no parameter-level meaning of its own, so the baseline 3 applies.

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?

"Delegate a coding task to Codex and open its conversation" names a specific verb, resource, and effect (opening a conversation), which cleanly separates it from codex_read, codex_wait, and codex_list, all of which are framed as follow-up or inspection tools in the description itself.

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 hard rule for what to do after calling ("MUST use codex_read/wait until a terminal status before reporting completion") and a concurrency constraint ("One active turn per project"). What's missing is the boundary against codex_resume/codex_send – it never says when to start a new conversation versus continue an existing one.

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