Skip to main content
Glama

codex_research

Read-only

Run bounded read-only research through a dedicated headless Codex CLI, returning exact model, effort, session, usage, and retained job evidence for traceable results.

Instructions

Run read-only research through a dedicated headless Codex CLI. Separate serialized queue from agy. No automatic provider/model fallback. Returns exact model/effort, session, usage when available, and retained job evidence.

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": {
      "prompt": "<prompt>"
    },
    "name": "codex_research"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorkspace directory (defaults to the server workspace).
modelNoExplicit Codex model slug; defaults to SPILLWAY_CODEX_MODEL. Availability is account-dependent.
effortNohigh
promptYesBounded read-only research task. No file edits or delegation.
wait_msNoWait budget; returns a job handle if still running.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds genuinely new behavior: no automatic provider/model fallback, a serialized queue isolated from agy, and a job-handle return when the wait budget expires. It also discloses what evidence is retained and returned (exact model/effort, session, usage). It does not mention auth or rate-limit characteristics, though openWorldHint implies them.

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?

Four short sentences with no filler, leading with the core action before constraints and return behavior. The telegraphic style ("No automatic provider/model fallback") is dense but each clause carries a distinct operational fact.

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, the description steps in to describe return values (model/effort, session, usage, retained job evidence) and the async job-handle path, which is what an agent most needs for a long-running, wait-budgeted call. Only the missing when-to-use routing versus the agy siblings keeps it below full marks.

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 80%, and the schema already documents cwd, model (SPILLWAY_CODEX_MODEL default, account-dependent availability), prompt bounds, and wait_ms job-handle semantics. The description adds only indirect meaning via the mention of returned model/effort and the no-fallback rule for the model parameter. This is the expected baseline-3 case where the schema does the heavy lifting.

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?

"Run read-only research through a dedicated headless Codex CLI" gives a specific verb (run research) and resource (Codex CLI backend), and "Separate serialized queue from agy" distinguishes it from the agy research sibling. It stops short of naming agy_delegate_research directly, so the differentiation is inferential rather than explicit.

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 description establishes context (dedicated headless CLI, isolated queue, no provider/model fallback), and the schema's prompt description constrains scope to "bounded read-only research" with "no file edits or delegation." However, it never states when an agent should pick this over agy_delegate_research or local_exec_and_triage, leaving the routing decision to inference from queue/failure-mode hints.

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