Skip to main content
Glama

list_trash

Retrieve deleted documents from Outline wiki trash to review or restore them. Specify a limit to control how many items appear in the results.

Instructions

Get list of documents in trash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • The main handler function for the 'list_trash' tool. It calls the Outline API '/documents.deleted' endpoint to fetch deleted documents and formats the response using formatTrashDocuments.
    async list_trash(args: ListTrashInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.deleted', { limit: args.limit }) ); return formatTrashDocuments(data || []); },
  • Zod input schema definition for the list_trash tool, defining an optional 'limit' parameter defaulting to 25.
    export const listTrashSchema = z.object({ limit: limit.default(25) });
  • Registration of the listTrashSchema under the 'list_trash' key in the central toolSchemas map, used to generate tool definitions.
    list_trash: listTrashSchema,
  • Tool definition creation for 'list_trash' in the allTools array, converting the Zod schema to JSON Schema for MCP protocol.
    'list_trash', 'Get list of documents in trash.', 'list_trash' ),
  • TypeScript type definition for ListTrashInput inferred from listTrashSchema.
    export type ListTrashInput = z.infer<typeof listTrashSchema>;

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/huiseo/outline-smart-mcp'

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