Skip to main content
Glama

Delete Uploaded Document

delete_document
DestructiveIdempotent

Immediately delete an uploaded TweekIT document by DocId before its 20-minute auto-expiry.

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": {
      "docId": "<docId>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
docIdYesThe alphanumeric DocId returned from a prior upload to delete.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered structurally; the description adds genuinely new context by noting the operation is immediate and that documents otherwise auto-expire in 20 minutes, which tells an agent deletion is a shortcut rather than the only cleanup path. It does not say what happens when the DocId is invalid or already expired.

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 sentence, zero filler, with the action and its urgency ("Immediately") front-loaded before the qualifier. Every clause contributes information.

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?

With an output schema present, annotations covering safety, and full schema coverage on the one parameter, the description supplies the remaining essentials: immediacy and the auto-expiry context. Only error/edge-case behavior (invalid or already-expired DocId) is left unaddressed, which is minor for this complexity.

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 single docId property already explains it is the alphanumeric DocId returned from a prior upload, so the description's "by DocId" adds essentially nothing. Baseline 3 applies since the schema carries the parameter meaning.

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 (delete) and resource (uploaded TweekIT document) plus the identifier used (DocId), which cleanly separates it from the read/convert siblings like fetch and convert. It stops short of naming or contrasting any alternative, but the action is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase "before its 20-minute auto-expiry" implies the situation in which deletion makes sense (cleaning up before automatic removal), but it never states when-not to call it, what happens after expiry, or which sibling to use instead if the goal is retrieval rather than removal.

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.