Skip to main content
Glama

claim_task

Claim a queued task atomically with a lease and claim token to prevent duplicate work among AI agents.

Instructions

Claim a task atomically (lease + claim_token).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes
lease_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations declare the mutation profile (readOnly=false, idempotent=false, destructive=false), so the safety bar is lower. The description usefully adds 'atomically' and mentions the lease/claim_token artifacts, but omits the most decision-relevant behavior: what happens if the task is already claimed, how the lease expires, and whether claim_token is returned or supplied.

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 or repetition. Brevity is appropriate, though the parenthetical packing two concepts into one clause slightly clouds the meaning.

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 non-idempotent mutation tool with no output schema and 0% parameter coverage, the description is too thin: it does not explain failure modes, lease duration semantics, or what a successful claim returns (the claim_token is mentioned but not framed as an output). An agent could not reliably invoke or recover this tool from the definition alone.

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%, so the description carries the full burden and mostly fails: task_id is unexplained (though self-evident) and lease_seconds is only obliquely referenced as 'lease' with no default, unit, or range. The mention of claim_token is ambiguous because it is not a parameter at all.

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?

States a specific verb (claim) and resource (task), plus the concurrency semantics (atomically) that distinguish this from a plain update. It does not name the closely related siblings (renew_claim, release_task), so an agent must infer those boundaries.

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 when-to-use guidance, no prerequisites, and no mention of the obvious alternatives in the sibling list (renew_claim for extending a claim, release_task for giving one up). The parenthetical hints at the mechanics but gives no routing information.

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