Skip to main content
Glama

Upload a file you hold locally

upload_file

Uploads file bytes (base64) into FileConvert and returns a 'file_id'. Use this when the file is not reachable by URL, then call start_conversion(file_id, source_format, target_format). For files reachable over http(s), convert_file is a single call instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYesFile name with extension, e.g. 'report.docx'. The extension helps the converter detect the format.
content_base64YesThe file bytes encoded as base64 (standard or URL-safe alphabet, padding optional). Up to 25 MiB decoded; larger files should be given to convert_file by URL.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose the mutation's key output ('returns a file_id') and the required chaining step, plus the practical constraint in the body that URL-reachable files should skip this path. However, it says nothing about auth requirements, idempotency, retention of uploaded files, or error behavior for oversized/invalid payloads.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it does, when to use it plus the next call, and the cheaper alternative. Purpose and routing decision are front-loaded with zero 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?

There is no output schema, and the description correctly names the returned identifier and the call that consumes it, which is the main thing an agent needs. It is slightly incomplete on failure modes and limits relative to the schema-documented size cap, but a caller has enough to invoke it correctly.

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%, so both parameters (filename, content_base64) are already fully documented, including the 25 MiB decoded limit and base64 alphabet tolerance. The description touches base64 encoding and the size/URL tradeoff but adds no new syntax or format meaning beyond the schema. Baseline 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?

States a specific verb and resource ('Uploads file bytes (base64) into FileConvert') and names the artifact it produces ('file_id'). It also distinguishes itself from convert_file, so an agent can pick between them without opening any schema.

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 an explicit condition for use ('when the file is not reachable by URL'), names the alternative for the opposite case (convert_file for http(s)-reachable files), and prescribes the follow-up call start_conversion(file_id, source_format, target_format). Nothing is left to inference.

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