Skip to main content
Glama

List available models

chatgpt_list_models
Read-only

List available model IDs for an AI provider and your API key to choose the right 'model' value or troubleshoot 'model not found' errors.

Instructions

List the model IDs an AI provider offers to your key (ChatGPT by default; pass provider for others). Use this to pick a value for the 'model' parameter or to troubleshoot 'model not found' errors.

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

Input Schema

NameRequiredDescriptionDefault
filterNoOnly show models whose ID contains this text, e.g. 'gpt-6' or 'pro'.
providerNoWhich AI to ask: openai (ChatGPT), anthropic (Claude), gemini, xai (Grok), deepseek, mistral, meta (Llama), perplexity, moonshot (Kimi), qwen, cohere, groq, openrouter, ollama or lmstudio. Leave empty for the default. Run ai_list_providers to see which are configured.
chat_onlyNoHide embedding, audio and similar models. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds meaningful context beyond that: results are scoped to what the caller's key is entitled to and vary by provider, which explains why discovery can be empty or incomplete. Return format and any rate-limit behavior remain unstated.

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?

Two sentences with no redundancy; the core purpose and default scope come first and the usage guidance follows. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, zero-required-parameter discovery tool with a fully documented schema, the description covers purpose, default behavior, and the decision it feeds into. It also implicitly characterizes the return value (model IDs), so the absence of an output schema is not a gap.

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?

Schema coverage is 100%, so the baseline is 3, and the description earns an increment by revealing what the schema leaves implicit: the default provider is ChatGPT, and provider can be overridden for other backends. It does not discuss filter or chat_only semantics, which is acceptable given the schema handles them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List the model IDs an AI provider offers') and narrows the scope to the caller's key, which distinguishes it from sibling list tools such as ai_list_providers. The parenthetical about the ChatGPT default and the provider override makes the resource boundary unambiguous.

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 two concrete use cases: sourcing a value for the 'model' parameter and diagnosing 'model not found' errors. It does not state when to avoid this tool or name a sibling alternative explicitly in the description (ai_list_providers appears only in the schema), so it stops short of a full 5.

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