Skip to main content
Glama

renew_lease

Extend a held lease's TTL and stamp its heartbeat. This is the keep-alive an agent calls periodically while working a card so the lease doesn't expire and get re-claimed. Doubles as :heartbeat (same operation). Mirrors POST /v1/leases/{lease_id}:renew. Present the lease_token receipt from the claim; a stale token (the card was reaped or re-claimed by someone else) is refused with 409 lease_lost. lease_ttl_seconds overrides the extension length. Silent: bumps no card etag and emits no event.

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

Input Schema

NameRequiredDescriptionDefault
lease_idYes
lease_tokenYes
lease_ttl_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so richly: it discloses the 409 lease_lost failure on stale tokens, explains what a stale token means (card reaped or re-claimed), and notes the operation is silent (no etag bump, no event). These are exactly the side-effect and failure-mode details an agent needs before invoking a mutation.

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?

Every sentence earns its place: purpose first, then usage context, alias/endpoint mapping, token/auth behavior, override semantics, and silence note. No repetition or filler despite covering a lot of ground.

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?

For a mutating lease operation with no annotations, the description covers auth (lease_token), failure behavior (409 lease_lost), side effects (silent, no events), and the TTL override. An output schema exists, so return-value documentation is not needed, making this complete.

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 0%, so the description must compensate, and it does for two of three params: lease_token is explained as the claim receipt whose staleness yields 409 lease_lost, and lease_ttl_seconds is documented as overriding the extension length. lease_id is left to the uuid format and endpoint path, a minor but acceptable omission.

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+resource ('Extend a held lease's TTL and stamp its heartbeat') and explicitly frames its role versus related lifecycle operations as the periodic keep-alive. It also resolves the alias ('Doubles as :heartbeat') and maps to the REST endpoint, so an agent can identify it precisely among siblings like complete_lease and fail_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?

Gives strong when-to-use guidance: call it periodically while working a card to prevent expiry and re-claim. It also states the precondition (present the lease_token receipt from the claim). It does not explicitly name alternative lifecycle tools or when-not to call, which keeps it short of a 5.

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