Skip to main content
Glama

Delete CMS items

delete_items
Destructive

Deletes up to 100 items by slug; slugs not found are listed. Confirm with the user before deleting content they wrote. Writes go to the branch the workspace has open, the same as the Content tab. Saved at once, like every edit in Xodia; pushing to Git and publishing stay the user's. Works on every plan within its collection and item limits (Free: 2 collections and 100 items a site); turning a folder into a Xodia collection needs a paid plan.

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": {
      "collection": "<collection>",
      "slugs": "<slugs>",
      "projectId": "<projectId>"
    },
    "name": "delete_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugsYes
branchNoOptional branch; default the branch the workspace has open
projectIdYesProject id from list_projects
collectionYesThe collection id (its folder under content/), from list_collections

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description still adds substantial behavior the agent could not otherwise know: writes land on the workspace's open branch, changes are saved immediately rather than drafted, and pushing to Git / publishing remain the user's responsibility. It also discloses partial-failure semantics (unmatched slugs are reported back) and that the operation is bounded by plan limits.

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?

The destructive action and its 100-slug scope lead the description, followed by the confirmation rule and branch/publish semantics — good front-loading with no filler. The closing sentence drifts into plan and 'turning a folder into a Xodia collection' details that are only marginally relevant to deleting items.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, no-output-schema tool the definition covers what an agent needs: scope, partial-failure reporting, branch targeting, immediate-save semantics, and the human-approval requirement. It does not say whether deleted items can be restored from a checkpoint, which matters given checkpoints exist elsewhere in the toolset.

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 coverage is 75% and branch, projectId and collection already carry descriptions pointing at list_projects / list_collections, so the schema does most of the work. The description reinforces the slug form and the 100-item cap but adds no format detail beyond the schema's maxItems and pattern constraints, and never mentions the optional branch parameter's default (only the schema does).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb and resource ('Deletes up to 100 items by slug') plus the batch-failure behavior ('slugs not found are listed'), which distinguishes it from delete_file / delete_folder / delete_page by targeting collection items. It never names a sibling, so a small amount of disambiguation is left to the agent.

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?

Usage context is clear: only works within the collection's item limits, and the agent should 'Confirm with the user before deleting content they wrote' — a concrete precondition most delete tools omit. What's missing is an explicit statement of when a different delete tool is the right call, or whether re-creating a deleted slug is possible.

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