Skip to main content
Glama

swarm_execute

Dry-run a plan safely by default; set for_real=true to execute only when the owner approved the exact hash and real execution is enabled.

Instructions

Dry-run a plan by default (nothing changes). for_real=true runs it, but ONLY if the owner approved that exact hash AND mcp.allow_real_execution is true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ref": "<ref>"
    },
    "name": "swarm_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
for_realNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and delivers the key safety facts: default is non-mutating, and real execution requires two independent gates. It does not say what happens when the gates fail (error vs. silent dry run), whether the operation is reversible, or what the response contains.

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?

Two sentences, zero filler, with the default safe behavior front-loaded before the escalation condition. The uppercase ONLY emphasizes the critical constraint without padding.

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

Completeness3/5

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

For a two-parameter tool with no annotations and no output schema, the mutation gate is well covered, but the definition omits refusal behavior, return shape, and the exact nature of ref. An agent can call it safely but must guess at the failure mode and identifier format.

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 0%, so the description must compensate for both parameters. It explains for_real thoroughly, but ref is only implicitly characterized via 'that exact hash' — it never states whether ref is a plan id or a hash, or how a caller obtains an approved one.

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 names a concrete action (executing a plan) and its two modes: a dry run by default and a real run gated by for_real=true. It is distinguishable from siblings like swarm_approve or swarm_plan_show, though it never explicitly contrasts itself with them.

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?

It states the default safe behavior (dry run, nothing changes) and the precise preconditions for escalation (owner-approved hash plus mcp.allow_real_execution). It stops short of naming the alternative tool to call first, e.g. swarm_approve, leaving that workflow inference to the agent.

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