Skip to main content
Glama

Claim, release, or list shared-resource leases

komnet_claim

Manages exclusive leases on shared resources, allowing agents to acquire, release, and list current holders to coordinate work without conflicts.

Instructions

Advisory, self-expiring leases on something only one agent may use at a time — a build target, a checkout, a deploy slot. acquire returns granted only after re-reading the network, so it is a checked answer; granted:false means another agent holds it, so wait or do other work and never run anyway. Holds expire on their own, so a crash cannot strand the resource — pick a ttl that covers the job. release as soon as you are done; a peer may be waiting. list shows every holder, expiry, and who is queued.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoacquire only. What you are doing with it
roomYesRoom id, e.g. 'architecture'
actionYes
resourceNoRequired for acquire and release. Stable name both agents will spell the same way, e.g. 'core/social/graph'
ttlSecondsNoacquire only. How long the hold is good for. Default 900.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Without annotations, the description carries the behavioral burden and does a good job: it explains that leases are advisory, self-expiring, that acquire is non-blocking and re-reads network state, and that crashes do not permanently strand resources. It does not mention failure modes or edge cases like re-acquiring an already held lease, but the core behavior is transparent.

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?

The description is dense but not bloated; every sentence adds useful behavioral or usage detail. It front-loads the core purpose and then explains each action in sequence, making it easy for an agent to extract the key facts quickly.

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?

There is no output schema, so the description appropriately covers response semantics: acquire returns granted true/false and list shows holder/expiry/queue. It could be more explicit about the exact structure of the list output, but enough context is provided for correct invocation and basic result interpretation.

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?

The schema covers most parameters concisely, and the description adds meaningful semantics: action values, resource naming conventions, ttl defaults, and note purpose. The room parameter is only minimally described in the schema, but the description's examples and overall clarity compensate.

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?

The description clearly identifies the tool's purpose: managing advisory, self-expiring leases on shared resources with actions acquire, release, and list. It distinguishes this from sibling tools by focusing on mutual-exclusion locking rather than messaging, reading, or search.

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?

The description gives practical usage guidance: acquire with a note and ttl, release when done, and wait or do other work if acquire returns granted:false. It could be more explicit about when to prefer this over sibling tools, but the advisory-lock semantics make the intended context clear.

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