Skip to main content
Glama

Get a link to upload a file

get_upload_link
Read-only

Use this when you cannot pass the person's file to a tool. Returns upload_url, a private KovaPDF page that works once for 15 minutes, and upload_id. Give the person the link, then call wait_for_upload with the upload_id right away and wait for the files they send: they open the link on any device, add their files and press Send. Never ask the person to say done. When wait_for_upload returns the file ids, pass them to the tool in that order. An upload_id also still works as a file_id once the files are sent, for clients that do not call wait_for_upload. Never make a document to stand in for theirs. Ask for up to 20 files in one link with max_files when the job needs more than one file, in the order you need them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_upload_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeNoThe tool the files are for, for example merge_pdfs. Only used for the page title.
max_filesNoHow many files the link takes, 1 to 20. Leave it out for one file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / max_files
      Added value: +{
      +  "description": "How many files the link takes, 1 to 20. Leave it out for one file.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / purpose
      Added value: +{
      +  "description": "The tool the files are for, for example merge_pdfs. Only used for the page title.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare the safety profile (readOnly, non-destructive, non-idempotent, not open-world); the description adds substantial behavior beyond that: single-use, 15-minute expiry, private page, human opens it on any device, upload_id doubles as a file_id for clients that skip wait_for_upload, and the 20-file ceiling. The one gap is what happens if the link expires unused or the person never sends, which an agent would want to know for error handling.

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 conditional trigger is front-loaded and nearly every sentence carries operational weight (expiry, ordering, anti-patterns). It is dense and slightly sprawling, mixing the tool's own contract with downstream wait_for_upload instructions, but it does not pad with restated name or title.

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?

For a two-parameter link generator with no output schema, the description covers what is returned, how long it lives, how the human interacts with it, the required follow-up call, the file-count limit, and the ordering contract for passing file ids onward. An agent has everything needed to run the full handoff 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 both parameters are already documented, but the description still adds meaning: max_files is tied to a usage condition ('when the job needs more than one file, in the order you need them'), which conveys ordering semantics the schema does not. It adds nothing about purpose beyond what the schema already says (page title only).

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 states a specific action (produce an upload link so a person can supply their own files) and enumerates the return values, upload_url and upload_id, with their nature (a private page, works once, 15 minutes). It is clearly distinguishable from the conversion/PDF-processing siblings, which all require files to already be in hand.

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?

The trigger condition is explicit: 'Use this when you cannot pass the person's file to a tool.' It names the follow-up tool (wait_for_upload) and the required sequencing ('call ... right away'), gives exclusions ('Never ask the person to say done', 'Never make a document to stand in for theirs'), and states when to set max_files versus leaving it out.

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