Skip to main content
Glama
OpenCode V2 MCP Bridge
by ddarkwing

List OpenCode models

oc_models

Lists models available to OpenCode, optionally filtered by provider, and returns provider/model IDs usable for selecting an agent model.

Instructions

List models available to OpenCode, optionally filtered by provider. Returns ids usable as model (provider/model).

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

Input Schema

NameRequiredDescriptionDefault
providerNoFilter by provider id, e.g. google
directoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does useful work by disclosing the return shape ("ids usable as `model` (provider/model)"), which substitutes for the missing output schema, but it says nothing about whether the list is cached, whether it requires a running server or auth, or how large the result is.

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 short sentences, no filler, with the core purpose front-loaded and the return-value note immediately after. Every clause carries information.

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 zero-required-parameter read-only listing tool with no output schema, the description covers purpose, filtering, and return format adequately. The only omission an agent would notice is the unexplained `directory` parameter.

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%: `provider` is documented in the schema and reinforced in the description as an optional filter. The `directory` parameter is undocumented in both places, which is a real gap the description does not close, so it stays at the baseline 3.

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 uses a specific verb and resource ("List models available to OpenCode") and states the optional provider scoping, so it is clearly distinguishable from siblings like oc_agents or oc_sessions by resource type. It stops short of naming a sibling, so a 4 rather than 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: "optionally filtered by provider" hints at when the filter applies, and "Returns ids usable as `model`" implies this is a discovery step before a model-consuming call. There is no explicit when-to-use/when-not-to-use guidance or reference to alternatives.

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