Skip to main content
Glama

upload_remote_file

Destructive

Put a file from the agent file store into a connected storage (Google Drive, OneDrive, SharePoint, Dropbox, ownCloud). Required: root_id (roots[].id from list_file_accounts), path (from create_file_upload_url, or a WhatsApp attachment path). Optional: folder_id (target folder id; Dropbox/ownCloud: the folder path; empty = root), name (file name there; default: the stored name). Returns the new file with its web 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": {
      "root_id": "<root_id>",
      "path": "<path>"
    },
    "name": "upload_remote_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the remote file
pathYesPath in the agent file store, from create_file_upload_url or a WhatsApp attachment
root_idYesID of the root folder
folder_idNoID of the folder

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / folder_id / description
      Added value: +"ID of the folder"
    • addedInput schema / properties / name / description
      Added value: +"Name of the remote file"
    • addedInput schema / properties / path / description
      Added value: +"Path in the agent file store, from create_file_upload_url or a WhatsApp attachment"
    • addedInput schema / properties / root_id / description
      Added value: +"ID of the root folder"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered elsewhere. The description adds that the return value includes the new file and its web link, which is useful. However, for a destructive, non-idempotent tool it never warns about overwriting an existing file of the same name, which is exactly the context the annotations imply.

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?

It is dense but well organized, front-loading the action and provider list before the required/optional parameter breakdown. Every sentence carries information; the provider list is the only slightly expendable element.

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-parameter mutation with no output schema, the definition covers sources for each input, provider-specific quirks, and the return value (new file plus web link). The main remaining gap is overwrite/collision behavior given the destructive annotation.

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

Parameters5/5

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

Despite 100% schema coverage, the description adds substantial meaning beyond the schema: root_id is sourced from roots[].id of list_file_accounts, path is sourced from create_file_upload_url or a WhatsApp attachment, folder_id is an ID for most providers but a folder path for Dropbox/ownCloud, empty means root, and name defaults to the stored name. These are operational details the schema alone does not convey.

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 specific verb and resource ('Put a file from the agent file store into a connected storage') and enumerates the supported providers, so the agent knows exactly what operation is performed. It does not explicitly contrast itself with sibling tools like upload_document or create_file_upload_url, but the wording is unambiguous.

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 description effectively walks the agent through the prerequisite chain: root_id comes from list_file_accounts and path comes from create_file_upload_url or a WhatsApp attachment. That is strong context for when this tool applies. It stops short of stating exclusions or when another upload tool should be used instead.

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.