Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

Search models

oc_models

Lists models from all connected OpenCode providers with prices and reasoning-level variants, and supports filtering by text, provider, or free-only status.

Instructions

List the models available in OpenCode (every connected provider) with prices and variants (reasoning levels). Filter by text, provider or free only.

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
limitNoDefault 40.
searchNo
providerNo
free_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.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; 'List' correctly signals a read-only operation and it discloses that results span every connected provider and include prices and reasoning-level variants. It omits anything about result limits/truncation (the schema's default 40), ordering, or what happens when no models match.

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 sentences, no filler, with the core capability front-loaded and the filtering options summarized at the end. The parenthetical '(reasoning levels)' is a useful gloss rather than padding.

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 4-param, zero-required, no-annotation, no-output-schema tool this is close to sufficient: it states the data source, the returned fields, and every filter dimension. The main residual gap is that limit-driven truncation behavior is never mentioned in prose.

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?

Schema coverage is only 25% (just `limit` = 'Default 40'), so the description must compensate, and it does map each remaining parameter to a purpose: text filtering (search), provider scoping, and free-only restriction. It stops short of saying which fields the text matches or whether provider takes an ID or display name.

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?

Specific verb+resource: 'List the models available in OpenCode (every connected provider)' and it even previews the returned payload (prices, variants/reasoning levels). The scope is unambiguous, though it doesn't explicitly distinguish itself from catalog-style siblings like oc_catalog.

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?

The closing line implies when to use it — when you want to narrow models by text, provider, or free-only. There is no explicit statement of when not to call it, no prerequisites, and no named alternative when a full unfiltered list is unwanted.

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