Skip to main content
Glama

List Deleted Items

list_deleted
Read-onlyIdempotent

Retrieve recently soft-deleted company items from recoverable trash so users can restore or permanently delete them. Filter by days or entity type; see labels, deletion dates, and purge dates.

Instructions

List recently soft-deleted items (the recoverable trash) for the current company so the user can pick one to restore or permanently delete. Returns each item's type, a human-readable label, when it was deleted, and the date it will be auto-purged. Defaults to the last 7 days with leftover demo fixtures hidden; pass days to widen the window, entity_type to filter, or include_demo to show demo data. Each item carries entity_id for use with restore_item or purge_item - present items to the user by label, never by id. Response includes a render field with tiered rendering guidance - check it before composing your reply.

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_deleted"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days. Defaults to 7.
limitNoMax items to return. Defaults to 100.
entity_typeNoFilter to a single entity type. Omit for all types.
include_demoNoInclude leftover demo (demorun-) fixtures. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so the description's job is to add context, and it does: soft-deleted-only scope, 7-day default window, demo fixtures hidden by default, per-item auto-purge dates, and an instruction to consult the render field before replying. It stops short of describing pagination behavior or what happens at the limit boundary, which is the main remaining gap.

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?

Purpose is front-loaded in the first sentence, followed by return contents, parameter overrides, and the id/label rule in a logical order. It runs four dense sentences, and the final note about the render field is useful but slightly meta, keeping it below a perfect score.

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, so the description carries the burden of explaining return values and does: item type, human-readable label, deletion time, auto-purge date, plus the entity_id and render field. Combined with annotations covering the safety profile, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3; the description earns a point by framing intent ('pass days to widen the window', 'include_demo to show demo data') rather than merely restating the schema's type and default. It does not add syntax or format detail the schema lacks, which is why it is not a 5.

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?

Names a specific verb and resource with scope: 'List recently soft-deleted items (the recoverable trash) for the current company.' The parenthetical and the stated follow-up goal ('so the user can pick one to restore or permanently delete') separate it cleanly from list_demos, restore_item, purge_item, and the other list_* siblings.

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?

Explicitly states the use case (choosing an item to restore or purge), names the follow-up tools restore_item and purge_item and the entity_id that links to them, and documents the defaults and when to override them (days to widen the window, entity_type to filter, include_demo to surface demo data). It also adds a usage rule for the agent's reply: present by label, never by id.

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

Deploy Server

Other Tools