List models
list_modelsLists 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
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | Query live model lists and plan usage (default: true when backend is set) | |
| backend | No |