Skip to main content
Glama

Restore a task

restore_task

Restore a task deleted within the last 30 days from the trash into its project, including comments, files, and links; it receives a new ID if the original is taken.

Instructions

Bring a task deleted in the last 30 days back from the trash into its project, with its comments, files and links; it gets a new id if its old one was taken. Returns the task line.

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": {
      "id": "<id>"
    },
    "name": "restore_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid the task had when it was deleted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the retention limit (30 days), that restoration is recursive (comments, files, links come back), and that the restored task may receive a new id if the old one is taken — the last point meaningfully explains the idempotentHint=false annotation. This is substantive behavior an agent could not infer from the structured fields.

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?

One dense sentence with the retention constraint and the cascade effects front-loaded, followed by the id caveat and return value. No filler and nothing buried.

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 single-parameter tool with no output schema, the description covers scope, side effects, id behavior and the rough return shape ('the task line'). It leaves minor gaps: what happens on failure past 30 days and what 'task line' concretely contains, but an agent has enough to call it correctly.

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 real meaning by clarifying that the id passed is the id the task had when deleted and that the returned task may carry a different id. That disambiguates how the single parameter relates to the result.

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 (bring back from trash) and resource (task deleted in the last 30 days) plus the effect on its project, comments, files and links. This clearly separates it from delete_task and from get_task without the agent needing to open either schema.

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?

The 30-day window establishes the condition under which the tool applies and implicitly the case where it will not (older deletions), giving clear usage context. It does not explicitly name an alternative path or warn what to do when the window has expired, so it stops short of full when/when-not guidance.

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