Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

OpenCode server status

oc_status

Checks the OpenCode service connection, starts it if needed, and reports version, URL, default model, and available model, agent, and skill counts.

Instructions

Check the connection to the OpenCode service (starting it if needed) and report version, URL, default model and how many models, agents and skills are available.

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

Input Schema

NameRequiredDescriptionDefault
reconnectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/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 disclosure burden, and it does flag the key side effect that the service may be started as a result of the call. It also enumerates the returned fields, compensating somewhat for the absent output schema. However, it says nothing about latency, whether the call blocks while starting the server, or whether repeated calls are safe or costly.

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?

A single front-loaded sentence with no filler; the action comes first and the returned fields follow. The mid-sentence parenthetical slightly interrupts the flow but still carries real information about the auto-start behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple status tool the description covers the return payload well, which matters since no output schema exists. The remaining gaps are the undocumented reconnect parameter and the absence of any note on blocking behavior or timing, which an agent needs before calling a tool that may start a server.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one optional parameter, 'reconnect', with 0% schema description coverage, and the description never mentions it. The '(starting it if needed)' parenthetical gestures at connection management but does not explain what setting reconnect=true does, so the single parameter remains completely undefined.

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 pair (check connection, report) against a specific resource (the OpenCode service) and enumerates what it returns: version, URL, default model, and counts of models/agents/skills. It is distinguishable from siblings like oc_models or oc_catalog, but it never explicitly says how it differs from them, leaving the agent to infer that those tools fetch actual model data while this one only reports counts.

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 by the phrasing 'Check the connection ... (starting it if needed)', which suggests it is the connectivity/bootstrap check. There is no explicit statement of when to call it versus oc_models or oc_catalog, and no guidance on when not to call it or on prerequisite state.

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