Skip to main content
Glama
lunati228

CLI Subagents MCP Server

by lunati228

subagent_start

Launch an installed agent CLI as a background subagent to complete one self-contained task under your account, sharing MCP servers, and get a job ID or the final result.

Instructions

Start a subagent: another installed agent CLI works on one task in the background, under one of your accounts, with your shared MCP servers, plugins, skills and settings. Returns a job_id at once (or the result, if it finishes within wait_seconds). Give it a complete, self-contained task: goal, scope, files, and how to check the result. csa enforces the account limits itself: if a start is refused, follow the suggestion in the message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute path of the project folder to work in.
modelNoModel alias or ID, e.g. 'sonnet', 'opus', 'haiku'.
accessNoread: no edits (read-only tools and commands only). edit: edits with the CLI's own safety checks (auto mode). full: skip all permission checks; only when the user asked for it.edit
effortNo
promptYesThe full task for the subagent.
accountNoRun on this account only. Omit to let the pool pick.
runtimeNoclaude
add_dirsNoExtra absolute folders the subagent may use.
max_turnsNo
resume_jobNoContinue the session of an earlier job (same account).
wait_secondsNoWait up to this many seconds for the job to finish before returning.
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 substantial work: it discloses the background/async nature, the immediate job_id return (or inline result under wait_seconds), inherited account/plugins/MCP context, and that the host enforces account limits with a suggested action on refusal. It leaves gaps on timeout expiry behavior and resource consumption, but the return contract and account-limiting semantics are genuinely useful additions.

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?

Four dense sentences, front-loaded with what the tool does and its return contract, then the task-authoring guidance. Every sentence carries information, though the enumeration of shared resources ('MCP servers, plugins, skills and settings') is slightly padded.

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 launch tool with no annotations and no output schema, the description covers the essentials: it explains the return value (job_id or inline result), the background execution model, and the failure path. It is missing only ancillary behaviors like what happens at timeout_seconds or how the delegated job is monitored, which the sibling tools imply.

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 67% and the schema itself already documents the meaningful parameters (access trade-offs, resume_job, wait_seconds, cwd, add_dirs). The description only indirectly touches account ('under one of your accounts') and adds no syntax or semantics for model, effort, runtime, max_turns or timeout_seconds, so baseline 3 is appropriate.

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?

The description gives a specific verb and resource ('Start a subagent') and immediately clarifies what that means operationally: another installed agent CLI runs one task in the background with shared MCP servers, plugins and settings. It doesn't explicitly name sibling tools to contrast with (subagent_wait, subagent_result), but no sibling could be mistaken for this launcher.

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?

It gives real task-authoring guidance ('complete, self-contained task: goal, scope, files, and how to check the result') and hints at the wait_seconds trade-off, plus what to do if a start is refused. However it never says when to use this versus kicking off and polling via the sibling tools, or when resume_job is the right entry point instead.

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