Skip to main content
Glama
harness-bridge

harness-bridge

by rbutera

Ask Codex

codex_query

Ask OpenAI Codex questions or assign coding tasks to get a second opinion, explore unfamiliar code, or delegate implementation.

Instructions

Ask OpenAI Codex a question or give it a task. Use for getting a second opinion, exploring unfamiliar code, or tasks that benefit from a different model's perspective.

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_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOverride the Codex model. OMIT this unless explicitly told otherwise: when omitted, the Codex CLI uses the default from ~/.codex/config.toml, which is kept current. This enum may lag behind newly released models.
promptYesThe question or task for Codex
threadIdNoContinue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.
workingDirectoryNoWorking directory (defaults to server cwd)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.1
    • changedInput schema / properties / model / enum
      Previous value: -[
      -  "gpt-5.6-sol",
      -  "gpt-5.5"
      -]New value: +[
      +  "gpt-6.1-sol",
      +  "gpt-6-sol",
      +  "gpt-6-astra",
      +  "gpt-5.6-sol",
      +  "gpt-5.5"
      +]
  2. Changed2 schema fields changedv1.0.0
    • addedInput schema / properties / threadId
      Added value: +{
      +  "description": "Continue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread.",
      +  "type": "string"
      +}
    • removedInput schema / properties / threadKey
      Removed value: -{
      -  "description": "Optional key enabling multi-turn continuity. Calls sharing a key use the same harness conversation and are serialized. Omit it for independent one-shot calls, including parallel reviews.",
      -  "type": "string"
      -}
  3. First observedv0.4.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says nothing about side effects: 'give it a task' suggests Codex may edit files or run commands in workingDirectory, but that is never stated, nor are latency, cost, sandboxing, or whether the call is read-only. These are the facts an agent most needs before invoking an external CLI agent.

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 tight sentences with the core action front-loaded and no filler. The second clause ('different model's perspective') slightly overlaps with 'second opinion', a minor redundancy.

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?

With no annotations and no output schema, the description must cover behavior and return expectations itself, and it does not. An agent cannot tell from this text whether the call mutates the working directory, how long it blocks, or what the response contains, which is a substantial gap for a delegation tool.

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 100%, with model, prompt, threadId, and workingDirectory all documented in-schema including the strong 'omit model unless told otherwise' guidance. The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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: send a prompt to OpenAI Codex, either as a question or a task. That is clearer than a tautology, but it never distinguishes itself from the specialized siblings (codex_explain_code, codex_review_code, codex_implement), so an agent must infer that this is the generic catch-all.

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?

Gives three concrete usage contexts: second opinion, exploring unfamiliar code, and tasks benefiting from another model's perspective. There are no exclusions or explicit routing rules (e.g., 'prefer codex_review_code for diff reviews'), which keeps it at 4 rather than 5.

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