Skip to main content
Glama

download_document_file

Get links for a document file: page URL for everyone, direct download URL when the plan allows it.

Always returns `document_page_url` — the document's page on hpt.su
where the user can download the file manually under their account.
Share this link with the user.

When the plan includes direct downloads, the response also contains
`download_url` — a personal temporary link to the PDF. It can be
fetched programmatically: send a GET request with the same
`X-API-Key: <key>` header used for this API. In a browser it works
when signed in to hpt.su under the account that owns the key. The
link is bound to the key owner — it does not work with anyone
else's key or account. The download quota is charged at actual
download time. Otherwise `download_url` is null and `download_note`
explains why.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_uidYesDocumentFile UID (from list_document_files).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description fully discloses key behaviors: it always returns document_page_url, conditionally returns download_url based on plan, the link is personal and bound to the key owner, and quota is charged at download time. It also explains the null fallback with download_note and gives explicit fetch instructions, demonstrating strong transparency.

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 with a clear summary sentence and then organized into logical paragraphs covering the page URL and download URL behaviors. While it is relatively long, every sentence contributes meaningful information without redundancy, making it appropriately concise for the complexity.

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

Completeness5/5

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

Despite the tool's complexity (conditional links, authentication, quota), the description covers all essential aspects: primary return value, conditional direct download link, usage instructions, and security constraints. Even though an output schema exists, the description provides additional necessary context for correct invocation and interpretation.

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?

The input schema has 100% coverage with only one parameter, file_uid, which already has a descriptive schema comment ('DocumentFile UID (from list_document_files)'). The description adds no additional parameter semantics, so the baseline score 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 clearly states the tool's purpose: 'Get links for a document file: page URL for everyone, direct download URL when the plan allows it.' This uses a specific verb ('get') and resource ('document file'), and distinguishes itself from sibling tools like get_document by focusing on download links.

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 description provides clear context on when this tool is appropriate (when needing download links for a document file), and explains the two possible outcomes. However, it does not explicitly compare to alternatives like get_document or state when not to use it, so it stops short of full differentiation.

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.