Skip to main content
Glama
mryesiller

opencode-delegate-mcp

by mryesiller

Delegate test writing/running to a cheaper model

delegate_tests
Destructive

Write and run tests for specified modules, files, or behaviors without modifying production code. Supports custom frameworks and run verification.

Instructions

Test-focused wrapper around delegate_task. The subagent writes (and optionally runs) tests for the given scope while avoiding changes to production code unless strictly required to make tests pass.

Args:

  • scope (string, required — alias: task, accepted for parity with delegate_task; provide one): What to test — module, files, behaviors, edge cases.

  • directory (string): Absolute repo path. Defaults to config.default_directory or server cwd.

  • framework (string): Optional testing framework/runner hint (e.g. "vitest", "pytest").

  • run_tests (boolean): Ask the subagent to run the suite and report pass/fail (default true).

  • model / agent / variant / profile / files / session / continue_session / auto_approve: same as delegate_task.

  • response_format ('markdown' | 'json'): Output format (default 'markdown').

See also: delegate_task — same shape, general-purpose; its required field is named task instead of scope.

Returns the same structured content shape as delegate_task.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNoAlias for `scope` (delegate_task uses this name) — provide one or the other
agentNo
filesNo
modelNo
scopeNoWhat to test: module/files/behaviors/edge cases. Required unless `task` is given instead.
profileNo
sessionNo
variantNo
directoryNoAbsolute working directory
frameworkNoTesting framework/runner hint
run_testsNoRun the suite and report results
auto_approveNo
response_formatNomarkdown
continue_sessionNo
Behavior4/5

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

Annotations indicate destructiveHint=true and readOnlyHint=false. The description adds context that changes to production code are avoided unless strictly required, which is more nuanced than the annotation alone. It also mentions optional run_tests behavior. No contradictions.

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?

The description is well-structured with clear sections (Args, See also, Returns) and front-loaded purpose. While somewhat verbose, every sentence adds value. Could be slightly tighter but remains effective.

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 14 parameters, no output schema, and adequate annotations, the description covers core behavior, parameter semantics, and cross-references delegate_task for completeness. The return value is not detailed but correctly noted as same shape as delegate_task. Minor gap: no explicit mention of error handling or side effects beyond 'avoids production code changes'.

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?

With 36% schema coverage, the description compensates by listing and explaining many parameters (scope, directory, framework, run_tests, response_format, and the alias task). However, several parameters are only referenced as 'same as delegate_task' without full detail, relying on the agent's knowledge of that sibling. Some meaning is added, but not complete.

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 explicitly states it is a test-focused wrapper around delegate_task, with the subagent writing and optionally running tests while avoiding production code changes. This specific verb+resource combination clearly distinguishes it from the general-purpose delegate_task sibling.

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

Usage Guidelines5/5

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

The description provides clear guidance: it is for test writing/running, avoids production code changes unless necessary, and explicitly references delegate_task as an alternative with a different parameter name (task vs scope). This helps the agent decide when to use this tool.

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/mryesiller/opencode-delegate-mcp'

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