Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

List OpenCode API operations

oc_api_ops

Filter and inspect OpenCode API operations to find operationIds, methods, paths, and parameters, then view the expected request body schema for a chosen operation.

Instructions

List the ~120 operations of the OpenCode API (operationId, method, path, parameters), with a filter. With operation, show the detailed schema of the expected body.

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

Input Schema

NameRequiredDescriptionDefault
searchNo
operationNooperationId to show the full schema for.

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 supplied, the description carries the full disclosure burden. It does convey the dual-mode behavior (list vs. detail) and the approximate result size (~120 operations), which is useful. It omits whether the call is read-only in an explicit sense (implied), whether results are paginated, and how large the list output is when no filter is applied.

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, front-loaded with the main listing behavior and immediately followed by the alternate detail mode. Nothing is wasted and nothing is buried.

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 two-parameter, non-mutating catalog tool with no output schema and no annotations, the description covers the essential behaviors and even names the returned fields. The remaining gaps — search semantics and result-size expectations — are modest.

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%: `operation` is documented in the schema, while `search` is not. The description adds some context by framing the tool as having 'a filter', but never states what `search` matches against (operationId, path, method, summary), so it does not fully compensate for the coverage gap.

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 states a specific verb and resource (list the ~120 operations of the OpenCode API) and even enumerates the returned fields (operationId, method, path, parameters). It falls short of a 5 because it never distinguishes itself from the sibling `oc_api`, which an agent may reasonably confuse with it.

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?

It gives conditional guidance for one path — pass `operation` to get the detailed body schema — and mentions a filter. But it never says when to call this instead of `oc_api` or `oc_catalog`, and it sets no exclusions or prerequisites.

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