Skip to main content
Glama

Delete Extraction

delete_extraction
DestructiveIdempotent

Delete an extraction result. A parent (root) ID deletes the whole upload (parent and all records); a record ID deletes only that record and renumbers the rest. Deleting an extraction that superseded an older extraction of the same file makes the older one current again.

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": {
      "extraction_id": "<extraction_id>"
    },
    "name": "delete_extraction"
  }
}

Input Schema

NameRequiredDescriptionDefault
extraction_idYesUUID of the extraction to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, openWorldHint=false, so the safety profile is covered. The description adds genuine behavior the annotations cannot convey: parent deletions cascade to all records, record deletions renumber the remainder, and removing a superseding extraction restores the prior one as current. Missing only irreversible-file/permission notes.

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?

Three sentences, each load-bearing: purpose, the two ID modes with their effects, then the supersession side effect. Front-loaded and no filler.

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 destructive mutation without an output schema, the description covers the consequences an agent must anticipate (cascade, renumbering, restoration of a prior extraction). It does not address failure cases or whether the underlying file is retained, which is minor for this shape.

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%, but the schema only says 'UUID of the extraction to delete', leaving the critical ambiguity unresolved. The description resolves it by defining two accepted ID namespaces (parent/root vs record) and their differing effects, which is real meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Delete an extraction result") and immediately splits the operation into two well-defined modes based on the ID type. It does not name a sibling, but the resource itself is distinct from delete_layout/delete_project, so misidentification risk is low.

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 description tells the agent exactly which input to pass for which outcome: a root/parent ID to remove the whole upload, a record ID to remove one record. It stops short of stating when deletion is inappropriate versus update_extraction, but the mode-selection guidance is concrete and actionable.

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