Skip to main content
Glama
Antigravity OpenCode Delegate

Antigravity OpenCode Delegate

opencode_doctor

Run read-only diagnostics for local OpenCode 2 setup, checking binary resolution, CLI version, and optional model catalog availability without invoking a model.

Instructions

Read-only diagnostics for local OpenCode 2 binary resolution, CLI version, and (with deep=true) configured model catalog availability.

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_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional absolute project directory to inspect project-local OpenCode config.
deepNoAlso probe `opencode models --standalone` to verify catalog readiness without invoking any model.
timeoutMsNoProbe timeout in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two important traits: the operation is read-only and the deep probe does not invoke any model. However, it says nothing about failure behavior (e.g., what is reported when the binary is missing or the version check times out) or what the diagnostics output looks like, which matters for a no-annotation, no-output-schema tool.

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?

A single dense sentence with the read-only guarantee front-loaded and the conditional deep mode scoped inline. No filler, nothing redundant.

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 small optional-parameter read-only probe, the description covers scope, safety, and the one branching behavior. The main remaining gap is the absence of an output schema combined with no description of what the diagnostic report contains, which an agent would need to interpret results.

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%, so the schema already documents cwd, deep, and timeoutMs in detail. The description adds only a light gloss on deep (configured model catalog availability) that essentially restates the schema, 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?

The description names a specific verb+resource: read-only diagnostics of OpenCode binary resolution, CLI version, and model catalog readiness. It is concrete enough that an agent knows what it gets back conceptually. It stops short of 5 because it never differentiates itself from the sibling opencode_status, which an agent could plausibly pick instead for a health check.

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 only implied: 'diagnostics' suggests troubleshooting, and the parenthetical 'with deep=true' gives one conditional path for deeper probing. There is no statement of when to prefer this over opencode_status or opencode_models, and no exclusions such as requiring the binary to already be installed.

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