Skip to main content
Glama

get_categories

Retrieve a list of categories for a specific project in Backlog by providing the project ID or key, enabling organized project management and issue categorization.

Instructions

Returns list of categories for a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdOrKeyYesProject ID or project key

Implementation Reference

  • The asynchronous handler function that executes the tool logic: resolves the project ID or key and fetches categories using the backlog client.
    handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getCategories(result.value); },
  • Input schema definition using Zod for optional projectId (number) or projectKey (string). Used in the tool's schema: z.object(getCategoriesSchema(t)). Output schema is CategorySchema.
    const getCategoriesSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_GET_CATEGORIES_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_GET_CATEGORIES_PROJECT_ID', "The key of the project (e.g., 'PROJECT')" ) ), }));
  • The getCategoriesTool factory is called with backlog client and translation helper to instantiate and register the tool in the 'issue' toolset.
    getCategoriesTool(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