Skip to main content
Glama

Get a download link for a file

tarkle_get_download_link
Read-onlyIdempotent

Get a short-lived link to the exact bytes of one file (fileId from tarkle_list_files or tarkle_search_files), for any file type: a PDF, a picture, audio, video or an archive. Fetch the link at once with a plain GET (no Authorization header); it stops working after expiresInSeconds, so ask again rather than keeping it, and never show it to anyone else. sha256, when known, is the file's SHA-256 recorded by Tarkle, so you can check the bytes you fetched. Only files this person can open. The download is recorded in the workspace's activity log.

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": {
      "workspaceId": "<workspaceId>",
      "fileId": "<fileId>"
    },
    "name": "tarkle_get_download_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe id of a file, from tarkle_list_files or tarkle_search_files.
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
nameNo
fileIdNo
noticeNo
sha256No
sizeBytesNo
downloadUrlNo
sha256SourceNo
expiresInSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, non-open-world behavior, and the description adds genuinely non-derivable facts: the link expires after expiresInSeconds, it must not be shared, it works without an Authorization header, and the download is written to the workspace activity log. The only gap is that it does not say whether re-fetching the same file yields a different link or the same one, which matters for an idempotent-hinted tool.

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?

Front-loaded with the core action and scoped tightly in one dense paragraph; each clause (expiry, no-auth GET, do not share, permission scope, logged) carries distinct information. It runs long as a single block and the sha256 sentence is oriented toward verification rather than invocation, which slightly dilutes focus.

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?

With an output schema present, return values need not be explained, and annotations cover the safety profile; the description supplies the operational context an agent actually needs to call this correctly. The remaining omission is the choice between this tool and tarkle_read_file for a file the agent wants to inspect.

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 both required parameters are already documented, and the description's fileId provenance merely echoes the schema text. The sha256 discussion concerns a return value rather than an input, and llm_model — an unusual analytics parameter an agent may hesitate over — is never addressed in the description.

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?

"Get a short-lived link to the exact bytes of one file" names a specific verb and resource, and the fileId provenance clause (tarkle_list_files or tarkle_search_files) ties it into the workflow without ambiguity. The blanket "for any file type: PDF, picture, audio, video or archive" preempts the natural follow-up question an agent would otherwise have.

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?

It states when the link is useful, how to consume it (plain GET, no Authorization header), and how to behave afterwards (re-request instead of caching). What it does not do is explicitly contrast with the sibling tarkle_read_file, so an agent choosing between "read content" and "get bytes" gets no stated routing rule.

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.