Skip to main content
Glama

upload_file

Save a file the person shared in the chat (photo, PDF, audio, video, CSV/text) into the app's storage and get back a permanent https url to use in add_feature items/config (gallery imageUrl, audio/video library url, property photoUrls, guest guide documentUrl, logo, etc.). Pass the file as base64 (dataBase64) or a link to it (url). Limits: images 10MB, PDF 20MB, audio 30MB, video 60MB. For bigger files ask for a Dropbox/Drive link.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "appId": "<appId>"
    },
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
appIdYes
fileNameNo
mimeTypeNo
dataBase64No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/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 disclose key behavior: files are saved to app storage, a permanent https URL is returned, input can be base64 or a URL, and per-type size limits apply. However, it does not state permission/auth requirements, overwrite behavior if the same file is uploaded again, or error-facing behavior beyond the size 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?

The description is front-loaded with the core action and return value, and every sentence adds practical detail about input methods, limits, or downstream use. It is somewhat dense in the example list and could be structured more cleanly, but there is little wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter upload tool with no annotations and no output schema, the description covers the main workflow, return value, input methods, limits, and a fallback for large files. It remains incomplete on several parameters and mutation details, so it is adequate but not fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain the five parameters. It clarifies dataBase64 and url as alternative input methods, but it does not explain appId, fileName, or mimeType, leaving important parameter meaning to inference from the schema names alone.

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?

The description states a specific verb and resource: save a file into the app's storage and return a permanent https URL. It also distinguishes the tool from add_feature by explaining that the returned URL is meant to be used inside add_feature items/config, so an agent can confidently tell what this tool is for.

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?

It clearly indicates when to use the tool: when a person shares a file in chat and it needs to be stored for later use in app configuration. It also gives a useful alternative for oversized files by telling the agent to ask for a Dropbox/Drive link, though it does not explicitly contrast with any other upload-related sibling.

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