Skip to main content
Glama
Spicy-API
by Spicy-API

Destroy a SpicyAPI task's stored content

spicyapi_task_purge
DestructiveIdempotent

Destroy a finished task's stored media, result, prompt, and input text, keeping the charge record intact. Irreversible; download wanted files beforehand. Requires user confirmation.

Instructions

Permanently destroy one terminal task's stored content: generated media, result payload, prompt, and input text. This destroys content, not the record of what it cost — the ledger entry, charged amount, model, state, timestamps and request ID all stay queryable afterwards, so this never hides or reverses a charge and never refunds anything. It cannot be undone and there is no per-output granularity: the unit is one whole task. Download any result the user still wants before calling this. Only tasks in a terminal state are accepted. An accepted task cannot be canceled and there is no cancellation API, so for a queued or running task wait until it finishes (task_wait), then purge it. Repeating the call on an already destroyed task succeeds and changes nothing. Requires a user confirmation round.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskIdYesThe exact task whose content should be destroyed. Only call this for a task the user named; never sweep task history on your own initiative.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already signal destructive and idempotent behavior, but the description adds substantial context beyond them: charges remain queryable, no refund or reversal occurs, no per-output granularity, the operation is irreversible, repeat calls are no-ops, and user confirmation is required. This fully discloses the consequence profile an agent needs before invoking a destructive tool.

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 dense but every sentence carries a distinct operational fact: destruction scope, cost-record preservation, irreversibility, download warning, terminal-state precondition, waiting path, idempotence, and confirmation. The most critical safety information is front-loaded, and there is no redundant filler.

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?

For a destructive tool with no cancellation path, this description is operationally complete: it states preconditions, exact effects, non-effects, idempotence, required confirmation, and the correct workflow via task_wait. The output schema exists, so not describing return values is acceptable.

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 already covers taskId's format and the rule to only use a user-named task. The description adds further selection semantics by requiring a terminal state and clarifying that the scope is the whole task, not individual outputs. That goes slightly beyond the baseline for high schema coverage, though it does not describe the parameter format itself.

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 opens with a precise verb and resource: 'Permanently destroy one terminal task's stored content,' and enumerates exactly what is destroyed. It also distinguishes itself from sibling tools by clarifying that it does not touch cost records or cancel tasks, so there is no ambiguity against task_wait or task_retry.

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?

The description gives explicit when-to-use and when-not-to-use guidance: download wanted results first, only call on terminal tasks, wait with task_wait for queued/running tasks, and require user confirmation. It also states there is no cancellation API)Skip and no alternative for undoing, so the agent knows this is the only destructive path and how to sequence it correctly.

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