Skip to main content
Glama

opencode_model_configure

Destructive

Configure model options such as reasoning effort, max tokens, and thinking, then update runtime settings and persist them to opencode.json.

Instructions

Configure model options (reasoningEffort, maxTokens, thinking, etc.). Updates both runtime config and persists to opencode.json.

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": {
      "provider": "<provider>",
      "model": "<model>",
      "options": "<options>"
    },
    "name": "opencode_model_configure"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel ID
optionsYesModel options (reasoningEffort, maxTokens, thinking, etc.)
providerYesProvider ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and idempotentHint=false; the description's genuinely new contribution is that changes apply to both runtime config and opencode.json, which is useful. However, given destructiveHint=true, it never says what could be overwritten or lost, whether unlisted options are preserved, or whether a restart is needed for runtime changes to take effect.

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 followed by the side effect. No filler, though the parenthetical examples could have been used to enumerate allowed option keys rather than restate the schema.

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 a free-form nested options object and no output schema, the description covers the write targets but leaves the consequences vague. It doesn't state what a successful call returns or what happens to existing options not mentioned in the call.

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 100%, so provider, model, and options are already documented in the schema, and the description's parenthetical key examples largely repeat the options field's description. It adds no meaning about identifier formats (e.g., where provider/model IDs come from) or valid option keys, which matters since options is a free-form object with additionalProperties.

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 ("Configure model options") and names concrete option keys as examples. It also reveals the dual effect (runtime + persisted to opencode.json), which helps separate it from a pure read like opencode_model_list, though it doesn't explicitly distinguish itself from opencode_config_update.

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: the reader can infer this is the tool for setting per-model options, and the mention of persisting to opencode.json hints at a lasting change. There is no explicit when-to-use/when-not-to-use guidance and no stated alternative for general config changes, so the agent must infer the boundary with opencode_config_update.

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