Skip to main content
Glama

Edit site file

edit_site_file
DestructiveIdempotent

(needs account token) Replaces one file on a live site, or adds it. Other files stay as they are. This is not a full folder Update. Restore undoes the last Update or Edit files save. site is the address. path is the file. content is the new text, or base64 when encoding is base64. A site token for that site works, including before the site is claimed, the same way an update with that token does. Without a token, claim the site first. Does not charge.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe file to replace, or to add, for example index.html.
siteYesThe address of the site, for example myproject.dropthehassle.app.
contentYesThe new file. UTF-8 text, or standard base64 when encoding is base64.
encodingNoutf8 (default) or base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive/idempotent/readOnly=false. The description adds value beyond them: auth requirements (needs account token; site token works even before the site is claimed), the explicit 'Does not charge', and the restore/undo relationship. It could still say more about what is destroyed, but it meaningfully extends the structured hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary purpose is front-loaded, which is good, but the prose is a sequence of short, somewhat disjoint run-on statements (e.g., 'Restore undoes the last Update or Edit files save') that are grammar-awkward and cost clarity. Every sentence is relevant, yet the delivery is less tight than it could be.

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 mutation tool with no output schema, the description covers the key operational facts: token/claim prerequisites, single-file scope, and no-charge behavior. Combined with annotations carrying the safety profile, it is largely complete, though return/confirmation behavior is left unstated.

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 100%, so the schema already documents site, path, content, and the utf8/base64 encoding. The description restates these ('site is the address', 'path is the file', 'content is the new text') without adding format or constraint detail beyond the schema, fitting the baseline of 3.

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 ('Replaces... or adds') on a precisely scoped resource ('one file on a live site') and explicitly contrasts it with a sibling concept ('not a full folder Update'). An agent can immediately tell this is a single-file write apart from folder-wide operations.

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?

Explains the selecting condition versus a 'full folder Update' and requires that a site be claimed first when no token is present, giving real when-to-use guidance. It stops short of naming specific sibling tools (e.g., get_site_file or deploy_site) as alternatives, so it is clear but not exhaustive.

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.