Skip to main content
Glama

swarm_pull_task

Claim the next available task from the swarm's shared queue.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "swarm_pull_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'Claim' usefully implies an exclusive, state-changing reservation of a task, but the description never says what happens when the queue is empty, whether the call blocks or returns null, whether the claim expires, or what permissions/registration are required.

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?

A single front-loaded sentence with no filler and the key scope ('next available', 'shared queue') up front. It is efficient, though its brevity leaves gaps that other dimensions penalize.

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

Completeness2/5

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

For a state-mutating queue operation with no annotations, no output schema, and undocumented parameters, the description should explain return behavior and preconditions. As written, an agent cannot tell what it receives back or how to handle an empty queue.

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

Parameters2/5

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

Schema description coverage is 0% and the single required parameter, agent_id, is never mentioned in the description. The parameter name is fairly self-explanatory, but the description does not clarify whether it identifies the claimant, scopes the queue, or affects returned tasks.

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 states a specific verb and resource: 'claim the next available task from the swarm's shared queue'. That is far more informative than the bare name, but it offers no explicit contrast with siblings like swarm_submit or swarm_solve, so the agent must infer the boundary between pulling work and submitting results.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus swarm_join, swarm_solve, or swarm_submit, and no preconditions such as needing to have joined the swarm first. The only implicit cue is 'next available task', which hints at a worker-loop pattern but does not spell it out.

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.