Skip to main content
Glama

list_archived_documents

Retrieve archived documents from Outline wiki to restore or reference previous content, with configurable result limits.

Instructions

Get list of archived documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • The handler function that executes the list_archived_documents tool. It calls the Outline API to fetch archived documents with the given limit and formats the response using formatArchivedDocuments.
    async list_archived_documents(args: ListArchivedDocumentsInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.archived', { limit: args.limit }) ); return formatArchivedDocuments(data || []); },
  • Zod input schema for list_archived_documents tool, defining an optional 'limit' parameter defaulting to 25.
    export const listArchivedDocumentsSchema = z.object({ limit: limit.default(25) });
  • Registration of the list_archived_documents tool in the allTools array, specifying name, description, and linking to its Zod schema.
    createTool( 'list_archived_documents', 'Get list of archived documents.', 'list_archived_documents' ),
  • TypeScript type definition for the input parameters of list_archived_documents, inferred from the Zod schema.
    export type ListArchivedDocumentsInput = z.infer<typeof listArchivedDocumentsSchema>;
  • The schema is mapped to the tool name in the toolSchemas object used for tool definitions.
    list_archived_documents: 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-smart-mcp'

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