Skip to main content
Glama

renew_claim

Extend a claimed thread's lease by providing its thread ID, fencing token, and new lease duration; stale holders whose claim was reclaimed are rejected.

Instructions

Extend a claimed thread's lease (heartbeat). Only the current assignee holding the matching fencing token may renew; a stale holder whose claim was reclaimed is rejected.

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": {
      "thread_id": "<thread_id>",
      "claim_lease_id": "<claim_lease_id>",
      "lease_secs": "<lease_secs>"
    },
    "name": "renew_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
thread_idYes
lease_secsYesnew lease deadline in seconds from now (1 s to 7 days)
claim_lease_idYesthe fencing token from the claim response's thread.claim_lease_id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare it is not read-only, not idempotent, not destructive and closed-world; the description adds real value above that by stating the authorization rule (matching fencing token) and the failure mode (stale holders rejected). It does not say whether repeated renewals stack or reset, nor what a successful renewal returns/confirms, which matters given idempotentHint=false.

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?

Two sentences, front-loaded with the action and followed by the eligibility constraint. No filler or restated field names.

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?

For a three-parameter lease mutation with no output schema, the description covers action, scope, and authorization. The remaining gap is the outcome of a successful call (confirmation or new expiry), which would let an agent verify renewal without guessing.

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 67% and the description reinforces claim_lease_id as a fencing token that must match the current holder, which is meaning beyond simply 'the fencing token from the claim response'. It adds nothing for thread_id or lease_secs, but lease_secs is already documented in the schema with bounds.

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 — 'Extend a claimed thread's lease (heartbeat)' — and the parenthetical disambiguates the intent (keep-alive rather than acquiring a claim). An agent can separate this from claim_thread/claim_next_thread purely from this sentence.

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?

Makes clear this applies to a claim you already hold and gives an explicit exclusion: a stale holder whose claim was reclaimed is rejected. It does not route the agent to release_claim or claim_thread when no claim exists, so it stops short of full alternative guidance.

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

Deploy Server

Other Tools