Skip to main content
Glama

listModels

Read-onlyIdempotent

Lists Codex models, supported reasoning efforts, service tiers, and resolved aliases from local cache, and shows the default service tier. Use includeHidden to include internal models.

Instructions

List Codex models, supported reasoning efforts and service tiers, and resolved model aliases from ~/.codex/models_cache.json. Shows CODEX_DEFAULT_SERVICE_TIER.

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": "listModels"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeHiddenNoInclude hidden/internal models from models_cache.json.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description does add one genuinely useful behavioral fact beyond annotations: the data is read from the local ~/.codex/models_cache.json, which signals possible staleness. It stops short of saying whether the cache can be refreshed or how stale it might be.

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 short sentences, front-loaded with the primary resource and its contents. The trailing 'Shows CODEX_DEFAULT_SERVICE_TIER' is a fragment that still earns its place by naming an extra output field, though it could have been folded into the first sentence.

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?

No output schema exists, so the description carries the burden of describing returns; it does so by enumerating models, reasoning efforts, service tiers, aliases, and the default tier. For a single-optional-parameter local read tool, that is nearly sufficient, with only cache-freshness behavior left unstated.

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% and the single optional parameter includeHidden documents itself, including that it pulls hidden/internal entries from models_cache.json. The description adds no further meaning about this parameter, 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 (List) and a specific resource (Codex models), and enumerates the content returned: reasoning efforts, service tiers, and resolved aliases. The resource is clearly distinct from siblings like listSessions and list_jobs, though the differentiation comes from the resource noun rather than an explicit contrast.

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?

Usage is only implied: an agent can infer this is the discovery tool for available models and tiers. There is no explicit statement of when to call it versus alternatives, nor any preconditions or exclusions.

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