Skip to main content
Glama
Stables MCP Server

Stables MCP Server

Official

Get document download link

get_document_download_url
Read-onlyIdempotent

Returns a short-lived download link for a document attached to a transfer or a payment route deposit, so you can retrieve the file by transfer ID or deposit ID plus document ID.

Instructions

Get a short-lived link to download a document attached to a transfer or a payment route deposit.

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": "get_document_download_url"
  }
}

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 readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral information: the returned link is short-lived, which tells the agent not to cache or reuse it. It stops short of giving an actual expiry window or noting whether repeated calls return the same URL.

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?

A single front-loaded sentence with the key qualifier ('short-lived') placed before the object. No filler, no redundancy, and nothing an agent must skim past.

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?

All three required parameters are fully specified in the schema and there is no output schema to explain, so the description only needs to convey the tool's contract — which it does, including the link's ephemeral nature. The remaining gap is minor: no expiry duration, no mention of what happens if the document is missing or the transaction ID is wrong.

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%, with each of the three required parameters documented, including the 'on' enum. The description only restates that documents belong to a transfer or a payment route deposit, mirroring the enum, so it adds no semantics beyond the schema. Baseline 3 applies.

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 ('Get') and resource ('a short-lived link to download a document') and scopes it to documents attached to a transfer or a payment route deposit. That is clear enough to separate it from siblings like add_document, delete_document, and list_documents, though it never names those siblings explicitly.

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?

Usage is only implied: an agent can infer it should call this to obtain a download link, and the schema's reference to 'list_documents' and 'get_payment_route_history' hints at prerequisite calls. There is no explicit when-to-use vs when-not guidance and no stated alternative for retrieving document content.

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