Skip to main content
Glama

Unpublish document

unpublish_document
DestructiveIdempotent

Archives a document: removes its public .md URL and its llms.txt entry. Content is kept and can be published again. On this account the call is refused until user_approved is true.

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": {
      "slug": "<slug>"
    },
    "name": "unpublish_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code, e.g. en, pl. Defaults to the site language.
siteNoSite domain, e.g. example.com. Optional when the account has one site.
slugYesDocument slug
user_approvedNoTrue only after the user has seen this exact change in the chat and agreed to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_approved
      Added value: +{
      +  "description": "True only after the user has seen this exact change in the chat and agreed to it.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / site / description
      Previous value: -"Site domain, e.g. example.com (see list_sites). Optional when the account has one site."New value: +"Site domain, e.g. example.com. Optional when the account has one site."
    • changedInput schema / properties / slug / description
      Previous value: -"Document slug (see list_documents)"New value: +"Document slug"
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description adds real context the annotations cannot express. It specifies exactly what is destroyed (public URL and llms.txt entry), states that content survives and can be republished, and explains the approval gate and what happens if that gate is unmet. This goes meaningfully beyond the annotations.

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?

Three short sentences, each front-loaded with the most important information: operation and effects first, reversibility second, and the blocking condition last. Nothing is redundant or repeated from structured fields.

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 four-parameter mutation tool with no output schema, the description covers the operation, its side effects, reversibility, and the approval gate that causes refusal. Nothing an agent needs in order to invoke it correctly appears to be missing.

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%, so the baseline is 3, but the description adds the enforcement consequence of user_approved (the request is refused) beyond the schema's 'true only after the user has agreed'. The lang and site defaults are left to the schema, which already documents them.

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 definition names the specific operation (archiving a document) and its concrete effects: removal of the public .md URL and the llms.txt entry. The phrase 'can be published again' implicitly distinguishes it from publish_document, so an agent can tell the two apart without opening a schema.

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?

It gives a hard precondition that governs usage: the call is refused until user_approved is true, which is exactly the kind of condition an agent needs before invoking. It lacks explicit routing against alternatives such as update_document or a delete tool, but the required approval context is fully stated.

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.