Skip to main content
Glama
nulab

Backlog MCP Server

get_priorities

Retrieve priority options from Backlog to classify and manage issue urgency in project workflows.

Instructions

Returns list of priorities

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Factory function creating the 'get_priorities' MCP tool definition. The handler asynchronously calls backlog.getPriorities() to fetch the list of priorities.
    export const getPrioritiesTool = (
      backlog: Backlog,
      { t }: TranslationHelper
    ): ToolDefinition<
      ReturnType<typeof getPrioritiesSchema>,
      (typeof PrioritySchema)['shape']
    > => {
      return {
        name: 'get_priorities',
        description: t(
          'TOOL_GET_PRIORITIES_DESCRIPTION',
          'Returns list of priorities'
        ),
        schema: z.object(getPrioritiesSchema(t)),
        outputSchema: PrioritySchema,
        handler: async () => backlog.getPriorities(),
      };
    };
  • Zod schema defining the structure of a Priority object, used as the output schema for the get_priorities tool.
    export const PrioritySchema = z.object({
      id: z.number(),
      name: z.string(),
    });
  • Registers the get_priorities tool by instantiating it with the Backlog instance and translation helper, adding it to the 'issue' toolset.
    getPrioritiesTool(backlog, helper),
  • Defines the input schema for the get_priorities tool, which takes no parameters (empty object).
    const getPrioritiesSchema = buildToolSchema((_t) => ({}));
  • Imports the getPrioritiesTool factory function used to register the get_priorities tool.
    import { getPrioritiesTool } from './getPriorities.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