Skip to main content
Glama

List models

list_models

Lists available models and shows per-backend usage, remaining allowances, concurrency limits, and live plan quotas so you can choose and monitor subagent backends.

Instructions

Config-sourced model roster plus per-backend usage counters (spawns, resumes, turns, failures, timeouts, tokens, and cost) and, when models.yaml sets allowances, how much of each allowance is left. Also reports the concurrency cap, per-backend/per-model pool state, the number of active agents, and how many spawns are waiting for a slot. With live (on by default when one backend is named), adds a live section from the backend's own API. OpenCode >= 2: every model the server can run (context, max output, USD cost per million tokens), its default model, OpenCode Go rolling/weekly/monthly usage and workspace budgets. Codex: the model catalog (reasoning efforts, default), the ChatGPT plan's rate-limit windows and credits, and recent account token totals. Usage windows report percent_used, remaining_percent and resets_at. roster_not_offered lists roster entries the backend does not offer; errors names any section that failed. Live usage is what the vendor's own account tracks, not quotas of external API keys. It may start opencode serve or a short-lived codex app-server.

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

Input Schema

NameRequiredDescriptionDefault
liveNoQuery live model lists and plan usage (default: true when backend is set)
backendNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • changedInput schema / properties / backend / enum
      Previous value: -[
      -  "claude",
      -  "codex",
      -  "opencode",
      -  "antigravity",
      -  "cursor"
      -]New value: +[
      +  "claude",
      +  "codex",
      +  "opencode",
      +  "antigravity",
      +  "cursor",
      +  "copilot",
      +  "vibe"
      +]
    • addedInput schema / properties / live
      Added value: +{
      +  "description": "Query live model lists and plan usage (default: true when backend is set)",
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningfully disclose side effects: 'It may start `opencode serve` or a short-lived `codex app-server`.' It also explains error surfacing (`errors` names failed sections) and clarifies that live usage reflects the vendor account rather than external API key quotas. It omits auth requirements and expected latency for a call that can spin up a server, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense run-on catalog of counters and per-backend sections ('spawns, resumes, turns, failures, timeouts, tokens, and cost'). Given there is no output schema the return-value detail earns some of its place, but the exhaustive enumeration and stacked clause fragments make it harder to scan than it needs to be.

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 tool with no annotations and no output schema, the description does the heavy lifting: it enumerates returned sections, names diagnostic fields (`roster_not_offered`, `errors`), and warns about subprocess side effects. The main remaining gap is the absence of any guidance about when to call it versus sibling reporting tools.

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 coverage is 50%: `live` is documented in the schema, and the description usefully restates its default rule tied to `backend`, while `backend`'s seven enum values get no per-value explanation in either place. The description adds some meaning (live-on-by-default behavior) but does not fully compensate for the undocumented backend parameter.

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?

The description states a concrete resource and scope: a config-sourced model roster plus per-backend usage counters, pool state, and live vendor usage. An agent can tell this is a model/usage reporting tool rather than an agent-management tool. It stops short of naming or contrasting with the closest siblings (get_dashboard, list_agent_configs), which keeps it from a 5.

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 implied rather than stated: calling it gives you model inventory and usage, and the `live` flag triggers vendor API queries. The description explains the live default ('on by default when one `backend` is named') but never says when to prefer this over get_dashboard or list_agent_configs, nor any exclusion conditions.

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