Skip to main content
Glama
Claude Code × OpenCode

Claude Code × OpenCode

by AXLdev123

OpenCode catalog

oc_catalog

Lists available OpenCode resources—agents, skills, slash commands, MCP servers, providers, plugins, projects, and config—so you can inspect what is configured before delegating coding work.

Instructions

Read what OpenCode has available: agents, skills, commands (slash), mcp (MCP servers), providers, integrations, plugins, config, projects, worktrees, websearch_providers, info.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "what": "<what>"
    },
    "name": "oc_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
whatYes
verboseNoFull raw JSON instead of a short list.
directoryNoProject directory (agents, skills and commands can depend on the project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/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 disclosure burden. 'Read' signals a non-mutating operation and the enumeration shows the tool spans many resource types, but the description says nothing about return size, whether any domain requires credentials or an active session, or what happens when a domain is unavailable in the current project.

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 or hedging. The one inefficiency is that the twelve-item enumeration restates the schema enum almost verbatim, spending most of the description's length on information the structured field already provides.

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?

Three parameters, no annotations, and no output schema mean the description must cover both behavior and result shape. It identifies the domains but never characterizes the response (the short-list vs raw-JSON distinction lives only in the `verbose` schema text), and gives no prerequisite or side-effect information for a tool an agent will likely call first in a workflow.

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 67%, with `verbose` and `directory` already documented in the schema, so the description only needs to carry the remaining weight. It adds small glosses ('commands (slash)', 'mcp (MCP servers)') for the `what` enum, but leaves the vaguest values – 'info', 'config', 'integrations' – undefined, which is exactly where clarification would help.

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 gives a specific verb ('Read') and resource ('what OpenCode has available') and then enumerates the twelve catalog domains, so an agent can tell this is a discovery/inventory tool rather than an action tool. It does not explicitly contrast itself with lookalike siblings such as oc_models or oc_status, leaving the boundary with those to inference.

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 listing the twelve domains, the description hints that an agent should call this to discover what exists before acting. There is no explicit when-to-use statement, no when-not-to-use, and no routing to alternatives – notably nothing explaining why an agent would call oc_catalog for 'providers' instead of oc_models.

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