Skip to main content
Glama

Lease (lock)

lease
Destructive

Mutual exclusion with fencing tokens. acquire(holder) returns owner_token and fence (globally increasing); pass fence to downstream writes so a stale holder can be rejected. Holds expire after hold_seconds (default 60) unless renewed. 409 unavailable means held: retry after Retry-After or wait_seconds up to 30.

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": {
      "action": "<action>"
    },
    "name": "lease"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
actionYes
holderNo
owner_tokenNo
ttl_secondsNo
hold_secondsNo
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, and openWorldHint=false. The description adds substantive behavior beyond that: default hold expiry of 60 seconds unless renewed, the fencing-token safety contract for downstream writes, and the meaning of a 409 response plus retry bounds. It stops short of describing what delete or release destroys, whether release requires the owner_token, or whether concurrent callers block.

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?

Four dense sentences, front-loaded with the mechanism and the fencing-token contract before moving to expiry and error handling. No filler or restated title. Slightly overpacked — the fence guidance and the 409 retry rule are compressed into single clauses that could be clearer.

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

Completeness5/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 must cover the return contract, and it does: acquire yields owner_token and fence. Combined with expiry semantics and the 409/retry behavior, an agent can drive the primary acquire-renew-release loop correctly.

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 description coverage is 0%, so the description carries the full burden and only partially meets it. It supplies real meaning and defaults for hold_seconds (default 60) and wait_seconds (capped at 30) and clarifies owner_token's role and holder's placement in acquire. But it never explains the 'action' enum values, the 'id' parameter, or ttl_seconds — and the relationship between ttl_seconds (max 604800) and hold_seconds (max 3600) is left ambiguous despite both being present.

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 names a specific mechanism — mutual exclusion with fencing tokens — and states the core contract (acquire returns owner_token and a globally increasing fence). That is far more informative than the title 'Lease (lock)'. It does not differentiate itself from plausible siblings such as semaphore, barrier, or deadman, leaving the agent to infer the distinction.

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?

It gives concrete operational guidance for the acquire path: pass the fence to downstream writes so stale holders are rejected, renew before expiry, and retry on 409 using Retry-After or wait_seconds. However, the schema exposes seven actions and the description only explains how to use acquire; read, renew, touch, release, and delete are left without any when-to-use framing, and no alternative tool is named.

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