Skip to main content
Glama

renew_claim

Destructive

RENEWS your claim (the lease claim_task returns) and DECLARES your progress. A claim lasts 15 minutes: without a renewal at least every 15 minutes the task becomes claimable again on the same terms as a task to do — intended: an agent that no longer maintains its task loses its claim. progressPct (integer 0-100, REQUIRED) is your progress, DECLARED and not measured: it can go down, and 100 completes NOTHING (completion goes through update_task({ status })). progressNote (at most 140 characters) says where you stand. keepAlive: true (for a watcher) extends WITHOUT a percentage, only if your last declaration is less than 45 minutes old — otherwise PROGRESS_STALE and the lease expires. Response: { renewed: true, leaseUntil, leaseMinutes, progress } or { renewed: false, code, message }: CLAIM_LOST (stale token, expired lease, task taken over or handed back: claim_task reclaims it if it admits you) · PROGRESS_STALE · TASK_NOT_FOUND · WRITE_LOCKED (agent writes locked on this block or project). A refusal writes NOTHING. Writes only your claim: neither the task nor its history changes. The token is a SECRET that this tool does not return. A renewal counts toward the SYNC counter of your plan, separate from the counter of your useful calls (batched with other tools: counted as an ordinary call).

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": {
      "taskId": "<taskId>",
      "claimToken": "<claimToken>"
    },
    "name": "renew_claim"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesThe task you hold (claimed with `claim_task`).
keepAliveNoTrue = extends the lease WITHOUT declaring progress (neither `progressPct` nor `progressNote`) — for use by a watcher. Refused (`PROGRESS_STALE`) when your last declaration is too old: this is what forces you to maintain your task.
claimTokenYesThe token of YOUR claim, returned by `claim_task` (a SECRET that must not be copied into any text). A stale token = `CLAIM_LOST`.
progressPctNoYour DECLARED progress, an integer from 0 to 100 — REQUIRED (except with `keepAlive`). It can GO DOWN; 100 completes NOTHING: a task is finished through `update_task({ status })`. It is a declaration, not a measurement.
progressNoteNoOne sentence on where you stand (at most 140 characters). Optional.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed6 schema fields changed
    • changedInput schema / properties / claimToken / description
      Previous value: -"Le jeton de TA prise, rendu par `claim_task` (un SECRET : ne le recopie dans aucun texte). Un jeton périmé = `CLAIM_LOST`."New value: +"The token of YOUR claim, returned by `claim_task` (a SECRET that must not be copied into any text). A stale token = `CLAIM_LOST`."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / keepAlive / description
      Previous value: -"Vrai = prolonge le bail SANS déclarer d’avancement (ni `progressPct`, ni `progressNote`) — l’usage d’un veilleur. Refusé (`PROGRESS_STALE`) quand ta dernière déclaration est trop ancienne : c’est ce qui t’oblige à maintenir ta tâche."New value: +"True = extends the lease WITHOUT declaring progress (neither `progressPct` nor `progressNote`) — for use by a watcher. Refused (`PROGRESS_STALE`) when your last declaration is too old: this is what forces you to maintain your task."
    • changedInput schema / properties / progressNote / description
      Previous value: -"Une phrase sur où tu en es (140 caractères au plus). Facultative."New value: +"One sentence on where you stand (at most 140 characters). Optional."
    • changedInput schema / properties / progressPct / description
      Previous value: -"Ton avancement DÉCLARÉ, entier de 0 à 100 — REQUIS (sauf `keepAlive`). Il peut BAISSER ; 100 n’achève RIEN : la fin d’une tâche passe par `update_task({ status })`. C’est une déclaration, jamais une mesure."New value: +"Your DECLARED progress, an integer from 0 to 100 — REQUIRED (except with `keepAlive`). It can GO DOWN; 100 completes NOTHING: a task is finished through `update_task({ status })`. It is a declaration, not a measurement."
    • changedInput schema / properties / taskId / description
      Previous value: -"La tâche que tu tiens (prise par `claim_task`)."New value: +"The task you hold (claimed with `claim_task`)."
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false, destructiveHint=true, openWorldHint=false; the description goes well beyond by disclosing lease expiry consequences, that a refusal writes nothing, that only the claim row is touched and task/history are unchanged, the secret nature of the token, and billing (SYNC counter vs useful-call counter, batch behavior). The error taxonomy (CLAIM_LOST, PROGRESS_STALE, TASK_NOT_FOUND, WRITE_LOCKED) with causes is exactly the behavioral context an agent needs.

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-loaded with the core action and lease window, then parameters, then response/error shapes — a sensible order with no filler sentences. It is dense to the point of being a wall of capitalized emphasis (RENEWS, DECLARES, SECRET, NOTHING), which costs some scannability even though nearly every clause carries information.

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?

There is no output schema, and the description compensates by spelling out both response shapes (`{ renewed, leaseUntil, leaseMinutes, progress }` vs `{ renewed: false, code, message }`) and enumerating the failure codes. For a 6-parameter mutation tool with a secret credential and time-based expiry, nothing material an agent needs to call it safely is missing.

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 100%, so the baseline is 3, but the description adds genuine meaning: progressPct 'can go down' and '100 completes NOTHING', and keepAlive is refused when the last declaration is older than 45 minutes — a concrete threshold the schema only gestures at with 'too old'. It stops short of explaining `expectedProjectId`'s override behavior in the prose, leaving that to the schema.

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?

Opens with a specific verb and resource: 'RENEWS your claim (the lease `claim_task` returns) and DECLARES your progress.' It explicitly distinguishes itself from `claim_task` (which obtains the lease) and `update_task({ status })` (which completes the task), so an agent can place it correctly among siblings without reading any schema.

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?

States the operative cadence ('without a renewal at least every 15 minutes the task becomes claimable again'), the alternative for finishing work ('completion goes through `update_task({ status })`'), and the narrow case for `keepAlive` ('for a watcher'). When-not guidance is implicit but concrete: an agent that no longer maintains its task should let the lease lapse.

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.