Skip to main content
Glama

Claim task

claim_task
Idempotent

Atomically claim an open task (or one whose lease expired). Requires scope 'tasks:write'.

Input Schema

NameRequiredDescriptionDefault
task_idYes
workspace_idYes
lease_secondsNo
idempotency_keyNoOptional. Same key + same arguments within 24 h returns the original result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new context beyond that: the claim is atomic, leases can expire, and a write scope is required. Lease renewal/expiry behavior after the claim succeeds is still unexplained.

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?

Two tight sentences with the core action and its precondition front-loaded, and the authorization requirement last. No wasted words.

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

Completeness3/5

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

For a mutating, idempotent tool with annotations and no output schema, the definition covers purpose and scope but omits what a successful claim returns (lease expiry time?) and what error occurs when the task is already claimed — important for a lease-based tool.

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 only 25% — only idempotency_key is documented in the schema. The description never mentions lease_seconds (default 900, max 86400) or clarifies the semantics of task_id/workspace_id, so it fails to compensate for the coverage gap on a parameter that materially affects behavior.

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 and resource ('atomically claim an open task') plus the lease-expiry edge case, which clearly distinguishes it from siblings like create_task and complete_task. It stops short of naming any sibling explicitly, so it lands at 4 rather than 5.

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 precondition for use — the task must be open or have an expired lease — and states the required scope 'tasks:write'. It does not mention what to do if the claim fails or point to alternatives such as list_tasks, so no explicit exclusion guidance.

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.

Resources