Skip to main content
Glama

Upload a file

upload_file

Upload a file into HelpRange (PDF, Word, Excel, PowerPoint, images, video …): pass content_base64 or a public file_url. Goes into folder_id or the default folder; returns the document id and its default share link.

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
file_urlNo
filenameNo
folder_idNo
content_base64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write, so the safety profile is covered. The description adds genuinely new behavior: the file lands in folder_id or the default folder, and the call returns the document id plus its default share link. It omits size limits and whether repeat uploads of the same file create duplicates, which matters given idempotentHint=false.

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?

Two tight sentences with the action and accepted input types front-loaded, followed by destination and return behavior. No filler, and the format enumeration is compressed into a parenthetical rather than spelled out.

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 compensates by stating what comes back (document id and default share link). The remaining gap is the undocumented filename parameter and the ambiguity of a zero-required-parameter upload, which an agent must resolve before calling 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 coverage is 0%, so the description must carry parameter meaning. It explains content_base64, file_url, and folder_id's default-folder fallback, but never mentions the filename parameter at all, and leaves the mutual exclusivity of content_base64 versus file_url unresolved even though the schema marks no parameters as required.

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 ("Upload a file into HelpRange") and immediately names the accepted source formats and inputs, which cleanly separates it from siblings like create_link, get_document_text, and list_documents.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer it should call this when it needs a document inside HelpRange, and the two input routes (content_base64 vs public file_url) are named. There is no explicit when-not guidance, no mention of prerequisites such as authentication or whether the URL must be publicly reachable, and no reference to a sibling alternative.

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