Skip to main content
Glama

codex_stop

Destructive

Stops a specific verified Codex thread by requesting a native user-stop with exact target details and user authorization.

Instructions

Request native user-stop for one verified Codex thread. Requires the current exact target and user authorization.

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>"
    },
    "name": "codex_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true, so the destructive profile is covered. The description adds two pieces of context not in annotations: a user-authorization requirement and the need to supply the 'current exact target', implying staleness/optimistic-concurrency checks. It does not disclose what happens on target mismatch, whether the stop is graceful or forced, or what state the thread is left in.

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?

Two short sentences, front-loaded with the action and followed by preconditions; no filler. Density of jargon ('native user-stop', 'exact target') slightly reduces immediate clarity, but the structure is efficient.

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

Completeness2/5

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

For a destructive, 7-required-parameter tool with 0% schema coverage and no output schema, this definition is thin. It leaves the agent without parameter meaning, mismatch/failure behavior, or post-stop state, which is a real risk given the irreversible nature flagged by annotations.

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 7 required parameters, so the description must compensate and largely fails to. 'Current exact target' loosely gestures at expected_title, expected_baseline_turn_id, and backend_instance_id, but nothing explains operation_id (likely an idempotency key), context_id, the desktop/daemon enum, or why the baseline turn id may be null.

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: 'Request native user-stop for one verified Codex thread.' An agent can tell this is a stop/termination operation scoped to a single thread, distinguishing it from codex_send or codex_resume. The phrase 'native user-stop' is somewhat idiosyncratic, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description names no alternatives and gives no when-to-use vs when-not guidance relative to siblings such as task_close, codex_resume, or codex_status. It only asserts prerequisites ('Requires the current exact target and user authorization'), which hints at preconditions but does not tell an agent when this tool is the right choice.

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