Skip to main content
Glama

Delete Site File

delete_site_files
DestructiveIdempotent

Delete a specific file from a site. The site stays live; only that one file is removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath of the file to delete, e.g. 'old-page.html'.
site_idYesThe site's public identifier returned by list_sites or create_site.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
deletedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already indicate destructive (destructiveHint: true) and idempotent (idempotentHint: true) behavior. The description adds valuable context by specifying that the site stays live and that only the specified file is removed, which clarifies the exact scope of destruction beyond the generic annotation. It does not contradict any annotation.

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?

The description is a single, front-loaded sentence that efficiently conveys the action and its key effect. It has zero wasted words and immediately states what the tool does and its scope.

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 simple destructive tool with two well-documented parameters, the description covers the essential behavioral aspects: it deletes a specific file, leaves the site live, and is idempotent (per annotations). The presence of an output schema reduces the need to describe return values. It could mention irreversibility explicitly, but the destructive annotation already conveys that. Overall, it is sufficiently complete for an agent to call it correctly.

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%, with both parameters (site_id and path) having clear descriptions. The tool description does not add any additional meaning about the parameters, so it remains at the baseline of 3. It neither enriches nor contradicts the schema.

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?

The description states a specific verb ('Delete'), a resource ('a specific file from a site'), and explicitly clarifies that only that one file is removed while the site stays live. This clearly distinguishes it from the sibling tool delete_site, which deletes the entire site, and from file-related tools like read_site_file or write_site_files.

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?

The description provides clear context that this tool is for removing a single file without affecting the site's overall availability. It implies when to use it versus delete_site by clarifying the site remains live, but it does not explicitly name alternative tools or state when not to use them. This is a minor gap, so a 4 is appropriate.

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