Skip to main content
Glama

claim_task

Reserve files or tasks with a stated intent to coordinate multiple AI agents and prevent overlapping edits; shared claims expire after a configurable TTL.

Instructions

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
holder_sessionNoFilled in by the Memro hooks; leave it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

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 carries the full burden and does disclose two real behaviors: claims are visible to other agents in the same account/space, and they expire after the TTL. It omits critical lease semantics — whether claiming an already-claimed resource fails or is advisory, whether claims are exclusive, and what the tool returns on success or conflict.

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 zero waste. The core action is front-loaded and the scoping/expiry fact follows immediately as supporting context.

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?

Parameter documentation is complete via the schema and there is no output schema to explain, but for a coordination primitive with no annotations the description should say more about conflict behavior and the claim lifecycle. An agent still cannot predict what happens if another agent holds the claim.

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 the schema already documents resource, intent, ttl (with default 900 and max 7200), and holder_session. The description reinforces the ttl expiry concept but adds no syntax, format, or naming-convention detail beyond what the schema provides, so the baseline of 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?

"Claim a file or task with intent to work on it" gives a specific verb (claim) and concrete resource types (file, task), which separates it from memory-oriented siblings like remember or recall. It stops short of naming the lease-family siblings (release_task, heartbeat_task, handoff_task), so the boundary is inferred from the verb rather than stated.

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?

The phrase "with intent to work on it" implies the use case: acquiring a lease before editing. The sharing/TTL sentence adds context about scope. But there is no explicit when-not guidance, no mention of release_task for cleanup or heartbeat_task for renewal, and no statement about what to do when a claim already exists.

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