Skip to main content
Glama
Hybrid SAGE

Hybrid SAGE

Official
by bioassembly

delegate_local

Delegate bounded coding, testing, explanation, or review work to a local OpenCode agent, with explicit model selection, async polling, and capped previews plus output artifacts.

Instructions

Delegate a bounded coding, test, explanation, or review task through OpenCode. Select model_id explicitly for a free or alternate provider; otherwise use its configured model. Provider locality and billing vary. Returns a capped preview plus output artifact and supports async polling. No automatic model fallback.

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": "delegate_local"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoPreset agent mode: 'review' maps to read-only OpenCode reviewer (edit denied); 'code'/'test'/'docstring' to build; 'explain'/'plan' to plandefault
filesNoOptional file paths for the local agent to inspect with its own tools
job_idNoPoll status or retrieve results for a previously launched async job
promptNoInstruction or prompt for local execution
workdirNoTarget project directory for OpenCode execution (defaults to current working directory)
model_idNoOptional OpenCode model override (e.g. 'strata/qwen3.8-flash-next-iq3_s')
free_onlyNoTrue forces the free allowlist. When omitted, defaults to free-only unless the user explicitly saved this selected model with allow_paid=true. No automatic model fallback.
async_modeNoIf true, launches OpenCode in background and returns job_id immediately without blocking
output_pathNoOptional target file path. If set, code is written directly to disk and only a short preview is returned.
skip_if_busyNoIf true, returns immediately when OpenCode worker slot 0 is busy instead of waiting in queue.
require_localNoForce verified local inference independently of content patterns; never replace the configured local model with the hosted free default.
verify_commandNoOptional shell verification command (e.g. 'pytest -q tests/test_x.py') to run after writing `output_path`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that provider locality and billing vary, that there is no automatic model fallback, that results are a capped preview plus an output artifact, and that async polling is supported. It omits what happens on write to output_path (overwrite semantics) and the queue behavior when a worker slot is busy, which the schema covers but the description does not.

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?

It is front-loaded with the purpose, then layers model selection, billing/locality caveats, and return behavior in a compact sequence with no filler sentences. The density of caveats in the first two sentences makes it slightly harder to scan than an ideal ordering.

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?

For a 12-parameter, zero-required tool with no output schema, the description covers return shape (capped preview plus artifact), async polling, and model/free-tier behavior adequately. Remaining gaps around verify_command execution and file-overwrite semantics are minor but real.

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 the schema already documents all 12 parameters, establishing a baseline of 3. The description only reinforces model selection and the no-fallback rule, which the schema text already states nearly verbatim, so it adds little meaning beyond the structured fields.

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?

It states a specific verb ('Delegate') and resource ('bounded coding, test, explanation, or review task') and names the execution engine (OpenCode), so the scope is clear. It does not name or distinguish itself from plausible siblings like consult_codex or route_task, leaving the agent to infer which delegation path applies.

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 description gives conditional guidance for one axis: pass model_id explicitly for a free/alternate provider, otherwise the configured model is used, and 'No automatic model fallback' is stated. It offers no when-to-use or when-not guidance relative to sibling delegation/routing tools, so usage context is only implied.

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