Skip to main content
Glama

filesfm_replace_file

DestructiveIdempotent

Replace a file's content and keep its name and hash. Version history follows the current upload behavior. Direct content is limited to 10 MiB and a public HTTPS import to 100 MiB. Requires files:delete and account permissions. A repeated idempotency key returns the first result.

Input Schema

NameRequiredDescriptionDefault
contentNo
encodingNo
file_hashYes
source_urlNo
idempotency_keyYes

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. Added

TDQS

A3.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses version-history behavior, separate size limits for direct content and HTTPS import, required permissions, and idempotency-key replay semantics. These are operationally important traits for a destructive mutation and are not already available in structured fields.

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?

Four tight sentences, front-loaded with the core action and followed by constraints. No redundant restatement of the name, title, or annotations.

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?

An output schema exists, so return-value documentation is unnecessary. The description covers limits, permissions, and idempotency, but under-explains parameter semantics and does not route against alternative file-upload/import tools for a destructive five-parameter mutation.

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 compensate for all five parameters. It explains content and source_url size limits plus idempotency_key replay behavior, but leaves encoding, the exact role of file_hash, and the content/encoding versus source_url choice implicit.

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?

The description states a specific verb and resource—replace a file's content—and adds that the name and hash are preserved, which distinguishes it from a generic upload. It does not explicitly name sibling tools such as upload_file or import_file, so differentiation is implied rather than explicit.

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

Usage Guidelines2/5

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

No explicit when-to-use guidance or alternatives are given. Size limits and required permissions are mentioned, but not whether an agent should choose this over upload_file, import_file, or delete_file; usage is only weakly implied by 'Replace'.

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