Skip to main content
Glama

renew_task_lease

Idempotent

Extend a lease this session already holds, to keep working past its expiry. Call it roughly every 3 minutes during long work. renewed=false means the lease has already lapsed or another agent now holds the task: stop, and call claim_task again to find out which. Retrying a failed renew never succeeds.

Input Schema

NameRequiredDescriptionDefault
taskIdYesTask whose lease to extend.
ttlMinutesNoNew lifetime in minutes from now. Defaults to 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover safety traits (non-destructive, idempotent, not read-only), and the description adds non-obvious behavior beyond them: the renewal cadence, the semantics of a renewed=false result, and the fact that retries never succeed. Because there is no output schema, explaining the renewed=false contract is especially valuable.

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?

Four tightly written sentences, front-loaded with the purpose and cadence, each carrying distinct information (what it does, when to call, failure meaning, retry caveat) with no redundancy.

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?

With no output schema, the description steps in to explain the renewed=false return contract, and it covers cadence, failure handling, and the retry caveat. Nothing an agent needs to call and interpret this tool 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 coverage is 100% and both parameters (taskId, ttlMinutes with a 10-minute default) are already documented in the schema. The description references the cadence implicitly but adds no syntax or format detail beyond what the schema provides, so baseline 3 applies.

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 (extend/renew) and resource (a lease this session already holds), and the scoping phrase 'this session already holds' distinguishes it from claim_task and release_task in the sibling set.

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

Usage Guidelines5/5

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

Gives an explicit cadence ('roughly every 3 minutes during long work'), names the failure branch (renewed=false -> stop, then call claim_task), and warns that retrying a failed renew never succeeds. When-to-use, when-not, and the alternative are all covered.

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.