Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Add document

add_document
Destructive

Attach an invoice, contract, or other supporting document to a transfer or payment route deposit when Stables compliance requests it, using a base64 data URL.

Instructions

Attach a supporting document (invoice, contract or other) to a transfer or a payment route deposit, for example when Stables compliance asks for one. The file goes as a base64 data URL ('data:application/pdf;base64,...').

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>",
      "fileName": "<fileName>",
      "base64Url": "<base64Url>"
    },
    "name": "add_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
onYesWhat the document belongs to: a transfer, or a deposit on a payment route
typeNoWhat the document is (default other)
fileNameYesFile name shown to Stables, e.g. 'invoice-2041.pdf'
base64UrlYesThe file as a data URL: 'data:<mime>;base64,<data>'
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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, so the safety profile is carried structurally. The description adds the compliance context and the payload format, but says nothing about what happens on success, whether repeated calls create duplicate documents (relevant given idempotentHint=false), or whether permissions beyond standard auth are required.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action and target, then the payload format requirement. Minor redundancy with the schema's enum and format descriptions, but nothing is padded or wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool flagged destructive and non-idempotent with no output schema, an agent would still want to know the success response, duplicate-handling behavior, and any size or MIME restrictions. The description covers the essentials of what to send but stops short of these operational details.

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%, so every parameter is already documented, including the data URL format and the enum values. The description's restatement of 'invoice, contract or other' and 'transfer or a payment route deposit' duplicates the schema rather than adding meaning; the base64 exemplar is mildly useful but also present in 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?

The description gives a specific verb and resource ('Attach a supporting document') and scopes the targets precisely: a transfer or a payment route deposit. It is clearly distinct from delete_document and get_document_download_url by implication, though it never names those siblings.

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?

It offers one motivating scenario ('when Stables compliance asks for one'), which is a real when-to-use cue. It gives no when-not guidance and does not route the agent to related tools such as delete_document or get_document_download_url for removal or retrieval.

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