Skip to main content
Glama

get_wikis_count

Retrieve the total count of wiki pages in a Backlog project by providing the project ID or key, enabling efficient tracking and management of project documentation.

Instructions

Returns count of wiki pages in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdOrKeyYesProject ID or project key

Implementation Reference

  • The asynchronous handler function that resolves the project ID or key using resolveIdOrKey and calls the Backlog client's getWikisCount method to retrieve 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 get_wikis_count tool, accepting optional projectId (number) or projectKey (string) with descriptions.
    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')" ) ), }));
  • Output schema definition for the wiki count response, consisting of a single 'count' number field.
    export const WikiCountSchema = z.object({ count: z.number(), });
  • Import statement for the getWikisCountTool factory function.
    import { getWikisCountTool } from './getWikisCount.js';
  • Registration of the get_wikis_count tool by invoking the factory within the 'wiki' toolset group.
    getWikisCountTool(backlog, helper),

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