Skip to main content
Glama

refresh_claim

Extend an active claim's TTL without releasing it when a subagent's task outruns its role TTL, adding the configured duration and recording a refresh event.

Instructions

Extend an active claim's TTL without releasing it. Use when a subagent's reproduction is taking longer than the configured role TTL (e.g. a verifier mid-deploy on a remote test host). extend_by accepts the same duration shorthand as the role_ttls config ('30m', '2h'); if omitted, the role's configured TTL is added on top of the current claimed_until. The token must still be live AND held by the calling actor — an already-expired claim cannot be reanimated here (it must release and re-claim), because the stuck-work sweeper may have already handed the row to someone else. Writes a claim_refreshed event so the audit trail shows every extension.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ExtendByNo
as_agentNo
ClaimTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/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 well: it discloses that the token must be live and held by the calling actor, that expired claims cannot be reanimated because the stuck-work sweeper may have reassigned the row, and that a claim_refreshed event is written for audit. It stops short of describing auth/permission requirements beyond caller ownership.

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?

Front-loads purpose, then usage, then failure-mode caveats and side effects. Dense but every sentence carries operational weight; no filler.

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 mutation tool with no annotations or output schema, the description covers triggering conditions, default behavior, failure modes, and the audit side effect, which is nearly everything an agent needs. The remaining gap is the unlabeled ClaimToken/as_agent parameters.

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 must compensate. It thoroughly explains ExtendBy (duration shorthand like '30m'/'2h', and the default of adding the role's configured TTL), but ClaimToken and as_agent are left largely implicit. Partial compensation for a 3-param tool.

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 an active claim's TTL without releasing it. This clearly distinguishes it from siblings like release_claim, claim_next_task, and start_work, which touch the claim lifecycle differently.

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?

Explicitly states when to use it ('when a subagent's reproduction is taking longer than the configured role TTL') with a concrete example, and states when it will not work (an expired claim must release and re-claim instead). Both the when and the when-not are covered.

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