Skip to main content
Glama

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.

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": {
      "folder_hash": "<folder_hash>",
      "file_name": "<file_name>",
      "content": "<content>",
      "encoding": "<encoding>"
    },
    "name": "filesfm_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYes
encodingYes
file_nameYes
folder_hashYes

Output Schema

NameRequiredDescriptionDefault
itemYes
statusYes
replayedNoTrue when this is the stored result of an earlier call with the same idempotency_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / replayed
      Added value: +{
      +  "description": "True when this is the stored result of an earlier call with the same idempotency_key.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: a 10 MiB decoded-size ceiling, the no-overwrite guarantee, the fact that server-side paths cannot be read as local files, and the files:write plus account permission requirement. The retry caveat usefully signals that a failed call may have partially succeeded, matching idempotentHint=false, though it does not say how to resolve that ambiguity beyond inspecting the destination.

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?

Six tight sentences, each carrying a distinct operational fact — format, size cap, overwrite rule, path caveat, permissions, retry guidance — with the most decision-relevant constraint first. No filler or restatement of the tool name.

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?

With annotations covering the safety profile and an output schema covering the response, the description covers the operational facts an agent needs: size, format, overwrite behavior, permissions, and failure handling. The main remaining gap is that folder_hash is never characterized, so an agent knows it must supply a destination but not what kind of identifier to supply or where to find it.

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 must carry parameter meaning; it does explain encoding semantics ("UTF-8 text or strict base64") and the effective size limit on content. The other two parameters, folder_hash and file_name, receive no explanation of what the destination hash identifies or how to obtain it.

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 ("Save a new file") plus the two content forms it accepts, which is far more than the tool name alone. The "never overwrite an existing name" clause implicitly separates it from replace/rename siblings, but no sibling is named, so an agent must still infer the boundary.

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?

Gives useful conditions — new files only, never overwrite, retry only after inspecting the destination — which implies when a replace-style sibling should be used instead. It stops short of naming an alternative or stating what to do when the name already exists, so guidance is implied rather than explicit.

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