Skip to main content
Glama

Delete site

delete_site
DestructiveIdempotent

Delete a site by id: marks it deleted, purges its content and version history, deletes the records and collections it holds (a waitlist or contact form included), and makes the share link non-viewable. This cannot be undone and nothing can read any of it back afterwards, so read what matters first: list_site_collections for what it holds, then get_site_content and export_site_data. Not a way to fix a broken address: create_share_link puts a page back on its address without destroying any of this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idYesThe id of the site to delete
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description adds critical behavioral context: the operation is irreversible, nothing can read the data back afterwards, content and version history are purged, records/collections are deleted, and the share link becomes non-viewable. This fully discloses the destructive consequences.

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 dense but every sentence earns its place: scope, effects, irreversibility, pre-read guidance, and an alternative are all included. Key consequences are front-loaded before the cautionary and alternative statements.

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?

For a destructive tool with no output schema and rich annotations, the description is complete: it explains what gets destroyed, what cannot be recovered, what to do first, and which sibling to use instead. Nothing essential for correct invocation is missing.

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%, so the schema already documents both site_id and workspace_id thoroughly. The description adds no parameter-level detail beyond 'by id', which is consistent with the baseline of 3 for high schema coverage.

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 and resource: deletes a site by id, and enumerates exactly what happens (marks deleted, purges content and version history, deletes records and collections, makes share link non-viewable). It also distinguishes itself from the sibling create_share_link, so an agent can tell it apart.

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?

It explicitly says when NOT to use it ('Not a way to fix a broken address') and names the alternative (create_share_link) that should be used instead. It also provides concrete pre-call steps with sibling tools (list_site_collections, get_site_content, export_site_data) before performing the destructive action.

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.