Skip to main content
Glama

Unpublish site

unpublish_site
DestructiveIdempotent

Takes a site off the web WITHOUT deleting anything (pages, versions and uploads stay; publish_site puts it back; delete_site removes content). Its address and domains then show a "being worked on" page (status 404). The edge cache is cleared too: cache.invalidated true = gone everywhere within a minute or two; false = a copy fetched just before can be served for up to 5 minutes.

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": {
      "siteId": "<siteId>"
    },
    "name": "unpublish_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite id (from list_sites)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the visible outcome (address/domains serve a 'being worked on' page, status 404) and the cache invalidation timing semantics of the boolean result. The one nuance left implicit is why destructiveHint is true for a reversible operation — the description implies 'destructive' means availability, not content loss, but does not say so outright.

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 key differentiator first, then consequences, then the cache caveat; almost every clause carries information. The cache sentence is dense but the detail is operationally useful rather than filler.

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 one-parameter mutation with no output schema, the description covers reversibility, user-visible effect, and the meaning of the returned cache flag — everything an agent needs to call it and interpret the result.

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 100% and there is a single required siteId whose format and source (list_sites) are already documented in the schema, so the description correctly adds nothing redundant. No parameter meaning is missing.

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 ('Takes a site off the web') and immediately bounds the scope with a negation ('WITHOUT deleting anything'), which separates it cleanly from delete_site and publish_site by name.

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?

Explicitly routes between siblings: unpublish to remove from web, publish_site to put it back, delete_site to actually remove content. The decision condition (keep content but stop serving) is stated rather than inferred.

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