Skip to main content
Glama
nulab

Backlog MCP Server

get_wiki

Retrieve specific wiki page content from Backlog project management using the wiki ID to access documentation and project information.

Instructions

Returns information about a specific wiki page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wikiIdYesWiki ID

Implementation Reference

  • The handler function that executes the core logic of the 'get_wiki' tool by parsing the wikiId and calling backlog.getWiki(wikiIdNumber) to retrieve the wiki page information.
    handler: async ({ wikiId }) => {
      const wikiIdNumber =
        typeof wikiId === 'string' ? parseInt(wikiId, 10) : wikiId;
      return backlog.getWiki(wikiIdNumber);
    },
  • Input schema definition for the 'get_wiki' tool using Zod, specifying the wikiId parameter which can be a string or number.
    const getWikiSchema = buildToolSchema((t) => ({
      wikiId: z
        .union([z.string(), z.number()])
        .describe(t('TOOL_GET_WIKI_ID', 'Wiki ID')),
    }));
  • Registration of the 'get_wiki' tool by instantiating getWikiTool and adding it to the 'wiki' toolset in the allTools function.
    getWikiTool(backlog, helper),
  • The complete tool definition and export of the 'get_wiki' tool, including name, description, schema, output schema, and handler.
    export const getWikiTool = (
      backlog: Backlog,
      { t }: TranslationHelper
    ): ToolDefinition<
      ReturnType<typeof getWikiSchema>,
      (typeof WikiSchema)['shape']
    > => {
      return {
        name: 'get_wiki',
        description: t(
          'TOOL_GET_WIKI_DESCRIPTION',
          'Returns information about a specific wiki page'
        ),
        schema: z.object(getWikiSchema(t)),
        outputSchema: WikiSchema,
        importantFields: ['id', 'projectId', 'name', 'content'],
        handler: async ({ wikiId }) => {
          const wikiIdNumber =
            typeof wikiId === 'string' ? parseInt(wikiId, 10) : wikiId;
          return backlog.getWiki(wikiIdNumber);
        },
      };
    };

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