Skip to main content
Glama

Delete a site permanently

delete_site
DestructiveIdempotent

Permanently delete a site — its subdomain row, all version snapshots, all content_items, all submissions, the alias history, attached custom domains (removed from Vercel), any active billing for the site (cancelled), and any media in the storage bucket. IRREVERSIBLE. Use this when the user explicitly asks to scrap a site (e.g. 'delete my-portfolio-3947, I don't want it' or 'I created the wrong template, throw it away'). Requires confirm: true to be deliberate. Do NOT call this on user-said-something-vague — ask 'are you sure you want to delete {subdomain} permanently?' first and only call after explicit yes. There is no undo. If the billing cancellation fails, the entire delete is aborted so the user is never charged for a deleted site.

Input Schema

NameRequiredDescriptionDefault
confirmYesRequired boolean — pass `true` to confirm. Forces you to be deliberate before destroying user data.
site_idYes
confirm_subdomainNoRecommended: the subdomain of the site being deleted, exactly as the owner confirmed it in the chat (e.g. 'my-portfolio-3947'). When given, the delete is refused unless it matches the site_id's subdomain — a guard against deleting the wrong site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description goes far beyond that: it lists every affected resource (subdomain row, snapshots, submissions, alias history, custom domains removed from Vercel, billing cancelled, media bucket) and discloses the atomicity guarantee if billing cancellation fails.

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?

Dense but every sentence earns its place: destruction scope, irreversibility, usage trigger, confirmation gate, and failure behavior are all front-loaded for a genuinely destructive operation where thoroughness is warranted.

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?

No output schema exists, yet the description tells the agent everything needed to call it safely: what is destroyed, that it is irreversible, that confirm must be true, the subdomain guard, and the abort-on-billing-failure behavior.

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 67% and the schema already documents confirm's const:true and confirm_subdomain's guard. The description reinforces the confirm requirement in a workflow context ('to be deliberate') and ties subdomain confirmation to safety, though it does not compensate for the undocumented site_id.

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 ('Permanently delete a site') and enumerates exactly what is removed, which also distinguishes it from sibling destructors like delete_page, delete_collection, and delete_custom_domain.

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?

Explicit when-to-use with example utterances ('scrap a site', 'I created the wrong template'), explicit when-not-to-use ('Do NOT call this on user-said-something-vague'), plus the required confirmation workflow before invoking.

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