Skip to main content
Glama

Get download URL

get_doc_url
Read-only

Get a time-limited signed URL that downloads the raw file of any doc the user has access to — HTML, PDF, Markdown, anything stored on docfarm. Use this when you need to hand the file off to another tool or LLM, when the user asks for a download link, or when the doc isn't HTML (where get_doc_html doesn't apply). URL expires after ttl_seconds (default 3600, max 86400).

Input Schema

NameRequiredDescriptionDefault
slugNo
accountNoEmail address of the farm to act on. Omit for the signed-in farm. Only a connected account is accepted; call list_accounts to see which.
doc_nameNo
ttl_secondsNoLifetime of the signed URL in seconds. Default 3600 (1h), max 86400 (24h).
download_filenameNoIf set, the URL forces a file download with this filename (Content-Disposition: attachment).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this a non-destructive read. The description adds real behavioral detail beyond them: the URL is signed, time-limited, and expires per ttl_seconds. It does not disclose error behavior (e.g. invalid slug) or whether the URL is unauthenticated, which keeps it short of a 5.

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?

Effectively two sentences, front-loaded with the core action and followed by usage triggers. Dense but each clause earns its place; no filler or repetition.

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?

No output schema exists, and the description adequately conveys what comes back (a time-limited signed download URL) plus its expiry semantics. It omits failure modes and whether the URL works without auth, which are the only notable gaps.

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?

With 60% schema coverage, the schema already documents account, ttl_seconds, and download_filename. The description restates the ttl default/max but adds no meaning for slug, doc_name, or download_filename beyond what the schema provides, so the baseline 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?

States a specific verb and resource ('Get a time-limited signed URL that downloads the raw file of any doc') and names the scope ('any doc the user has access to'). It explicitly distinguishes itself from get_doc_html by noting it applies when the doc isn't HTML.

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?

Gives three concrete triggers: handing the file off to another tool or LLM, the user asking for a download link, or the doc not being HTML. It names the alternative tool (get_doc_html) and the condition under which that alternative is inapplicable, leaving little to inference.

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