Skip to main content
Glama

cos_dispatch_formula_run

Spawn a sub-agent to execute a formula for a specific persona, using an isolated session to handle role-specific processing or parallel tasks.

Instructions

EXPLICIT, OPT-IN sub-agent spawn for one role. Costs ~5k tokens per call (system prompt + input slice + completion) and rebuilds context inside the sub-agent. PREFER lazy-loading: read src/core/thinking_os/agents/.md inline and produce the output schema yourself — same accuracy, far fewer tokens, no context rebuild penalty. Use this tool only when (a) the role's work is long-running and would dominate the main loop, or (b) you explicitly want a separate session for parallelism. If no SDK is available, returns status='skipped' and the main agent should execute the role's procedure inline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
intensityNostandard
timeout_sNo
complexityNo
formula_idYes
persona_idYes
session_idYes
task_markerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries full behavioral burden and does so well. It discloses approximate token cost (~5k), context rebuild penalty, the explicit opt-in nature, and the status='skipped' fallback behavior. This goes far beyond a simple dispatch description.

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?

The description is dense but every sentence earns its place: definition, cost, preferred alternative, explicit use conditions, and fallback. It is front-loaded with 'EXPLICIT, OPT-IN' and has clear structured conditions (a)/(b). No filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the description covers cost, context-rebuild behavior, use conditions, and fallback. The presence of an output schema handles return-value details, so the description remains complete for a dispatch tool without repeating schema info.

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

Parameters1/5

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

Schema description coverage is 0% and the description does not explain any of the 8 parameters (e.g., formula_id, session_id, task_marker, persona_id). While names are somewhat self-evident, the description adds no parameter-level semantics and does not compensate for the missing 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 uses a specific verb-resource pair: 'sub-agent spawn for one role' via 'formula run'. It clearly distinguishes itself from lazy-loading and implicitly from sibling cos_dispatch_parallel_run by noting 'one role' and explicit opt-in semantics.

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?

Explicitly provides when-to-use vs. alternatives: 'PREFER lazy-loading...' and then lists two concrete use cases (a) long-running work, (b) explicit parallelism. It also gives a fallback instruction when no SDK is available, which is excellent guidance.

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/kouroshez/coding-os'

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