Skip to main content
Glama

codex_models

Inspect available GPT models and reasoning levels from Codex models_cache.json, then set global orchestrator defaults or reset them to config.toml.

Instructions

Inspect available GPT models & reasoning levels from Codex models_cache.json, and optionally configure global orchestrator defaults or reset to config.toml.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codex_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_hiddenNoInclude models marked visibility="hide" in models_cache.json.
reset_defaultsNoReset orchestrator defaults back to inheriting Codex config.toml.
set_default_modelNoPersist a new default model slug in routing.json (or empty string to clear).
set_default_reasoning_effortNoPersist a new default reasoning effort in routing.json (or "" to clear).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does usefully disclose that writes are global orchestrator defaults, that they are persisted in routing.json, and that reset restores inheritance from config.toml, but it says nothing about precedence when both set and reset parameters are supplied, whether changes take effect in existing sessions, or any permission requirements for mutation.

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?

A single front-loaded sentence with no filler: the inspection purpose comes first and the optional mutation mode follows. It could be marginally clearer if the read and write modes were separated, but nothing is wasted.

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 zero-required-param, four-parameter tool with no output schema and no annotations, the description conveys both modes, the source file for inspection, and the persistence target for writes. The main residual gap is the interaction/precedence between the set and reset parameters, which neither schema nor description resolves.

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%, so each of the four parameters is already documented with defaults and the enum for reasoning effort. The description adds contextual meaning by tying writes to routing.json and reset to config.toml inheritance, but adds no per-parameter semantics beyond that.

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 specific verbs and resources: inspect GPT models and reasoning levels from models_cache.json, plus optionally persist global orchestrator defaults or reset to config.toml. An agent immediately knows both the read and write capabilities, though the description does not explicitly separate itself from routing-related siblings.

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?

"Optionally configure... or reset" implies the call-with-no-params path is purely inspection and the params trigger mutation, but there is no explicit statement of when to prefer this tool over routing tools or when reset is appropriate versus setting a new value. Usage is implied rather than spelled out.

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