Skip to main content
Glama

Codex agent

codex_agent
Read-only

Run read-only research tasks across code, documents, and the web, returning Markdown answers without modifying files; continue sessions to refine results.

Instructions

Свободная исследовательская задача для локального Codex только для чтения: поиск по коду, документам и сети с ответом в Markdown. Файлы агент не меняет. С workdir он работает в каталоге проекта и видит его AGENTS.md, без него стартует в пустом временном каталоге. Уточнение — через codex_continue.

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": {
      "task": "<task>"
    },
    "name": "codex_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesЗадача для агента: что найти или выяснить и в каком виде вернуть ответ
modelNoМодель Codex. По умолчанию — модель возможности или настройка сервера
effortNoEffort рассуждений. По умолчанию — effort возможности или настройка сервера
timeoutNoРекомендованный бюджет времени в секундах. Агент получает его в инструкциях, обрывает вызов только жёсткий предел сервера
workdirNoАбсолютный путь к проекту. Без него агент стартует в пустом временном каталоге

Output Schema

NameRequiredDescriptionDefault
errorYes
modelYes
stepsYes
statusYes
contentYes
capabilityYes
session_idYes
duration_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds real context on top: the agent does not modify files, the sandbox location is the project directory with its AGENTS.md when workdir is given and an empty temp directory otherwise, and the answer is returned as Markdown. The timeout wording also clarifies that the value is advisory and only the server's hard limit aborts the call.

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 tightly packed sentences, front-loaded with purpose then the read-only constraint, sandbox behavior and the follow-up pointer. 'Файлы агент не меняет' slightly restates 'только для чтения', which is the only redundancy.

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

Completeness5/5

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

The tool is a free-form research agent with an output schema present, so return format need not be spelled out, yet the Markdown answer is still mentioned. Read-only behavior, sandbox selection, timeout semantics and the follow-up path are all covered, leaving nothing an agent needs before calling it.

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 100%, so the baseline is 3, but the description earns extra credit by explaining what workdir actually changes: the agent sees the project's AGENTS.md versus starting in an empty temp directory. That is meaning beyond the schema's 'Абсолютный путь к проекту'.

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?

The description names a concrete verb and resource ('свободная исследовательская задача для локального Codex') and pins the scope down: read-only search over code, documents and web, with a Markdown answer. It also draws the line against the sibling tool: 'Уточнение — через codex_continue'. An agent can tell this apart from codex_continue without opening either schema.

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?

Usage is explicit rather than implied: free-form research tasks here, clarifying follow-ups through codex_continue. It also gives the concrete consequence of supplying or omitting workdir, which shapes how the tool should be called. No general when-not guidance beyond the one named alternative.

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