Skip to main content
Glama

Agent Billing Primitives (Dirtsmith)

agent_lease_lock

agent_lease_lock

Hosted distributed lease lock for agents: acquire/renew/release a named lock with a TTL and a monotonic fencing token so only one agent does a job at a time. Share state by namespace

Input Schema

NameRequiredDescriptionDefault
ttl_sNo
actionYes
sourceNo
caller_idNodemo_caller
holder_idNo
lock_nameYes
namespaceYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it discloses only the TTL and monotonic fencing token. It never says what happens when a lock is already held (block, fail, or return a token), whether operations are idempotent, what the response contains, or how caller_id, holder_id, and source affect ownership — critical behavior for a concurrency primitive.

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?

Two compact sentences with the mechanism front-loaded and the namespace note appended; no filler. The colon-embedded action list is slightly compressed but readable, and nothing is wasted.

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

Completeness2/5

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

For an 8-parameter mutation-capable lock tool with no annotations and no output schema, the description is thin: it omits per-action parameter requirements, collision/contention behavior, and any sense of what is returned on acquire vs status. A reader cannot confidently invoke renew or release from this text alone.

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 0% across 8 parameters, so the description must compensate. It mentions TTL and lock name and implies namespace partitioning, but says nothing about idempotency_key, caller_id, holder_id, source, the status action, or the TTL bounds (1-3600s, default 60) and which parameters each action requires.

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+resource (distributed lease lock) and enumerates the lifecycle operations acquire/renew/release plus the fencing-token mechanism, so an agent knows exactly what the tool is for. It omits the 'status' action present in the enum and gives no explicit contrast with its siblings (spend ledger, usage metering), but the purpose is unmistakable.

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

Usage Guidelines2/5

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

The phrase 'so only one agent does a job at a time' describes why locking exists, not when to choose this tool or which action to invoke. There is no guidance on when to acquire vs renew vs release, no note that renew/release require an existing held lock, and no prerequisites or exclusions.

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.