Skip to main content
Glama

opencode_config

Manage OpenCode configuration: retrieve full settings, list providers and default models, or merge updates to modify coding-agent behavior.

Instructions

Manage OpenCode configuration. Actions: get (full config), providers (list providers and default models), update (modify config)

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": {
      "action": "<action>"
    },
    "name": "opencode_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoConfig object to merge (for update action)
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, yet 'update (modify config)' omits that the change is a merge rather than a replace (that detail lives only in the schema), whether it requires elevated auth, whether writes are reversible, and whether a restart or reload is needed. The read-only actions are equally silent on cost or scope of the returned config.

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?

Two short sentences, front-loaded with the resource and immediately followed by an action manifest that maps directly onto the enum. Nothing is wasted, though the generic verb 'Manage' adds little beyond the action list that follows.

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

Completeness2/5

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

For a tool that can mutate configuration, with no annotations and no output schema, the definition leaves key questions unanswered: what get/providers return, how update behaves on conflict, and what the config object shape must be. It is under-specified relative to the complexity of a nested-object mutation.

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%, but the description does add real meaning for the required 'action' parameter by defining what each enum value yields. It says nothing extra about the 'body' object beyond the narrow schema note, so half the parameter surface remains undocumented in prose.

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 the resource (OpenCode configuration) and enumerates the three supported operations with short glosses ('get (full config)', 'providers (list providers and default models)', 'update (modify config)'), so an agent knows exactly what the tool can do. It does not, however, distinguish itself from siblings like opencode_provider, which plausibly overlaps with the 'providers' action.

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?

The action list implies when each mode applies, but there is no explicit guidance on choosing this tool over opencode_provider or any other sibling, and no preconditions or exclusions stated. Usage is inferable from the action labels rather than spelled out.

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