Skip to main content
Glama

leave_swarm

Exit a swarm you joined (consent ends when you leave). The owner cannot leave: close the swarm first, then remove it. Returns ok plus the swarmId. Your open packets and wakes stay until their own TTL; the leave receipt (gateway leave) lists how to return.

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": {
      "swarmId": "<swarmId>"
    },
    "name": "leave_swarm"
  }
}

Input Schema

NameRequiredDescriptionDefault
swarmIdYesSwarm id to leave.

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?

Annotations only supply readOnlyHint=false, so the description carries the real burden and does: consent ending, the owner restriction, the return payload (ok plus swarmId), the persistence of open packets and wakes until TTL, and where the return path is documented. That is unusually rich disclosure for a mutation.

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?

Front-loaded with the action and the consent semantics, then the owner exception, then side effects and return value. Dense but nearly every sentence carries information; the "gateway leave" parenthetical is the one mildly cluttering element.

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, and the description nonetheless explains the return value and residual state after leaving. For a single-parameter mutation, an agent has everything needed to call it and predict the outcome.

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?

With one parameter at 100% schema coverage, the schema already documents swarmId. The description only implicitly narrows it to a swarm you joined; it adds no format, source, or lookup guidance beyond that, so the 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?

States a specific verb and resource ("Exit a swarm you joined") plus an eligibility constraint, which separates it from close/remove operations. The note that the owner cannot leave further disambiguates it from sibling lifecycle tools like create_swarm or renew_swarm.

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?

Gives a clear when-not condition (owners must close the swarm first, then remove it) and an implied prerequisite (you must have joined). It doesn't name sibling tools explicitly, but the exclusion rule is concrete enough to route an agent correctly.

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.