Skip to main content
Glama

list_archived_documents

Retrieve archived documents from Outline wiki to restore or reference past content. Specify limit to control results.

Instructions

Get list of archived documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • The core handler function that implements the list_archived_documents tool. It calls the Outline API endpoint '/documents.archived' with the limit parameter and formats the results using formatArchivedDocuments.
    async list_archived_documents(args: ListArchivedDocumentsInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.archived', { limit: args.limit }) ); return formatArchivedDocuments(data || []); },
  • Zod schema defining the input for list_archived_documents: an optional limit (default 25).
    export const listArchivedDocumentsSchema = z.object({ limit: limit.default(25) });
  • Registration of the schema in the central toolSchemas map used for tool definitions.
    list_archived_documents: listArchivedDocumentsSchema,
  • Tool registration in allTools array, converting the Zod schema to JSON schema for MCP tool definition.
    createTool( 'list_archived_documents', 'Get list of archived documents.', 'list_archived_documents' ),
  • TypeScript type inferred from the schema for use in handler signatures.
    export type ListArchivedDocumentsInput = z.infer<typeof listArchivedDocumentsSchema>;

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-wiki-mcp'

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