Skip to main content
Glama

get_wiki

Retrieve detailed information about a specific wiki page by providing its unique ID, enabling efficient access to Backlog project documentation via the integrated MCP server.

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 fetching the wiki page from Backlog using the provided wikiId, converting it to number if necessary.
    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 as 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 within the 'wiki' toolset group in the allTools export.
    name: 'wiki', description: 'Tools for managing wiki pages.', enabled: false, tools: [ getWikiPagesTool(backlog, helper), getWikisCountTool(backlog, helper), getWikiTool(backlog, helper), addWikiTool(backlog, helper), ], },
  • Output schema reference for the 'get_wiki' tool, using the imported WikiSchema for validation.
    outputSchema: WikiSchema,
  • Import statement for the getWikiTool used in registration.
    import { getWikiTool } from './getWiki.js';

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