Skip to main content
Glama

backlog_get_wiki

Retrieve a specific wiki page from Backlog using its unique page ID. This tool integrates with the Backlog Wiki API to fetch detailed content for project management and collaboration purposes.

Instructions

Performs an wiki get using the Backlog Wiki API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wikiIdYesWiki page ID

Implementation Reference

  • The handler function that implements the core execution logic for the 'backlog_get_wiki' tool. It validates input parameters using WikiParamsSchema, fetches wiki details via wikiService.getWiki, and formats the response as text or handles errors.
    const handleGetWiki: ToolHandler = async (args) => { try { try { const validatedParams = WikiParamsSchema.parse(args); const text = await wikiService.getWiki(validatedParams); return { content: [ { type: "text", text: `Wiki details for ${validatedParams.wikiId}:\n${text}`, }, ], isError: false, }; } catch (validationError) { throw new ValidationError( `Invalid parameters: ${validationError instanceof Error ? validationError.message : String(validationError)}`, ); } } catch (error) { return { content: [ { type: "text", text: `Error: ${formatError(error)}`, }, ], isError: true, }; } };
  • Zod schema definition for input validation of the 'backlog_get_wiki' tool, requiring a single 'wikiId' parameter of type integer with description.
    export const WikiParamsSchema = z.object({ wikiId: z.number().int().describe("Wiki page ID"), });
  • Registers the 'backlog_get_wiki' tool definition for MCP, specifying name, description, and input schema derived from WikiParamsSchema.
    export const WIKI_TOOL: Tool = createTool( "backlog_get_wiki", "Performs an wiki get using the Backlog Wiki API.", WikiParamsSchema, );
  • Maps the tool name 'backlog_get_wiki' to its handler function handleGetWiki in the central toolHandlers registry.
    export const toolHandlers: Record<ToolName, ToolHandler> = { backlog_get_projects: handleGetProjects, backlog_get_project: handleGetProject, backlog_get_issues: handleGetIssues, backlog_get_issue: handleGetIssue, backlog_add_issue: handleAddIssue, backlog_update_issue: handleUpdateIssue, backlog_delete_issue: handleDeleteIssue, backlog_get_wikis: handleGetWikis, backlog_get_wiki: handleGetWiki, backlog_add_wiki: handleAddWiki, backlog_update_wiki: handleUpdateWiki, backlog_delete_wiki: handleDeleteWiki, };

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

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