Skip to main content
Glama
jeremysball

opencode-cc-tool

by jeremysball

Dispatch opencode task

opencode_dispatch

Dispatch a background opencode task as a directly-spawned child process, returning a task ID for status polling and result retrieval.

Instructions

Start an opencode run in the background as a directly-spawned child process (no tmux, no shared visibility into the orchestration layer) and return a task_id immediately. Poll with opencode_status, then read opencode_result once done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoprovider/model string, e.g. 'opencode-go/minimax-m3' (economy) or 'openai/gpt-5.6-sol' (hard debugging/architecture). Defaults to 'openai/gpt-5.6-luna' --variant high.
promptYesThe message/prompt to send to opencode.
variantNoModel variant/reasoning effort (e.g. high, max, minimal). Only applied when model is also given.
directoryYesAbsolute path to the working directory opencode should run in (--dir).
session_idNoResume an existing opencode session id instead of starting fresh (passes --continue --session).
Behavior5/5

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

With no annotations, the description carries full burden and excellently discloses key behavioral traits: directly-spawned child process, no tmux, no shared visibility into orchestration layer, and immediate return of task_id. This goes beyond a simple 'start task' statement.

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 sentences with zero waste. First sentence covers purpose and key behavioral traits, second sentence tells the next steps. Information is front-loaded and every word earns its place.

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?

Given no output schema, the description appropriately mentions returning a task_id. It covers parameter semantics well (5 params, 100% coverage) and the overall workflow is clear. Could add more about error conditions, but sufficient for correct agent usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% but description adds important context: default model value, condition that variant only applied when model is given, and that session_id resumes an existing session. This adds meaning beyond the basic schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool starts an 'opencode run' in the background and returns a task_id immediately. It uses a specific verb ('dispatch') and resource ('opencode task'), and distinguishes from siblings by mentioning subsequent polling with opencode_status and reading opencode_result.

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

Usage Guidelines4/5

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

The description explains when to use this tool (to start a background task) and what to do next (poll with opencode_status, read opencode_result). It implies the workflow but does not explicitly state when not to use it or mention alternatives like opencode_wait for synchronous execution.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jeremysball/opencode-cc-tool'

If you have feedback or need assistance with the MCP directory API, please join our Discord server