Skip to main content
Glama

hedwigai

Get a link to upload a large file

upload_link

A link to upload one file straight into the account's storage, for a file too large to send as base64 (add_attachment stops at 32 MB) or one that should not pass through the conversation. path is where it goes, as the shell shows it: /attachments/<workbook>/<name> (up to 5 GB; attached once the upload finishes) or a path in a connected drive, /googledrive/<folders>/<name> or /dropbox/<folders>/<name> (up to 100 MB; then call upload_done). Any other path is refused. Send the file's bytes with an HTTP PUT to put_url, e.g. curl -T file put_url; the link lasts an hour. With no shell to PUT from, give the person page_url: they sign in there and drop the file, and it lands at the same path. Nothing is billed.

Input Schema

NameRequiredDescriptionDefault
pathYesWhere the file goes: /attachments/<workbook>/<name>, /googledrive/<folders>/<name> or /dropbox/<folders>/<name>.
sizeNoThe file's size in bytes, when known: one over the limit is refused before uploading.
contextNoExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
llm_modelNoThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses per-destination size ceilings (5 GB for /attachments, 100 MB for drives), the one-hour link lifetime, that the file only lands once the upload finishes, and that nothing is billed. It does not say what happens on a partial or expired upload, nor describe the return payload shape, so a small behavioral gap remains against a non-read-only, non-idempotent 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?

Purpose is front-loaded and essentially every clause carries operational information, but it is delivered as one dense run-on paragraph mixing limits, two upload channels, and the drive follow-up call, which costs some scannability.

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?

There is no output schema, and the description compensates by explaining the two returned handles (put_url for HTTP PUT, page_url for the human drop-box) and how each is used. Combined with the file-size rules and upload_done follow-up, an agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema cannot: it ties `path` prefixes to concrete size limits and to whether upload_done must follow, and explains that the size parameter is validated against those limits before any bytes move.

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?

Names a specific verb+resource (get a link to upload a file) and immediately distinguishes itself from the sibling add_attachment by stating the base64/32 MB limitation it exists to bypass. It also scopes the supported destinations, so an agent knows exactly what class of operation this is.

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 explicit routing conditions: use this instead of add_attachment when the file is too large or must not pass through the conversation; use the shell PUT when a shell exists, otherwise hand the person page_url; and for connected-drive paths, call upload_done afterward. It also names the failure condition (any other path is refused).

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.