Skip to main content
Glama

codex_ask_model

Prompt any Codex model directly for code review, deep reasoning, translation, or problem solving in ephemeral, read-only mode—no file mutations or saved sessions.

Instructions

Directly prompt any Codex model for code review, deep reasoning, translation, or problem solving in ephemeral, read-only mode without file mutations or saved sessions.

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

Input Schema

NameRequiredDescriptionDefault
modelNoCodex model to query (e.g. gemini-3.8-flash-high, deepseek-flash, gpt-6.1-sol, gpt-6-astra, grok-4.7, etc.).
promptYesPrompt or question for the model.
working_dirNoContext directory root (default: current directory).
timeout_secondsNoTimeout in seconds (default: 180).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose the key behavioral traits: ephemeral execution, read-only, no file mutations, no saved sessions. It does not say how the model's response is returned, expected latency, or any cost/rate implications, which keeps it short of a 5.

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?

A single front-loaded sentence with no filler: the action comes first, the use cases follow, and the operative constraints close it out. 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?

For a simple four-parameter, one-required tool with no output schema, the description covers what the agent most needs to know (mode of operation and safety profile). It could say more about whether the model can read files under working_dir and what the response looks like, but nothing essential is missing.

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 coverage is 100% and each of the four parameters is documented inline, so the schema does the heavy lifting. The description only reinforces 'any Codex model' (mapping loosely to the model param) and adds nothing about working_dir scoping or timeout behavior beyond the schema text.

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?

Specific verb ('prompt any Codex model') plus concrete use cases (code review, deep reasoning, translation, problem solving). The 'ephemeral, read-only... without saved sessions' clause implicitly separates it from the sibling session tools, though no sibling is named explicitly.

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 clear situational context via the enumerated use cases and an implicit exclusion: not for persistent sessions or file mutations. It does not name an alternative tool or tell the agent when to prefer codex_run_task / codex_resume_session instead, so routing is left partly to inference.

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