Skip to main content
Glama

Delete file

delete_file
Destructive

Deletes one file, or a folder once it's empty, from a Pagehaus site, using the Pagehaus files API (https://pagehaus.app/help/api). path is a file or folder inside the site, such as "/old-page.html". The deletion is permanent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath from the site's top, e.g. "/old-page.html".
siteYesThe site name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the risk profile is known; the description adds that the deletion is permanent and that folders require emptiness, plus an API reference link. This is useful extra context beyond the 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.

Conciseness4/5

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

Front-loads the action and scope in the first clause, then adds the path clarification and permanence warning. Slightly padded by the API URL, but no wasted sentences.

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 two-parameter destructive tool with full annotation coverage and no output schema, the description covers scope, the empty-folder precondition, and irreversibility. It omits error behavior (e.g. non-existent path), a minor gap.

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 both parameters (site, path) are already documented in the schema. The description restates path as a file-or-folder inside the site and gives the same example, adding only marginal meaning beyond 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?

States a specific verb (deletes) and resource (one file, or an empty folder) scoped to a Pagehaus site, which clearly separates it from the read/write/list file siblings. An agent immediately knows what this tool does.

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

Usage Guidelines3/5

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

Provides an implicit precondition — a folder can only be deleted once it's empty — but never names an alternative (e.g. list_files to confirm contents) or states when-not to use it. Usage is implied rather than guided.

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