Skip to main content
Glama

get_document

Retrieve complete document content from Outline wiki using its unique document ID for viewing or processing.

Instructions

Get full document content by document ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • The primary handler function for the 'get_document' tool. It calls the Outline API's '/documents.info' endpoint with the documentId to retrieve the document details and formats the output using formatDocumentInfo, including the base URL.
    async get_document(args: GetDocumentInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument>('/documents.info', { id: args.documentId }) ); return formatDocumentInfo(data, baseUrl); },
  • Zod input schema for the 'get_document' tool, requiring a single 'documentId' field (defined earlier as z.string().min(1)). This schema is used for input validation.
    export const getDocumentSchema = z.object({ documentId });
  • src/lib/tools.ts:64-68 (registration)
    Registers the 'get_document' tool in the allTools export array. Converts the Zod schema to JSON Schema for MCP compatibility and defines the tool's name and description.
    'get_document', 'Get full document content by document ID.', 'get_document' ), createTool(

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