Skip to main content
Glama

get_documents

Retrieve documents from Backlog projects using project IDs. Supports pagination to manage large document lists.

Instructions

Gets a list of documents in a project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdsYesProject ID List
offsetNoOffset for pagination (default is 0)

Implementation Reference

  • The handler function that executes the tool logic by calling the Backlog API's getDocuments method with provided projectIds and offset.
    handler: async ({ projectIds, offset }) => { return backlog.getDocuments({ projectId: projectIds, offset }); },
  • Input schema definition for the get_documents tool, including projectIds (array of project IDs) and optional offset for pagination.
    const getDocumentsSchema = buildToolSchema((t) => ({ projectIds: z .array(z.number()) .describe(t('TOOL_GET_DOCUMENTS_PROJECT_ID_LIST', 'Project ID List')), offset: z .number() .optional() .default(0) .describe( t('TOOL_GET_DOCUMENTS_OFFSET', 'Offset for pagination (default is 0)') ), }));
  • Registration of the getDocumentsTool within the 'document' toolset group in the allTools function.
    tools: [ getDocumentsTool(backlog, helper), getDocumentTreeTool(backlog, helper), getDocumentTool(backlog, helper), ],
  • Tool metadata including name 'get_documents', description, input/output schemas, and important fields.
    description: t( 'TOOL_GET_DOCUMENTS_DESCRIPTION', 'Gets a list of documents in a project.' ), schema: z.object(getDocumentsSchema(t)), outputSchema: DocumentItemSchema, importantFields: ['id', 'projectId', 'title', 'plain'],

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/nulab/backlog-mcp-server'

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