Skip to main content
Glama

Claim a shared resource

claim
Idempotent

Reserve a shared resource before use so other assistants do not collide; reservations expire and can be extended.

Instructions

Claim a shared resource before using it so other assistants do not collide with you. Names: 'android-device:SERIAL', 'ios-device:NAME', 'emulator', 'simulator', 'port:3000', 'branch:NAME', 'file:PATH'. Devices, emulators and ports are machine-wide; file:/branch:/path: claims are per project. Claims expire (default 30 min, max 480). Claiming again extends your claim. If someone else holds it, the result says so and nothing changes: ask them instead of taking it.

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>"
    },
    "name": "claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhat you are doing with it.
minutesNoHow long you need it (default 30).
resourceYesResource name, no spaces.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing expiry semantics (default 30 min, max 480), that re-claiming extends rather than duplicates, the machine-wide vs per-project scoping split, and the exact failure mode (result says so, nothing changes). These are non-obvious traits an agent could not derive from idempotentHint/destructiveHint alone.

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?

Front-loads purpose, then naming, then scope, then lifecycle, then the conflict case — a sensible order with no filler sentences. The name list is dense but each entry carries real syntax information, so it mostly earns its space.

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?

Covers the acquisition lifecycle thoroughly for a coordination tool, including what happens on contention. With no output schema, the shape of a successful claim result is never described, which is the only notable remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3; the description earns an extra point by supplying the resource naming grammar ('android-device:SERIAL', 'port:3000', 'branch:NAME', 'file:PATH') and the 480-minute ceiling that the schema's 'minutes' description omits. Only 'reason' goes unelaborated.

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?

States a specific verb ('claim') and resource ('shared resource') plus the intent ('before using it so other assistants do not collide with you'). It is clearly distinguishable from release and list_claims in the sibling set without opening any schema.

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 an explicit when-to-use ('before using it') and an explicit when-not / alternative path ('if someone else holds it... ask them instead of taking it'). It does not name the sibling tools release or list_claims, so an agent must infer that releasing is a separate call, but the situational guidance itself is clear.

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