Skip to main content
Glama

Upload File

upload-file

Store a file in this workspace. Returns suggested_markdown to embed the file in a rich-editor field (note body, task description), and file_id to refer to the stored file. Pass exactly one of: source_url (public https), base64 with filename, or upload_id from create-upload-url. filename is optional with upload_id but recommended. Allowed types: pdf, doc, docx, xlsx, pptx, jpg, jpeg, png, gif, webp; 10 MB max. Limited to 60 calls per hour per workspace, refused files included.

Input Schema

NameRequiredDescriptionDefault
base64NoThe file body, base64 encoded. Requires filename.
filenameNoThe original file name. Required with base64. Optional with upload_id, where the name is otherwise rebuilt from the id, losing capitals and spaces.
upload_idNoThe upload_id from create-upload-url after the PUT succeeded.
source_urlNoA public https URL to fetch. No redirects are followed.

Output Schema

NameRequiredDescriptionDefault
urlYesA link to view the file now. It expires after 30 minutes; do not store it.
nameYes
sizeYes
file_idYesThe stored file id.
mime_typeYes
suggested_markdownYesStable markdown to paste into a rich-editor field.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing allowed MIME types, the 10 MB cap, a 60-calls-per-hour-per-workspace rate limit that explicitly counts refused files, and that source_url fetches do not follow redirects. The annotations already flag non-read-only/non-idempotent, and the description adds the operational constraints an agent needs to avoid failures.

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?

Front-loaded with purpose and return values, then tight supporting sentences on argument modes, accepted types/size, and rate limits. Every clause carries information an agent would otherwise have to discover by failing a call.

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 write tool with four optional parameters, the description covers invocation modes, constraints, and cost/limit behavior, and an output schema exists to document return shape. Nothing material is missing for correct invocation.

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 genuine semantics the schema cannot express: the mutual exclusivity of source_url / base64+filename / upload_id. It also reinforces that filename is optional-but-recommended with upload_id, matching the schema's note about losing capitals and spaces.

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 ('Store a file in this workspace') plus the concrete outputs (suggested_markdown, file_id), which tells an agent exactly what this does and what it gets back. It also implicitly positions itself against sibling create-upload-url by describing the upload_id handoff, so the agent can tell the two apart.

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?

'Pass exactly one of: source_url, base64 with filename, or upload_id from create-upload-url' gives clear mode-selection guidance and names the prerequisite sibling tool. It stops short of explicit when-not-to-use guidance (e.g., what to do if the file exceeds 10 MB or is a disallowed type), so it is clear context rather than full when/when-not coverage.

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.