Skip to main content
Glama

trash_content

Move a content item and its entire page subtree to trash, unpublishing every locale from delivery. Restore later as drafts and republish explicitly.

Instructions

Move a content item AND its whole page subtree to the trash: every locale is unpublished at once and disappears from delivery. Recoverable — restore_content brings it back (as drafts; publish again explicitly). Returns {trashed: }. To only take it off the live site, use unpublish instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoSite slug or id to act in (multisite). Omit to use this server's default site. Call list_sites to see what exists — an empty tree or search usually means the wrong site, not missing content.
documentIdYesThe item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / documentId / description
      Previous value: -"Content documentId"New value: +"The item's documentId (stable across locales and versions), e.g. from tree, list_pages or get_content."
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: all locales are unpublished simultaneously, content disappears from delivery, the operation is recoverable via restore_content (returning drafts that must be republished), and the response shape is {trashed: <number>}. This reconciles the destructiveHint=false annotation, which would otherwise read as odd for a trash operation, by explaining the recoverability.

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 tight sentences, no filler. The destructive scope is front-loaded, then recovery, then the routing hint to unpublish — a sensible priority order for a destructive operation.

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 two-parameter, no-output-schema tool this covers everything: side effects on all locales, delivery impact, reversibility, the return value shape, and the alternative tool. Nothing an agent needs to call this correctly or to warn the user is absent.

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 both parameters (site, documentId) are already fully documented in the schema, including the multisite fallback and where documentId comes from. The description adds no parameter-level detail, which is the correct baseline when the schema carries the load.

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 ('move to trash') plus the exact scope ('a content item AND its whole page subtree'), which is a stronger and more precise statement than the tool name alone. It also separates itself from the near-siblings unpublish and restore_content by name, so an agent can disambiguate without opening any schema.

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?

Gives an explicit when-not and the alternative that covers it: 'To only take it off the live site, use unpublish instead.' It also names the recovery path (restore_content) and the condition for using it, so the agent knows this is reversible rather than terminal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.