Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Delete document

delete_document
DestructiveIdempotent

Remove a document from a transfer or payment route deposit. Deletion is irreversible, so confirm with a human first.

Instructions

Remove a document from a transfer or a payment route deposit. This cannot be undone, so confirm with a human first.

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": {
      "on": "<on>",
      "transactionId": "<transactionId>",
      "documentId": "<documentId>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYesWhat the document belongs to: a transfer, or a deposit on a payment route
documentIdYesThe document ID from list_documents
transactionIdYesThe transfer ID, or the deposit ID from get_payment_route_history

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.6.15
    • changedInput schema / properties / transactionId / description
      Previous value: -"The transfer ID, or the deposit ID from get_virtual_account_history"New value: +"The transfer ID, or the deposit ID from get_payment_route_history"
  2. Changed1 schema field changedv2.6.11
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Addedv2.4.0

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, and the description adds genuinely new context: the operation is irreversible and requires human confirmation before invoking. That is above the annotation baseline. It could go further by clarifying whether the document is unlinked or permanently erased and whether any permission scope is needed, since "remove from a transfer" reads softer than destructiveHint=true.

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?

Two sentences, zero filler, with the operation stated first and the safety warning immediately after. Every clause carries information an agent needs before invoking.

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?

A three-parameter destructive tool with no output schema and full annotation coverage needs little more than this: what it does, what it acts on, and that it is irreversible. The only real omission is whether removal is a detach or a hard delete, which would matter for a caller weighing destructiveHint=true.

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 coverage is 100%, so every parameter is already documented, which sets the baseline at 3. The description's mention of transfer versus deposit mirrors the `on` enum without adding format, validity, or sourcing details beyond what the schema text already provides.

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 ("Remove a document") plus the two scopes it applies to (transfer or payment route deposit), which lets an agent distinguish it from add_document at a glance. It stops short of naming that sibling explicitly, so the differentiation is implied rather than stated.

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 description supplies a real precondition — "confirm with a human first" — which is actionable guidance. However, it never says when a document should be removed versus left attached, nor does it point to add_document as the inverse operation, so usage is only implied.

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