Skip to main content
Glama

codex_send

Destructive

Sends follow-up instructions in an existing Codex conversation to preserve context, with modes to start a new turn or steer a running turn.

Instructions

Send a follow-up in the SAME Codex conversation, preserving context. mode=next starts a new turn after completion; mode=steer adds instructions to a running turn. Do not retry unknown mutations with a new request_id.

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>",
      "prompt": "<prompt>",
      "request_id": "<request_id>"
    },
    "name": "codex_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNonext
promptYesTask or follow-up instructions. Include scope and acceptance criteria.
request_idYesStable idempotency key. Reuse the SAME key and arguments when retrying.
conversation_idYesBridge conversation_id returned by codex_start/resume/list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description adds genuinely new behavioral context: context is preserved across turns, steer-mode injects into a live turn, and unknown mutations must not be retried with a fresh request_id (duplicate-write hazard). It stops short of stating permissions, blocking behavior, or what a send returns.

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?

Three short sentences, front-loaded with the core identity, then mode semantics, then the safety caveat. No filler or redundancy.

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?

Covers the essentials for a destructive 4-parameter mutation with no output schema: what it targets, how the two modes differ, and how to retry safely. Minor gaps remain (whether the call blocks until turn completion, permission requirements), but nothing that would cause a wrong invocation.

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% and already documents prompt, request_id, and conversation_id thoroughly, so the schema carries most of the load. The description adds real meaning for the undocumented mode enum and reinforces the idempotency contract for request_id, but adds nothing about the other parameters beyond what the schema says.

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 (send a follow-up) plus the defining scope constraint (SAME Codex conversation, context preserved), which separates it from codex_start. It does not explicitly distinguish itself from codex_respond or codex_resume, so an agent must infer the boundary from names alone.

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 concrete selection guidance for the mode parameter: mode=next for a new turn after completion, mode=steer for adding instructions to a running turn. Implied but unstated is that starting a fresh conversation requires codex_start. The retry caveat adds a clear usage rule.

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