Skip to main content
Glama

Files.fm

filesfm_upload_file

Save a new file from UTF-8 text or strict base64. Maximum decoded size 10 MiB. Never overwrite an existing name. A remote server cannot read local filesystem paths. Requires files:write and account permissions. Inspect the destination before retrying an uncertain result.

Input Schema

NameRequiredDescriptionDefault
contentYes
encodingYes
file_nameYes
folder_hashYes

Output Schema

NameRequiredDescriptionDefault
itemYes
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: 10 MiB decoded size cap, no-overwrite guarantee, the remote-server/local-path limitation, and required scopes (files:write plus account permissions). The 'inspect before retrying an uncertain result' warning effectively communicates the non-idempotent create semantics declared by idempotentHint=false, and 'never overwrite' is consistent with destructiveHint=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?

Five short sentences with zero padding, front-loaded with the action and the two content forms, then constraints and cautions in descending order of importance. Every sentence carries an operational fact.

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 mutating upload tool this covers size limits, overwrite behavior, auth scopes, encoding, and retry caution, and the existing output schema relieves it of describing returns. The main gap is the folder_hash parameter, whose meaning and origin are never explained anywhere in the definition.

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 0%, so the description carries the full burden. It clarifies content/encoding (text vs strict base64) and implies file_name collision behavior, but says nothing about folder_hash (format, where to obtain it) or file_name length/character rules, leaving two of four parameters unexplained.

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 ('Save a new file') plus the two accepted content forms (UTF-8 text or strict base64), which immediately separates it from read_file, import_file, and move/rename siblings. The 'new file / never overwrite' scope makes it distinguishable without opening any schema.

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?

Gives real guidance: content must be inline text or base64 because 'a remote server cannot read local filesystem paths', and tells the agent to inspect the destination before retrying an uncertain result. It stops short of naming a sibling alternative (e.g. import_file) for the local-path case, so 4 rather than 5.

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