Skip to main content
Glama

get_lease

Fetch one durable-work lease by id, for read-only queue observability. Mirrors GET /v1/leases/{lease_id}. Returns the lease row (holder, attempt, expires_at, released_at/release_reason, not_before). Requires board READ access (viewer+) via the lease's card; a lease in another org, or on a restricted board you cannot see, returns 404 (existence never revealed). A read: never blocked for a past_due org.

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": {
      "lease_id": "<lease_id>"
    },
    "name": "get_lease"
  }
}

Input Schema

NameRequiredDescriptionDefault
lease_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/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 so: it lists the returned fields, states the required board READ access (viewer+) via the lease's card, and explains that cross-org or restricted-board leases return 404 with existence never revealed. It also discloses that reads are never blocked for a past_due org — behavior an agent could not infer from the schema.

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?

Three tight sentences, front-loaded with the purpose, then return shape, then access/error semantics. No filler and nothing redundant.

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?

Auth requirements, 404 behavior for unauthorized visibility, and past_due-org behavior are all covered, and an output schema exists so return values need not be re-explained. Nothing an agent needs to call this correctly is missing.

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%, but the sole parameter is a self-documenting 'lease_id' with uuid format, and the description adds only that it is the id in /v1/leases/{lease_id}. That is minimal compensation but sufficient for a single obvious identifier.

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 and resource ('Fetch one durable-work lease by id') plus its scope ('for read-only queue observability'), and the endpoint mapping GET /v1/leases/{lease_id} confirms exactly which object is returned. The 'read-only' framing implicitly separates it from the mutating siblings complete_lease/fail_lease/renew_lease.

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 phrase 'for read-only queue observability' tells the agent this is the inspection path rather than a lease lifecycle mutation, which is the key routing decision among the lease siblings. It does not, however, explicitly name an alternative tool or state a when-not condition.

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