Skip to main content
Glama
Antigravity OpenCode Delegate

Antigravity OpenCode Delegate

opencode_models

Lists available OpenCode 2 provider and model IDs without running a model, so you can pick a valid provider/model before delegating a task.

Instructions

List configured provider/model IDs from local OpenCode 2 without invoking any model. Call this before delegating if the user has not specified an explicit 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": "opencode_models"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional absolute project directory so project-local OpenCode config is included.
providerNoOptional provider prefix filter (for example, deepseek or opencode).
timeoutMsNoCommand timeout in milliseconds.
standaloneNoRun with --standalone so project config is read directly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the key safety trait that no model is invoked and that it reads local configuration. It does not cover failure behavior (e.g., OpenCode not installed/running), whether the call is cheap or slow beyond the timeout default, or what the listing looks like.

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, both front-loaded with the action and the usage condition, with zero filler. Nothing could be removed without losing 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 a fully documented schema and no output schema, the description covers purpose and timing adequately. The main residual gap is not hinting at the shape of the returned IDs or prerequisites such as a local OpenCode install.

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% and every parameter (cwd, provider, timeoutMs, standalone) is documented inline, so the schema does the heavy lifting. The description adds no extra meaning about when to pass cwd or provider, which is acceptable given the baseline for full coverage.

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 ("List") and resource ("configured provider/model IDs from local OpenCode 2"), plus a distinguishing trait ("without invoking any model") that separates it from opencode_execute. It does not explicitly contrast with opencode_status or opencode_doctor, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete trigger: "Call this before delegating if the user has not specified an explicit provider/model." That is clear when-to-use guidance, but there is no when-not guidance or mention of what to do if the list is empty or the CLI is missing.

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