Skip to main content
Glama

list_trash

Read-onlyIdempotent

Retrieve soft-deleted documents visible to the active workspace or category scope so you can review trash without restoring or purging content.

Instructions

List soft-deleted documents visible to the active workspace or category scope. Requires read access and does not restore or purge anything.

Input Schema

NameRequiredDescriptionDefault
workspaceIdNoWorkspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.4
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "description": "Workspace UUID from list_workspace_structure(kind=workspaces). Required for ambiguous creates and structure changes; omit to search all granted scopes.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • removedOutput schema / additionalProperties
      Removed value: -{}
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "documents": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "deletedAt": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "format": "uuid",
      +              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +              "type": "string"
      +            },
      +            "purgeAfter": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title",
      +            "deletedAt",
      +            "purgeAfter"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "folders": {
      +        "items": {},
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "documents",
      +      "folders"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "operation": {
      +        "type": "string"
      +      },
      +      "scopedResults": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "categoryId": {
      +              "anyOf": [
      +                {
      +                  "format": "uuid",
      +                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "data": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "documents": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "deletedAt": {
      +                        "type": "string"
      +                      },
      +                      "id": {
      +                        "format": "uuid",
      +                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                        "type": "string"
      +                      },
      +                      "purgeAfter": {
      +                        "type": [
      +                          "string",
      +                          "null"
      +                        ]
      +                      },
      +                      "title": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "id",
      +                      "title",
      +                      "deletedAt",
      +                      "purgeAfter"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "folders": {
      +                  "items": {},
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "documents",
      +                "folders"
      +              ],
      +              "type": "object"
      +            },
      +            "workspace": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "id": {
      +                  "format": "uuid",
      +                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                  "type": "string"
      +                },
      +                "name": {
      +                  "type": "string"
      +                },
      +                "slug": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "id",
      +                "name",
      +                "slug"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "workspace",
      +            "categoryId",
      +            "data"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "operation",
      +      "scopedResults"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "documents": {
      -    "items": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "deletedAt": {
      -          "type": "string"
      -        },
      -        "id": {
      -          "format": "uuid",
      -          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -          "type": "string"
      -        },
      -        "purgeAfter": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ]
      -        },
      -        "title": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "title",
      -        "deletedAt",
      -        "purgeAfter"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "folders": {
      -    "items": {},
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "documents",
      -  "folders"
      -]
  2. Changed1 schema field changedv0.1.2
    • addedInput schema / additionalProperties
      Added value: +false
  3. Addedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, non-destructive, and idempotent behavior, so the description adds mainly the auth requirement ('Requires read access') and clarifies that it won't restore or purge. This is useful context beyond the annotations, but it does not cover rate limits, pagination, or return format details.

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?

Two sentences, front-loaded with the core purpose and scope. The second sentence adds auth and side-effect clarity without redundancy, though it could be slightly more compact.

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 simple list tool with one optional parameter, the description covers purpose, scope, auth requirement, and non-destructive nature. An output schema exists, so return values need not be explained; the description is largely complete, though it could mention pagination or default ordering.

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 workspaceId parameter is fully documented in the schema. The description adds a minor scope hint ('visible to the active workspace or category scope'), but does not provide syntax or default behavior beyond what the schema already states.

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 states a clear verb (List) and resource (soft-deleted documents) with scope (active workspace or category). It implicitly distinguishes itself from restore/purge siblings by explicitly stating it does not perform those actions, though it doesn't name alternatives.

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?

The phrase 'does not restore or purge anything' signals when not to use this tool (i.e., for recovery or permanent deletion), and 'Requires read access' implies a prerequisite. However, no alternative tool is named, leaving the agent to infer that restore_trashed_document or permanently_delete_document should be used instead.

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