Skip to main content
Glama

Move pages to trash

trash_pages
Destructive

Atomically move one or more active Pages in one workspace to the trash, together with all of their active sub-pages; movedSubPageCount reports how many. This is reversible: restoring a Page also restores the sub-pages trashed with it.

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": {
      "workspaceId": "<workspaceId>",
      "pages": "<pages>"
    },
    "name": "trash_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pagesYes
workspaceIdYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior5/5

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

Annotations declare the destructive/write profile, and the description adds real context beyond them: atomicity, the cascade to sub-pages, the movedSubPageCount result field, and the crucial reversibility contract (restoring a page restores its sub-pages too). This is the kind of behavioral detail an agent needs before committing a destructive operation.

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?

Two tight sentences, front-loaded with the action and scope, then the reversibility guarantee. No filler and nothing repeated from the title or annotations.

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

Completeness3/5

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

The output schema exists, so return values needn't be spelled out, and the description covers cascade and reversibility well. However, for a destructive bulk mutation it omits error behavior — notably what happens on a version mismatch, whether partial success is possible, and what limits apply to the pages array.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should compensate, but it never explains workspaceId or the nested expectedVersion field, which is the most ambiguous parameter (optimistic-concurrency token). Only the loose notion of 'active pages' and the result field movedSubPageCount are hinted at; the concurrency and up-to-100-items bulk semantics are left entirely to the schema.

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 description names a specific verb (move to trash) and resource (active Pages in one workspace), and adds the cascade scope (active sub-pages). It does not explicitly distinguish itself from sibling tools like trash_views or patch_pages, but the page-vs-view distinction is clear from the resource named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied: it applies to 'active' pages, so already-trashed pages are out of scope, and the reversibility note signals the intended use (temporary removal rather than permanent deletion). There is no explicit when-to-use/when-not-to-use guidance and no named alternative tool, so an agent must infer the boundary itself.

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