Skip to main content
Glama

bus_claim_task

Claim a queued task exclusively for 15 minutes so no other agent can take it; use only when ready to work, then complete it.

Instructions

Claim a queued task exclusively for 15 minutes (the lease): while you hold it, no other agent can claim it. Fails if another agent already holds it or the task is blocked. Claim only work you are about to do, then finish with bus_complete_task.

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": "<agent>",
      "id": "<id>"
    },
    "name": "bus_claim_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe task id to claim.
agentYesYour registered agent name (the claimer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.12
    • addedInput schema / properties / agent / description
      Added value: +"Your registered agent name (the claimer)."
    • addedInput schema / properties / id / description
      Added value: +"The task id to claim."
  2. First observedv0.5.11

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, and the description adds genuinely new behavior: a 15-minute exclusive lease and two concrete failure modes. It stops short of saying what happens when the lease expires or whether the same agent can re-claim an already-held task, which matters given idempotentHint=false.

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 short sentences, front-loaded with the exclusivity semantics and the lease duration, with every clause carrying information the agent needs before calling.

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

Completeness4/5

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

For a two-parameter, no-output-schema mutation tool this covers purpose, constraints, failure modes, and next step. The only gap is that it does not indicate what a successful claim returns (task payload, lease token, etc.), which the agent must discover at call time.

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 description coverage is 100%, so both parameters (id, agent) are already documented in the schema and the description adds no format, validation, or meaning beyond them. Baseline 3 is appropriate here.

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?

'Claim a queued task exclusively for 15 minutes' supplies a specific verb, resource, and scope, and the description immediately contrasts this with bus_complete_task, so the agent can distinguish it from siblings without opening the schema.

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

Usage Guidelines5/5

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

It states when to use it ('Claim only work you are about to do'), the follow-up action ('then finish with bus_complete_task'), and the conditions under which the call will not succeed (task already held or blocked), which is real when/when-not guidance rather than a restatement of the name.

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