Skip to main content
Glama

Delete a website file

delete_website_file
DestructiveIdempotent

Removes one saved file from a website, then checks the remaining pages against the rules start_website returned, and returns the same report as save_website_files. Other files stay. A path that is not saved fails with no_such_file. Removing index.html leaves the website with no home page until one is saved. To delete the whole website, use delete_website.

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>",
      "path": "<path>"
    },
    "name": "delete_website_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path.
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. Changed4 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 / path / description
      Added value: +"The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path."
    • addedInput schema / properties / path / maxLength
      Added value: +200
    • addedInput schema / properties / path / minLength
      Added value: +1
  2. 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",
      -  "path"
      -]New value: +[
      +  "websiteId",
      +  "path"
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/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 detail beyond them: deletion is followed by a re-check of remaining pages against the start_website rules, the response mirrors save_website_files, other files survive, and removing index.html leaves the site without a home page. That consequence disclosure is exactly what a destructive tool needs.

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, front-loaded with the action and scope, then consequences, then the alternative-tool routing. Every sentence carries information the agent could act on; nothing is padding or restated from the title.

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 no output schema, the description does explain the return value, though only by reference ('the same report as save_website_files'), which requires the agent to know that sibling's shape. Combined with the destructive annotations and full schema coverage, it is otherwise complete for a 3-parameter mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds error semantics tied to the path parameter (a non-saved path yields no_such_file) that the schema does not state. It says nothing extra about editKey or websiteId, which the schema already documents well.

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 ('Removes one saved file from a website') with an explicit scope limit ('Other files stay'), and contrasts with the sibling delete_website for whole-site deletion. An agent can distinguish it from delete_website and save_website_files 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 Guidelines5/5

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

Gives an explicit routing rule away from the tempting sibling: 'To delete the whole website, use delete_website.' It also names the failure case ('A path that is not saved fails with no_such_file'), so the agent knows what a bad selection looks like.

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.