Skip to main content
Glama

Get file upload instructions

get_upload_url

Returns instructions for uploading an agent-local file into FileConvert. FileConvert does NOT use presigned upload URLs; instead you upload the file bytes directly to the gateway as a multipart/form-data POST. The response gives the exact URL, HTTP method, form field name and required Authorization header. After uploading you receive a file object whose 'uid' can be passed to a conversion. If your file is reachable over http(s), prefer convert_file(source_url, target_format) which fetches and uploads it for you. Works without an API key (the upload itself needs one).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesThe name of the local file the agent wants to upload, e.g. 'report.docx'. Used for the multipart form filename.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses that no presigned URL is used, that bytes go to the gateway as multipart/form-data POST, what the response contains (URL, method, form field, Authorization header), and the auth nuance (works without an API key but the upload itself needs one). It omits failure behavior, size limits, and rate limits.

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-loads the key correction (no presigned URLs) and keeps each sentence informative — mechanics, response contents, post-upload flow, and the alternative path. It is slighting long at six sentences and the response-content sentence partially repeats the mechanics sentence, but there is no filler.

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?

For a one-parameter tool with no output schema, the description adequately explains what the response yields and how the returned file 'uid' feeds into a conversion, closing the loop an agent needs. Missing only edge-case behavior (failures, filename constraints), which is minor here.

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 description coverage is 100% and the single parameter is fully documented in the schema. The description adds no extra meaning about 'filename' beyond what the schema already states (its role as the multipart form filename), so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('returns instructions for uploading an agent-local file') and clarifies the name is misleading — this is not a presigned-URL generator. It distinguishes itself from convert_file but does not differentiate from the sibling upload_file, which plausibly performs the actual byte upload, leaving one boundary ambiguous.

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?

Gives an explicit routing rule: if the file is reachable over http(s), prefer convert_file(source_url, target_format) instead, which is a clear when-to-use-alternative statement. It does not, however, say when to use this versus the sibling upload_file, so the alternative routing is only partial.

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