Skip to main content
Glama
nulab

Backlog MCP Server

get_wikis_count

Count wiki pages in a Backlog project to track documentation volume and manage content organization.

Instructions

Returns count of wiki pages in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdNoThe numeric ID of the project (e.g., 12345)
projectKeyNoThe key of the project (e.g., 'PROJECT')

Implementation Reference

  • The handler function that executes the tool logic: resolves the project ID or key and calls the Backlog API to get the wiki count.
    handler: async ({ projectId, projectKey }) => {
      const result = resolveIdOrKey(
        'project',
        { id: projectId, key: projectKey },
        t
      );
      if (!result.ok) {
        throw result.error;
      }
      return backlog.getWikisCount(result.value);
    },
  • Input schema definition for the tool parameters (projectId or projectKey). Also references outputSchema: WikiCountSchema.
    const getWikisCountSchema = buildToolSchema((t) => ({
      projectId: z
        .number()
        .optional()
        .describe(
          t(
            'TOOL_GET_WIKIS_COUNT_PROJECT_ID',
            'The numeric ID of the project (e.g., 12345)'
          )
        ),
      projectKey: z
        .string()
        .optional()
        .describe(
          t(
            'TOOL_GET_WIKIS_COUNT_PROJECT_KEY',
            "The key of the project (e.g., 'PROJECT')"
          )
        ),
    }));
  • Registration of the getWikisCountTool in the 'wiki' toolset group within 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),
        updateWikiTool(backlog, helper),
      ],
    },
  • Import of the getWikisCountTool function.
    import { getWikisCountTool } from './getWikisCount.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