Skip to main content
Glama

download

Issues a temporary download link (10 min) for a purchase already paid, with the file's SHA-256 checksum to verify it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purchaseIdYesThe «purchaseId» that my_purchases returns for that purchase (NOT the orderId from prepare_payment).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe download URL, already signed.
nameYesName of the file exactly as the seller uploaded it.
noteYesHow to use the link and what to check about the file.
sha256YesSHA-256 fingerprint (hex) of the file, or null if it has not been computed yet.
expiresAtYesWhen the link expires (ISO 8601); null if that URL does not expire.
sizeBytesYesSize of the file in bytes.
contentTypeYesMIME type of the file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / allOf
      Removed value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "required": [
      -          "purchaseId"
      -        ]
      -      },
      -      {
      -        "required": [
      -          "compraId"
      -        ]
      -      }
      -    ]
      -  }
      -]
    • removedInput schema / properties / compraId
      Removed value: -{
      -  "deprecated": true,
      -  "description": "DEPRECATED alias of `purchaseId`: it still works, but use `purchaseId` (it will be removed in a future round, no date yet). The «compraId» that my_purchases returns for that purchase (NOT the ordenId from prepare_payment).",
      -  "type": "string"
      -}
    • changedInput schema / properties / purchaseId / description
      Previous value: -"The «compraId» that my_purchases returns for that purchase (NOT the ordenId from prepare_payment)."New value: +"The «purchaseId» that my_purchases returns for that purchase (NOT the orderId from prepare_payment)."
    • addedInput schema / required
      Added value: +[
      +  "purchaseId"
      +]
    • removedInput schema / x-bernuvia-aliases
      Removed value: -{
      -  "purchaseId": "compraId"
      -}
  2. Changed9 schema fields changed
    • changedInput schema / properties / compraId / description
      Previous value: -"ALIAS RETIRADO de `purchaseId`: sigue funcionando, pero usa `purchaseId` (se quitará en una tanda futura, aún sin fecha). / DEPRECATED alias of `purchaseId`. El «compraId» que devuelve my_purchases para esa compra (NO el ordenId de prepare_payment)."New value: +"DEPRECATED alias of `purchaseId`: it still works, but use `purchaseId` (it will be removed in a future round, no date yet). The «compraId» that my_purchases returns for that purchase (NOT the ordenId from prepare_payment)."
    • changedInput schema / properties / purchaseId / description
      Previous value: -"El «compraId» que devuelve my_purchases para esa compra (NO el ordenId de prepare_payment)."New value: +"The «compraId» that my_purchases returns for that purchase (NOT the ordenId from prepare_payment)."
    • changedOutput schema / properties / contentType / description
      Previous value: -"Tipo MIME del archivo."New value: +"MIME type of the file."
    • changedOutput schema / properties / expiresAt / description
      Previous value: -"Cuándo caduca el enlace (ISO 8601); null si esa URL no caduca."New value: +"When the link expires (ISO 8601); null if that URL does not expire."
    • changedOutput schema / properties / name / description
      Previous value: -"Nombre del archivo tal y como lo subió el vendedor."New value: +"Name of the file exactly as the seller uploaded it."
    • changedOutput schema / properties / note / description
      Previous value: -"Cómo usar el enlace y qué comprobar del archivo."New value: +"How to use the link and what to check about the file."
    • changedOutput schema / properties / sha256 / description
      Previous value: -"Huella SHA-256 (hex) del archivo, o null si aún no se ha calculado."New value: +"SHA-256 fingerprint (hex) of the file, or null if it has not been computed yet."
    • changedOutput schema / properties / sizeBytes / description
      Previous value: -"Tamaño del archivo en bytes."New value: +"Size of the file in bytes."
    • changedOutput schema / properties / url / description
      Previous value: -"La URL de descarga, ya firmada."New value: +"The download URL, already signed."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses key traits: the link is temporary (10 minutes), requires a paid purchase, and returns a SHA-256 checksum for verification. It omits authentication requirements, single-use semantics, and error behavior, so it is not fully comprehensive.

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 sentence that front-loads the action, includes the expiry constraint, the precondition, and the verification artifact. Every clause earns its place with no redundancy.

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?

An output schema exists, so return values are covered elsewhere. The description supplies purpose, precondition, TTL, and checksum; only minor details like auth or ownership requirements are absent, which is acceptable for a one-parameter read operation.

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% and the single parameter purchaseId is fully documented in the schema with a crucial distinction from prepare_payment's orderId. The description adds no parameter-level detail, so the baseline of 3 applies.

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

Purpose5/5

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

The description states a specific verb ('Issues') and resource ('temporary download link') with scope ('for a purchase already paid') and expiry ('10 min'). It is clearly distinct from sibling upload-link tools like evidence_upload_link or zip_upload_link, which perform the opposite operation.

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 phrase 'for a purchase already paid' gives clear context: use only after payment is complete. It does not name alternative tools or state when not to use the tool, but the precondition is explicit enough to guide selection.

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