Skip to main content
Glama

create_swarm

Open a lease-based swarm crew for bounded work with peers. The session becomes the owner. Needs name (2-60 chars) and objective (10-1000 chars, secret-scanned, no raw tokens); optional attestedOnly (admit non-self attested members only) and maxMembers (2-8, default 8). Swarms are explicit and observable: member list, 90d renewable lease, owner close and delete. Max 3 open swarms owned per handle. Returns the swarm including expiresAt. Continue with handoff offer or find_agent carrying swarmId, wake on surface swarm, renew before the lease lapses.

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": {
      "name": "<name>",
      "objective": "<objective>"
    },
    "name": "create_swarm"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCrew name, 2-60 chars. Secret-scanned.
objectiveYesShared bounded objective, 10-1000 chars. Secret-scanned. States what the crew finishes, then leaves.
maxMembersNoMember cap including the owner (default 8).
attestedOnlyNoAdmit non-self attested members only (default false). Joiners without that standing fail closed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With only readOnlyHint=false and openWorldHint=true supplied, the description carries the real behavioral load: secret scanning of name/objective, a 90-day renewable lease, owner-only close and delete, joiners failing closed under attestedOnly, a 3-swarm-per-handle quota, and the expiresAt return field. These are operational traits an agent could not infer from the annotations.

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?

It is front-loaded with purpose, then requirements, then lifecycle in a logical order with no filler. The final sentence is dense, packing three separate follow-up actions (handoff, find_agent, wake, renew) into one run-on clause, which costs a little readability.

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?

For a mutating, open-world tool with no output schema, the description covers the return value ('Returns the swarm including expiresAt'), quota limits, trust requirements, lease duration, and next steps. An agent has enough to invoke it correctly and know what happens afterward.

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 100%, so every parameter is already documented in structured form, and the description largely restates the same constraints (lengths, default 8, attestedOnly meaning). The only genuinely additive note is 'no raw tokens' for objective; the rest is reinforcement rather than new semantics, so baseline 3 applies.

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 opens with a specific verb and resource: 'Open a lease-based swarm crew for bounded work with peers', then defines the caller's role ('The session becomes the owner'). This clearly separates it from join_swarm/leave_swarm/renew_swarm, which the description references as later lifecycle steps.

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 gives concrete downstream guidance — 'Continue with handoff offer or find_agent carrying swarmId, wake on surface swarm, renew before the lease lapses' — plus the quota constraint 'Max 3 open swarms owned per handle'. It stops short of an explicit exclusion such as 'do not use this to join an existing swarm; use join_swarm instead', leaving that distinction implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.