Skip to main content
Glama

Upload file

upload_file

Upload Word, PDF, PowerPoint, Excel, OpenDocument, CSV, TXT, Markdown, HTML, or image files to convert or edit them, or use them as sources; returns a file_id for follow-up tasks.

Instructions

Upload a file (Word, PDF, PowerPoint, Excel — also the old .doc, .ppt and .xls —, .odt, CSV, TXT, Markdown, HTML, or a PNG, JPEG, GIF or WebP picture; up to 20 MB) to convert or edit it, or to use it as a source. Returns its file_id. Give path for a file on this computer.

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": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoA public URL: Doconda downloads the file from it.
pathNoAbsolute path of the file on this computer.
filenameNoIts name with extension, e.g. contract.docx. Needed with content_base64.
content_base64NoThe file's bytes in base64 (for small files).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • changedInput schema / properties / url / description
      Previous value: -"A public URL to download the file from."New value: +"A public URL: Doconda downloads the file from it."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: the 20 MB size limit, the accepted format set, and that it returns a file_id the agent can reuse downstream.

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 the action, then the constraint set, then the return value, then the local-file hint. The long format parenthetical is dense but it is the only bulky part and it carries real constraints.

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 four-source ingestion tool with no output schema, the description conveys limits, formats and the return value, which is close to sufficient. What it omits is the precedence or exclusivity between url, path and base64 sources, which would matter to an agent unsure which argument wins.

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 each of the four sources (url, path, filename, content_base64) is already documented. The description only echoes the path case and adds the size limit; it says nothing about the mutual exclusivity of the source options, which is the real ambiguity an agent faces here.

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 clear verb and resource (upload a file) and adds substantive scope: supported formats, the 20 MB cap, and the downstream intent (convert, edit, or use as a source). It never names a sibling, so the distinction from convert_file or create_document is inferable but not stated.

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?

The clause 'to convert or edit it, or to use it as a source' tells the agent the concrete situations this tool serves, and 'Give `path` for a file on this computer' clears up the local-file case. There are no explicit when-not conditions or named alternatives, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.