Skip to main content
Glama

get-trash

Retrieve deleted tasks from Things 3 with options to control detail level and limit results for efficient trash management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailNoResponse detail level. Defaults to compact.
limitNoMaximum number of items to return

Implementation Reference

  • The 'get-trash' tool registration and handler implementation.
      "get-trash",
      {
        detail: z.enum(["compact", "full"]).optional().describe("Response detail level. Defaults to compact."),
        limit: z.number().int().positive().optional().describe("Maximum number of items to return"),
      },
      async ({ detail, limit }) => {
        const requestedDetail = detail ?? "compact";
        const items = await withDatabase((db) =>
          applyLimit(getTrashItems(getAllTasks(db)), limit).map((item) =>
            toTaskView(item, requestedDetail)
          )
        );
        return buildTextResponse(`Found ${items.length} trashed items`, {
          items,
          detail: requestedDetail,
          limit: limit ?? null,
        });
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/soycanopa/SupaThings-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server