Skip to main content
Glama

claude_models

Read-onlyIdempotent

Lists available Claude Code model aliases, resolved model IDs, and supported effort levels live from the CLI so you can choose a valid model override before running or replying to an agent.

Instructions

List available Claude Code model aliases/identifiers, their resolved model IDs, and supported effort levels (queried live from the Claude Code CLI without starting a turn or persisting a session). Use this before passing a model override to claude / claude_async / claude_reply.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
errorNo
modelsYes
sourceNo
warningNo
default_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses that results are queried live from the Claude Code CLI and that doing so neither starts a turn nor persists a session. The annotations already cover read-only and idempotent behavior, so the description adds meaningful operational context without needing to repeat them.

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?

The description is two tight sentences with zero filler. It front-loads the core listing behavior and follows with the usage guidance, making it easy to scan.

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?

The tool has no parameters, has an output schema, and carries rich annotations, so the description only needs to explain purpose, source, and when to call it. It covers all of those points, including the live-query behavior and the no-session-persistence guarantee.

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?

There are no parameters, so parameter semantics are inherently minimal and the baseline for a zero-parameter tool applies. The description appropriately focuses on what the tool returns and where the data comes from rather than inventing parameter details.

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?

The description states a specific verb and resource: list Claude Code model aliases/identifiers with resolved IDs and effort levels. It clearly distinguishes this discovery tool from the sibling execution tools such as claude, claude_async, and claude_reply.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this before passing a model override to claude, claude_async, or claude_reply, giving a concrete trigger and the relevant alternatives. No ambiguity remains about when this tool should be selected over the execution siblings.

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