Skip to main content
Glama

get_version_milestone_list

Retrieve version and milestone lists for Backlog projects to track project timelines and deliverables.

Instructions

Returns list of versions/milestones in the Backlog space

Input Schema

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

Implementation Reference

  • The handler function that executes the tool logic: resolves the project using ID or key, then fetches the list of versions/milestones using backlog.getVersions().
    handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getVersions(result.value); },
  • Input schema definition using Zod: optional projectId (number) or projectKey (string).
    const getVersionMilestoneListSchema = buildToolSchema((t) => ({ projectId: z .number() .optional() .describe( t( 'TOOL_GET_VERSION_MILESTONE_PROJECT_ID', 'The numeric ID of the project (e.g., 12345)' ) ), projectKey: z .string() .optional() .describe( t( 'TOOL_GET_VERSION_MILESTONE_PROJECT_KEY', 'The key of the project (e.g., TEST_PROJECT)' ) ), }));
  • Tool definition and registration within the exported getVersionMilestoneListTool function, including name, description, schemas, important fields, and handler.
    return { name: 'get_version_milestone_list', description: t( 'TOOL_GET_VERSION_MILESTONE_LIST_DESCRIPTION', 'Returns list of versions/milestones in the Backlog space' ), schema: z.object(getVersionMilestoneListSchema(t)), outputSchema: VersionSchema, importantFields: [ 'id', 'name', 'description', 'startDate', 'releaseDueDate', 'archived', ], handler: async ({ projectId, projectKey }) => { const result = resolveIdOrKey( 'project', { id: projectId, key: projectKey }, t ); if (!result.ok) { throw result.error; } return backlog.getVersions(result.value); }, };
  • Final registration: adds the tool to the 'issue' toolset group in the allTools export.
    getVersionMilestoneListTool(backlog, helper),
  • Import of the getVersionMilestoneListTool for use in the toolset.
    import { getVersionMilestoneListTool } from './getVersionMilestoneList.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