Skip to main content
Glama

List trash

list_trash
Read-only

Lists deleted pages in a space that can still be restored, most recently deleted first, and shows how many child pages each restore would revive.

Instructions

List the deleted pages in a space that can still be restored, most recently deleted first. Each entry is a page that was deleted directly; descendant_count says how many of its child pages went with it and come back with it. Pages stay in the trash for retention_days, then they are deleted for good. Restore one with restore_page and its id. With a space-scoped token, omit "space" to use the token's space.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_trash"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNoSpace UUID or "workspaceSlug/spaceSlug" path. Optional for space-scoped tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses ordering, that entries are only directly-deleted pages, the meaning of descendant_count and that children return with the parent, and the retention_days expiry window. That is meaningful behavior an agent could not infer from annotations alone.

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?

Four front-loaded sentences that each carry information, with the purpose and ordering stated first. The final sentence largely duplicates the schema's own note on space-scoped tokens, a minor redundancy.

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?

There is no output schema, yet the description explains the entry shape (deleted pages) and an important response field (descendant_count), plus lifetime semantics. Nothing needed to call this read-only list tool correctly is missing.

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 100% and the single optional 'space' parameter is already documented in the schema, including its optionality for space-scoped tokens. The description restates that guidance rather than adding new meaning, so the baseline of 3 applies.

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 ('List the deleted pages in a space') plus scope ('that can still be restored') and ordering ('most recently deleted first'). An agent can immediately distinguish this from list_pages without opening either 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 routes the follow-up action explicitly ('Restore one with restore_page and its id') and covers the space-scoped token case. It doesn't state a when-not condition, but the trash-only scope already implies the boundary against list_pages.

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