Skip to main content
Glama

get_document_link

Destructive

Get a download URL for a stored document. Default: time-limited (expires_in seconds, default 3600, max 86400) — to LOOK at what you produced before sending it on. permanent=true: a link that stays valid as long as the document exists (not guessable, downloads counted) — use THIS for links you put into mails or chats for other people (e.g. a Lab-Order Excel for the lab). Required: document_id.

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": {
      "document_id": "<document_id>"
    },
    "name": "get_document_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
permanentNotrue = link valid as long as the document exists, for sharing with others
expires_inNoLink lifetime in seconds (default 3600, max 86400)
document_idYesID of the document

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / document_id / description
      Added value: +"ID of the document"
    • addedInput schema / properties / expires_in / description
      Added value: +"Link lifetime in seconds (default 3600, max 86400)"
    • addedInput schema / properties / permanent / description
      Added value: +"true = link valid as long as the document exists, for sharing with others"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

The description adds useful behavior beyond annotations: default expiry of 3600 seconds, maximum 86400 seconds, permanent links remaining valid while the document exists, non-guessability, and downloads being counted. However, it does not reconcile the destructiveHint=true annotation, explain what is 'destructive,' or address non-idempotency, leaving a significant gap for a tool whose annotations suggest side effects.

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?

The description is front-loaded and efficiently organized into default versus permanent modes. It uses emphasis ('LOOK', 'THIS') effectively, though a slightly tighter phrasing could reduce density.

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 3-parameter tool with no output schema, the description covers purpose, modes, expiry, permanence, and required document_id, but leaves gaps around error behavior, output format, and especially the destructive and non-idempotent annotation signals.

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 the schema already documents permanent, expires_in, and document_id. The description reinforces the meaning of permanent for sharing versus previewing, but adds no syntax or format details beyond what the schema already provides.

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?

States a specific verb and resource: 'Get a download URL for a stored document.' It clearly distinguishes the default preview link from a permanent sharing link, so an agent can understand the tool's purpose without opening the schema.

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

Usage Guidelines5/5

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

Provides explicit when-to-use guidance for both modes: default time-limited links are 'to LOOK at what you produced before sending it on,' while permanent=true is for 'links you put into mails or chats for other people.' The Lab-Order Excel example grounds the permanent-link guidance in a concrete use case.

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.