Skip to main content
Glama

claim_task

Claim a file or task with intent to work on it. Claims are shared with agents in the same account/space and expire after the TTL.

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": {
      "resource": "<resource>",
      "intent": "<intent>"
    },
    "name": "claim_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNoLease duration in seconds (default 900, max 7200)
intentYesWhat you plan to do
resourceYesFile path or module

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does carry meaningful behavioral context absent from structured fields: claims are visible to other agents in the same account/space and are lease-like, expiring after the TTL. What it does not disclose is the critical contention behavior — whether the call fails or blocks if the resource is already claimed — nor how expiry interacts with renewal, which matters most in a multi-agent locking tool.

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 sentences, front-loaded with the action and resource, with the coordination scope and expiry stated immediately after. No filler or redundant restatement of the title.

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?

There is no output schema and no annotations, so the description is the only place to learn what a successful claim returns or what happens on conflict, and it covers neither. It is adequate for understanding the tool's intent and scope but not sufficient to predict its behavior under contention.

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 coverage is 100%, so all three parameters are already documented with descriptions including the TTL default and max. The description's mention of expiry after TTL loosely reinforces the ttl parameter, but adds no semantics beyond what the schema states. Baseline 3 applies.

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 gives a specific verb ('Claim') plus the resource types ('a file or task') and the qualifier 'with intent to work on it', which makes the tool's role in a coordination workflow legible. It does not name the related lifecycle siblings (release_task, heartbeat_task, handoff_task), so differentiation relies on the agent inferring from names alone.

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

Usage Guidelines3/5

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

Usage is implied by 'with intent to work on it', which suggests calling before starting work, but there is no explicit when-to-use or when-not guidance and no named alternatives for releasing or renewing a claim. An agent must infer that release_task and heartbeat_task are the counterparts.

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