Skip to main content
Glama

OpenAI models

openai_list_models
Read-onlyIdempotent

Use this when you need an OpenAI model id for openai_chat and llm_list_models is not listed. Deprecated: use llm_chat / llm_list_models. Returns the OpenAI models openai_chat can run, with prices in USD per 1M tokens. A model that is not on this list is not available. Free.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description adds genuinely new behavior: the return payload includes USD prices per 1M tokens, the list is authoritative (a model absent from it is unavailable), the call is free, and the tool is deprecated in favor of llm_chat/llm_list_models. Those are exactly the facts an agent cannot get from structured fields.

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?

Five short sentences, front-loaded with the when-to-use condition followed by deprecation and return/cost details; nothing is padding. The one-word 'Free.' sentence is efficient, but the opening clause is wordy enough to require re-reading.

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-parameter, read-only listing tool with no output schema, the description supplies the essential missing pieces: what comes back (ids plus USD pricing) and the completeness guarantee. Only the deprecation-versus-use ordering remains ambiguous, which is a minor gap rather than a blocking one.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description correctly adds no phantom parameter language.

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 concrete verb+resource ('Returns the OpenAI models openai_chat can run, with prices in USD per 1M tokens') and ties itself to a specific consumer tool. It is clearly distinguishable from llm_list_models and the per-provider list siblings, though the opening clause ('and llm_list_models is not listed') is grammatically awkward and muddies the framing slightly.

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 an explicit trigger ('when you need an OpenAI model id for openai_chat') and names alternatives (llm_chat / llm_list_models) via a deprecation note. The guidance is somewhat self-conflicting: it says use this when llm_list_models isn't listed, then immediately says prefer llm_list_models, leaving the agent to reason about precedence.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.