Skip to main content
Glama

Delete a site page

delete_site_page
Destructive

On one site of the account, named in site. Removes one file from the site folder, as a commit in the person's name: the page is gone from the site at once, and the history keeps it — restore_site_pages brings it back. Admins only.

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": {
      "site": "<site>",
      "path": "<path>"
    },
    "name": "delete_site_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe file inside the site folder, like pages/about.liquid
siteYesThe site to work on, as list_sites names it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: changes take effect immediately, are recorded as a commit under the person's name, history retains the page, and an authorization requirement (admin) is stated. The recovery path via restore_site_pages is exactly the context an agent needs before an irreversible-looking destructive call.

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?

Dense and mostly front-loaded, but the opening fragment 'On one site of the account, named in site.' is syntactically awkward and delays the verb. The remaining clauses each carry distinct information, so nothing is wasted.

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 it covers scope, immediacy, commit attribution, recoverability, and auth. It leaves open what happens to references to the deleted page and whether the site must be published for the deletion to apply.

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% and both parameters are already documented with examples ('pages/about.liquid', 'as list_sites names it'). The description only restates that site names the target site and path is a file in that folder, adding no new syntax or format information.

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 concrete verb+resource+scope: removes one file from the site folder of one named site. The phrase 'site folder' implicitly separates it from delete_theme_file, and restore_site_pages is named as the counterpart.

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?

Gives a clear precondition ('Admins only') and a recovery route via restore_site_pages, which tells the agent deletion is not final. It does not explicitly contrast with edit_site_page (blanking a page) or delete_theme_file, so alternatives are only implied.

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