Skip to main content
Glama

opencode_config_update

Destructive

Update OpenCode configuration settings like default model, small model, and default agent. Applies changes to the runtime config and persists them to opencode.json.

Instructions

Update OpenCode configuration settings. Updates both runtime config and persists to opencode.json.

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

Input Schema

NameRequiredDescriptionDefault
modelNoDefault model (provider/model format)
smallModelNoSmall model for lightweight tasks
defaultAgentNoDefault agent name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

The description adds real context beyond the annotations by disclosing that changes are applied to runtime config and persisted to opencode.json. However, given destructiveHint=true and idempotentHint=false, it says nothing about whether omitted fields are cleared, whether changes are reversible, or whether a reload/restart is required.

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 action and ending with the persistence side effect. No padding or redundant restatement of the name.

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 destructive, non-idempotent mutation with no output schema, the agent still lacks guidance on partial updates, merge semantics, and whether a restart takes effect. The persistence note is helpful but the risk profile is under-explained relative to the annotation set.

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 each of the three properties (model, smallModel, defaultAgent) is already documented with format hints in the schema. The description adds no additional parameter meaning, which matches the baseline for full coverage.

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 and resource ('Update OpenCode configuration settings') and even names the persistence target (opencode.json). It does not differentiate itself from siblings like opencode_config_get or opencode_model_configure, so the agent can identify what it does but not precisely where it sits among similar tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance beyond the implied 'you want to change config.' No alternatives are named and no prerequisites (restart requirement, partial vs full update) are given.

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