Skip to main content
Glama

archive_task

Destructive

Archives a task (or several — taskId accepts an array, up to 100): it leaves the lists and the card indicators, without being destroyed. It is the action that replaces a deletion. Archiving never cascades to subtasks: if it keeps LIVE ones, the response SAYS so via liveChildren + liveChildrenNote (the action still succeeds; subtasks are archived explicitly if that is intended). In BATCH form, each id is archived INDEPENDENTLY — an id not found never prevents the others from succeeding — and the response carries succeeded/failed instead of the flat fields of the single action. CLOSING LOCK: archiving a task is refused (UNACKNOWLEDGED_COMMENTS, nothing written) while a comment addressed to the agent on it, delivered to the calling key (or to the chat), is unacknowledged (acknowledgement goes through update_task or reply_comment); a comment delivered to a different key does not block and is reported in commentsHeldByOthers. There is no agent-side override: only a human can still close it from the site. In validation mode, a task that WAITS for a human ("to validate" / "to approve") is not archived by an agent: named refusal, nothing written.

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

Input Schema

NameRequiredDescriptionDefault
taskIdYesONE identifier, or UP TO 100 (array) — each one is archived INDEPENDENTLY: a refusal (locked block, task not found) on one does not prevent the others from succeeding. In batch form, the response carries `succeeded`/`failed` instead of the flat fields of the single action.
claimTokenNoYOUR claim's token (from `claim_task`) — REQUIRED to write to a task a lease holds: without it `CLAIM_HELD`, a stale one `CLAIM_LOST`. A SECRET kept out of every written text. A write carrying it extends the lease without touching the declared progress; ending the task (`done`, archiving, back to `todo`) releases the claim. On a task nobody holds, the field stays empty.
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. Changed2 schema fields changed
    • changedInput schema / properties / claimToken / description
      Previous value: -"The token of YOUR claim (returned by `claim_task`) — REQUIRED to write to a task a lease holds: without it, the refusal is `CLAIM_HELD`; a stale token gives `CLAIM_LOST`. A SECRET that stays out of every written text. Any write that carries it extends the lease without touching the declared progress; the end of the task (`done`, archiving, back to `todo`) releases the claim. On a task nobody holds, the field stays empty."New value: +"YOUR claim's token (from `claim_task`) — REQUIRED to write to a task a lease holds: without it `CLAIM_HELD`, a stale one `CLAIM_LOST`. A SECRET kept out of every written text. A write carrying it extends the lease without touching the declared progress; ending the task (`done`, archiving, back to `todo`) releases the claim. On a task nobody holds, the field stays empty."
    • 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. Changed1 schema field changed
    • addedInput schema / properties / claimToken
      Added value: +{
      +  "description": "The token of YOUR claim (returned by `claim_task`) — REQUIRED to write to a task a lease holds: without it, the refusal is `CLAIM_HELD`; a stale token gives `CLAIM_LOST`. A SECRET that stays out of every written text. Any write that carries it extends the lease without touching the declared progress; the end of the task (`done`, archiving, back to `todo`) releases the claim. On a task nobody holds, the field stays empty.",
      +  "maxLength": 200,
      +  "minLength": 8,
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • 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 / taskId / description
      Previous value: -"UN identifiant, ou JUSQU’À 100 (tableau) — chacun s’archive INDÉPENDAMMENT : un refus (bloc verrouillé, tâche introuvable) sur l’un n’empêche JAMAIS les autres d’aboutir. Sous forme lot, la réponse porte `succeeded`/`failed` au lieu des champs plats du geste unitaire."New value: +"ONE identifier, or UP TO 100 (array) — each one is archived INDEPENDENTLY: a refusal (locked block, task not found) on one does not prevent the others from succeeding. In batch form, the response carries `succeeded`/`failed` instead of the flat fields of the single action."
  5. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructiveHint=true and readOnlyHint=false; the description goes much further, disclosing that nothing is destroyed, that archiving never cascades to subtasks and reports `liveChildren`, that batch ids succeed or fail independently, and that the closing lock returns `UNACKNOWLEDGED_COMMENTS` with nothing written. It also explains the lease interaction and the `commentsHeldByOthers` case, all of which the annotations cannot convey.

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?

The core purpose and the deletion substitution are front-loaded in the first two sentences, and the dense parenthetical payload carries real information rather than filler. It is heavy — capitalized emphasis, nested asides, and the batch-independence point restated from the schema — but a complex three-mode tool with no output schema justifies most of the length.

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 supplies the return shapes an agent needs (`liveChildren`/`liveChildrenNote`, `succeeded`/`failed`, `commentsHeldByOthers`) as well as refusal codes and their meaning. Combined with 100% schema coverage and the safety annotations, nothing material needed to invoke this 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 description coverage is 100% and the schema text itself already explains the array form, independent archiving, batch `succeeded`/`failed` response, and the claimToken lease semantics. The description's body adds behavior at the tool level but little parameter-level meaning beyond what the schema already states, so the 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 and resource — 'Archives a task' — and immediately distinguishes the operation from its nearest sibling concept: 'It is the action that replaces a deletion' and 'it leaves the lists and the card indicators, without being destroyed.' An agent can tell this apart from deletion or from update_task without opening a 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?

Gives explicit routing rules: use this instead of deleting; unacknowledged comments must go through `update_task` or `reply_comment` first; in `validation` mode a task waiting for human validation must not be archived. It also names the exact block conditions and states there is no agent-side override, which is precisely the when-not guidance an agent needs.

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.