Skip to main content
Glama

codex_read_thread

Fetch recent question-and-answer turns from a Codex thread using its title, keywords, ID, or codex:// link to review what was asked and answered.

Instructions

Read the last turns of one Codex thread: what was asked and what Codex answered. thread is its title, words from it, its id or its codex://threads link.

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": {
      "thread": "<thread>"
    },
    "name": "codex_read_thread"
  }
}

Input Schema

NameRequiredDescriptionDefault
turnsNo
threadYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description has to carry the behavioral burden. It does convey that only the 'last turns' are returned rather than the whole thread, which is meaningful scoping behavior, but it says nothing about what happens when the thread reference is ambiguous, unmatched, or how read 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?

Two tight sentences with zero waste; the core purpose is front-loaded and the accepted thread reference formats follow immediately. Every clause earns its place.

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?

An output schema exists, so return-value explanation is unnecessary, and the description covers both the action and the flexible thread identifier. The remaining gap is unresolved behavior for ambiguous or missing thread matches, which matters given the loose title/word matching it advertises.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does substantially for the required 'thread' parameter: title, words from it, an id, or a codex://threads link. The optional 'turns' parameter is only obliquely implied by 'last turns' and never explicitly described as the count of turns returned.

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 ('Read the last turns of one Codex thread') and clarifies the payload as 'what was asked and what Codex answered'. That distinguishes it from write-oriented siblings like codex_message_thread without naming them explicitly, so it stops one notch short of full sibling differentiation.

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?

The purpose implies the usage context (inspecting an existing thread's conversation), but there is no explicit when-to-use or when-not guidance and no named alternative such as codex_list_threads for discovery or search_chats for lookup. The agent must infer routing from the verb alone.

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