get_priorities
Retrieve a list of priorities for effective task organization using the Backlog MCP Server, enabling streamlined project and issue management.
Instructions
Returns list of priorities
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getPriorities.ts:9-26 (handler)The factory function that creates and configures the 'get_priorities' tool, including its handler logic which fetches priorities using the Backlog client.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 priority objects returned by the get_priorities tool.export const PrioritySchema = z.object({ id: z.number(), name: z.string(), });
- src/tools/tools.ts:96-96 (registration)The getPrioritiesTool is instantiated with backlog and translation helper and registered within the 'issue' toolset group.getPrioritiesTool(backlog, helper),
- src/tools/getPriorities.ts:7-7 (schema)Empty input schema for the get_priorities tool (no parameters required).const getPrioritiesSchema = buildToolSchema((_t) => ({}));
- src/tools/tools.ts:24-24 (registration)Import of the getPrioritiesTool factory function.import { getPrioritiesTool } from './getPriorities.js';