Skip to main content
Glama

codex_send

Destructive

Send a message to a verified Codex agent thread to start or steer its work, returning a durable delivery receipt. Track the operation ID when the outcome is unknown.

Instructions

Send a user-authorized message to one verified existing Codex agent thread and return its durable delivery receipt. The message can start or steer agent work with filesystem, process or external-service effects under that thread permissions. An accepted receipt is not completion; preserve the original operation ID when checking an unknown outcome.

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": {
      "context_id": "<context_id>",
      "execution_backend": "<execution_backend>",
      "thread_id": "<thread_id>",
      "backend_instance_id": "<backend_instance_id>",
      "expected_title": "<expected_title>",
      "expected_baseline_turn_id": "<expected_baseline_turn_id>",
      "operation_id": "<operation_id>",
      "message": "<message>"
    },
    "name": "codex_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes
thread_idYes
context_idYes
operation_idYes
expected_titleYes
execution_backendYes
backend_instance_idYes
expected_baseline_turn_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true and openWorld=true, but the description adds real value beyond them: it warns the message can cause filesystem, process, and external-service effects under the thread's permissions, and that an accepted receipt is not completion. The idempotency guidance about preserving the original operation ID on unknown outcomes is exactly the kind of context annotations can't convey. Minor gap: no mention of rate limits or auth requirements beyond 'user-authorized'.

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 tight sentences, front-loaded with purpose then risk then retry semantics; nothing is padding. Slightly compressed phrasing ('under that thread permissions') but no wasted text.

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?

Purpose, side-effect profile, and delivery-receipt semantics are adequately covered for a destructive, open-world send operation with no output schema. The missing piece is any explanation of the six identity/concurrency parameters, leaving an agent unable to construct a correct call from the definition alone.

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 0% across 8 required parameters, so the description carries the full burden and largely fails. It gestures at thread identity ('verified existing thread') and operation_id (preserve it on retry), but says nothing about context_id, backend_instance_id, the desktop/daemon enum, or the expected_title/expected_baseline_turn_id concurrency-check fields, which an agent cannot infer.

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?

States a specific verb and resource ('Send a user-authorized message to one verified existing Codex agent thread') plus the outcome ('durable delivery receipt'). The 'one verified existing thread' framing clearly separates it from listing, reading, resuming, or stopping threads among the codex_* siblings.

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?

Usage is implied by 'can start or steer agent work', and the note about preserving the operation ID gives a retry rule for unknown outcomes. However, it never says when to prefer this over codex_resume or codex_stop, nor what preconditions (thread verification, permissions) must hold before calling.

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