Skip to main content
Glama

get_document

Retrieve complete document content from Outline wiki using a document ID for access and management.

Instructions

Get full document content by document ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • The main handler function for the 'get_document' tool. It calls the Outline API endpoint '/documents.info' with the provided documentId, retrieves the document data, and formats it using formatDocumentInfo before returning.
    async get_document(args: GetDocumentInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument>('/documents.info', { id: args.documentId }) ); return formatDocumentInfo(data, baseUrl); },
  • Zod schema for 'get_document' tool input, requiring a 'documentId' string.
    export const getDocumentSchema = z.object({ documentId });
  • src/lib/tools.ts:63-67 (registration)
    Registers the 'get_document' tool in the allTools array, providing name, description, and schema reference for MCP tool listing.
    createTool( 'get_document', 'Get full document content by document ID.', 'get_document' ),
  • Associates the 'get_document' tool name with its input schema in the central toolSchemas mapping used for validation.
    get_document: getDocumentSchema,
  • Imports and includes the document handlers (including get_document) via createDocumentHandlers in the aggregated ToolHandlers object.
    ...createBatchHandlers(ctx),

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