Skip to main content
Glama
jeremysball

opencode-cc-tool

by jeremysball

Block until an opencode task finishes

opencode_wait

Wait for a running background task to complete and return its status, using a real exit event instead of polling. Times out after 45 seconds; call again if still running.

Instructions

Block on a running task's real exit event (or a timeout, whichever comes first) and return its status once settled. The closest analog to the built-in Agent tool's auto-resume behavior available over plain MCP request/response, without a poll loop. Capped internally at 45s so the call returns cleanly instead of hitting Claude Code's own MCP tool-call timeout; if status is still 'running' when it returns, call opencode_wait again.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYesTask id returned by opencode_dispatch.
timeout_msNoMax milliseconds to block. Capped at 45000 regardless of what's passed. Defaults to 45000.
Behavior4/5

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

No annotations provided, but the description discloses blocking behavior, a 45-second cap, and the possibility of needing to re-call. It does not cover permissions or side effects, but for a wait operation this is sufficient.

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 no wasted words. The purpose is stated first, followed by key behavioral details and re-call guidance.

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?

No output schema exists, but the description explains the return is a settled status. For a wait tool, this is adequate; sibling tools handle result retrieval. Could specify the return format more precisely, but overall complete.

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?

Both parameters are fully described in the schema (100% coverage). The description adds value by noting the 45-second cap and default for timeout_ms, which is not in the schema.

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 blocks on a running task until completion or timeout, specifying the verb 'block' and resource 'running task,' and distinguishes from siblings like opencode_status which presumably does not block.

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?

Provides context for when to use: as an analog to auto-resume behavior, and advises to call again if status is still running. It does not explicitly contrast with alternative approaches like polling via opencode_status, but the guidance is clear enough.

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