Skip to main content
Glama

opencode_model_list

Read-only

Lists all available models from configured providers, with optional provider filtering and cache refresh, so you can select the right model for coding tasks.

Instructions

List all available models from configured providers. Optionally filter by provider or refresh the cache.

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

Input Schema

NameRequiredDescriptionDefault
refreshNoRefresh cache from models.dev
providerNoFilter by provider ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety and external-network behaviour are covered. The description adds a small amount of value by revealing that results come from a cache that can be refreshed, but it says nothing about staleness, refresh cost, or failure modes when models.dev is unreachable.

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?

Two short sentences, with the core purpose front-loaded and optional behaviour trailing. There is no padding, though it is on the terse side for a cache-backed listing operation.

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 simple two-parameter, zero-required read tool with full schema coverage and complete safety annotations, the definition covers what an agent needs in order to call it. The lack of an output schema leaves the return shape unstated, which is a minor but real gap.

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 description coverage is 100%, with both parameters documented inline (refresh: 'Refresh cache from models.dev'; provider: 'Filter by provider ID'), so the schema carries the load. The description adds only marginal meaning by tying refresh to cache behaviour, which the schema already states, so the baseline 3 applies.

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 specific verb and resource: 'List all available models from configured providers.' That is distinct from the sibling opencode_provider_list, which would enumerate providers rather than models. It stops short of explicitly naming a sibling to avoid, so it is clear but not maximally differentiated.

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?

'Optionally filter by provider or refresh the cache' implies when the two parameters are useful, but the description gives no explicit guidance on when to use this tool versus opencode_model_configure or opencode_provider_list, and no statement of when not to refresh the cache.

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