Skip to main content
Glama

set_spawn_budget

DestructiveIdempotent

Define how far an agent family may fan out by capping direct child threads, nesting depth, and tool calls per thread. Omit an axis to leave it unlimited; keep caps small.

Instructions

Set this workspace's spawn budget (G6): how far an agent family may fan out. max_children caps the direct child threads per parent, max_depth the thread nesting, max_tools the tool calls recorded on one thread. A full replace — an omitted or null axis is unlimited, so calling with no arguments clears the budget; 0 freezes an axis. Keep the caps small: coordination cost grows quadratically in the number of agents. Requires workspace:write.

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

Input Schema

NameRequiredDescriptionDefault
max_depthNomax thread nesting depth (a root thread is depth 1); null = unlimited
max_toolsNomax tool calls recorded on one thread; null = unlimited
max_childrenNomax direct child threads per parent; null = unlimited

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: replace-not-merge semantics, the destructive consequence that no arguments clears the entire budget, the special meaning of 0 as a freeze, and an explicit "Requires workspace:write" auth precondition. This directly operationalizes destructiveHint=true and idempotentHint=true with actionable detail.

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?

Three sentences, front-loaded with a one-line summary before axis definitions, the replace contract, and the operational caveat. No sentence is redundant with the schema or annotations.

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?

No output schema exists, but the description covers what an agent needs before calling: what is changed, that the change is a wholesale replacement, the permission required, and the risk of clearing everything by defaulting. Complete for a three-optional-parameter mutation tool.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: the axes are related as a fan-out budget, null means unlimited rather than unset, 0 is a freeze rather than a disable, and the quadratic coordination-cost rationale explains why small values are preferred. The schema's per-field docs restate the same caps, so the gain is interpretive rather than new parameter detail.

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?

Names a specific verb and resource ("Set this workspace's spawn budget") and immediately defines the resource as how far an agent family may fan out. It then enumerates each axis's meaning, so an agent can distinguish it from get_spawn_budget or the thread-budget siblings without opening a schema.

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?

"A full replace — an omitted or null axis is unlimited, so calling with no arguments clears the budget; 0 freezes an axis" gives concrete use conditions, and "keep the caps small" steers the caller. It stops short of explicitly naming the read counterpart (get_spawn_budget) for checking current values, so it is clear context rather than full routing.

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

Deploy Server

Other Tools