Skip to main content
Glama

Delete the previewed tasks

delete_tasks
DestructiveIdempotent

Step two: deletes exactly the tasks a preview_delete listed, and nothing else. Call it only after the person has seen that preview and said yes. Takes only the preview_token. It refuses if the token is older than 10 minutes, already used, or if any of the tasks changed since the preview; make a new preview then.

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": {
      "preview_token": "<preview_token>"
    },
    "name": "delete_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
preview_tokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already show it is destructive and idempotent, and the description adds behavior not in them: the token expires after 10 minutes, can be used only once, and is rejected if any task changed since the preview. These refusal conditions tell the agent exactly how a call can fail and what to do, giving it much information beyond the annotations.

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?

The description is three sentences and front-loaded with step two and the exact scope, followed by preconditions and then failure modes. Nothing is redundant, and every sentence adds operative detail.

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?

Given a single-parameter destructive tool with strong annotations, the description covers prerequisites, failure modes, and recovery. The one small gap is that it does not describe what a successful call returns (for example, how many tasks were deleted), which matters slightly because there is no output schema.

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?

The schema coverage is 0%, and the single parameter has only length limits. The description explains that the tool takes only the preview_token and describes its lifecycle: valid for 10 minutes, single-use, and tied to a specific preview. It does not explain the exact format or source of the token, but "preview_token" implies it comes from preview_delete.

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?

The description names a specific action and its scope: "deletes exactly the tasks a preview_delete listed, and nothing else." It ties explicitly to sibling preview_delete and makes clear that this deleting tool is the second step of that workflow, so an agent can tell it apart from other delete or update tools.

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?

This is explicit: call it "only after the person has seen that preview and said yes." It names the prerequisite (preview_delete must have run) and the condition (user confirmation). If the tool refuses, the description gives advice: "make a new preview then."

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.

Resources