Skip to main content
Glama

Save website files

save_website_files
DestructiveIdempotent

Adds or replaces files on a website and checks every page against the rules start_website returned. Files not sent stay as they are; delete_website_file removes one, and edit_website_file changes part of one. Never send a photo here as base64: one photo is hundreds of thousands of characters, slow and costly to write; the person adds photos at the photoLink start_website returned, and save_website_pictures saves pictures you hold as files or at an https address. If you can run commands with internet access, write the website in a folder and send it all at once, photos included, to siteZip instead of typing every file here. Returns the viewUrl, keepUrl, pages, passed, and problems naming each rule a page breaks; the person can keep the website once passed is true. A website holds up to 40 files and 12 MB, with pages up to 300 KB and other files up to 2 MB.

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": {
      "websiteId": "<websiteId>",
      "files": "<files>"
    },
    "name": "save_website_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes1 to 40 files to add or replace. A file whose path is already saved is overwritten.
editKeyNoThe editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account.
websiteIdYesThe websiteId start_website returned, or one list_sites shows.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / files / items / properties / content / description
      Previous value: -"The file's text, or base64 for a picture or font."New value: +"The file's text, or base64 for a small picture you made (an icon) or a font. Not for photos: see photoLink and save_website_pictures."
  2. Changed3 schema fields changed
    • changedInput schema / properties / editKey / description
      Previous value: -"The editKey start_website returned. Not needed for a website in the connected account."New value: +"The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account."
    • addedInput schema / properties / files / description
      Added value: +"1 to 40 files to add or replace. A file whose path is already saved is overwritten."
    • changedInput schema / properties / files / items / properties / path / description
      Previous value: -"For example index.html, about.html, styles.css or images/shop.jpg."New value: +"The file's path from the website's root: lower-case, up to four folders deep, such as index.html, about.html, styles.css or images/shop.jpg. index.html is the home page, and the address /about serves about.html."
  3. Changed3 schema fields changed
    • addedInput schema / properties / editKey / description
      Added value: +"The editKey start_website returned. Not needed for a website in the connected account."
    • addedInput schema / properties / websiteId / description
      Added value: +"The websiteId start_website returned, or one list_sites shows."
    • changedInput schema / required
      Previous value: -[
      -  "websiteId",
      -  "editKey",
      -  "files"
      -]New value: +[
      +  "websiteId",
      +  "files"
      +]
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real behavioral context beyond them: unsent files are untouched, a matching path is overwritten, hard caps (40 files, 12 MB total, 300 KB pages, 2 MB other files), and the return payload (viewUrl, keepUrl, pages, passed, problems) including when the site becomes keepable. It stops short of describing what happens to a site that fails checks after a write, so it is not a perfect 5.

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?

Front-loaded with the core action and immediately followed by the sibling contrast, then the photo warning, then limits. It is dense and long, but nearly every clause carries operational information; the only mild redundancy is repeating the photo guidance that the schema's content description also gives.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly covers the return shape, the pass/fail semantics, size and file-count limits, the overwrite rule, and the two alternative paths (save_website_pictures, siteZip). Nothing an agent needs to call this correctly is missing.

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 coverage is 100%, so the schema already documents path, content, encoding, editKey and websiteId thoroughly. The description reinforces the content constraint (no photos as base64) but largely restates what the nested schema descriptions already say, so it adds little new parameter-level meaning.

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?

Opens with a specific verb+resource: 'Adds or replaces files on a website', plus the validation side effect of checking pages against start_website's rules. It explicitly separates itself from siblings by naming what delete_website_file and edit_website_file do differently, so an agent can route correctly without inspecting schemas.

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

Usage Guidelines5/5

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

Gives concrete when/when-not guidance: never send photos as base64 here, use the photoLink from start_website or save_website_pictures instead, and use siteZip when the caller can run commands with internet access. It also states the partial-update contract (files not sent stay as they are), which is exactly the condition an agent needs to choose this tool over delete/edit.

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.