Skip to main content
Glama

get-iteration

Retrieve a specific iteration from Shortcut project management using its public ID to access detailed sprint information and progress data.

Instructions

Get a Shortcut iteration by public ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iterationPublicIdYesThe public ID of the iteration to get

Implementation Reference

  • Handler function that retrieves the iteration by public ID from the Shortcut client, handles errors, and formats the result using inherited methods from BaseTools.
    async getIteration(iterationPublicId: number) { const iteration = await this.client.getIteration(iterationPublicId); if (!iteration) throw new Error( `Failed to retrieve Shortcut iteration with public ID: ${iterationPublicId}.`, ); return this.toResult( `Iteration: ${iterationPublicId}`, await this.entityWithRelatedEntities(iteration, "iteration"), ); }
  • Registration of the 'get-iteration' MCP tool, defining the name, description, input schema (iterationPublicId), and linking to the handler method.
    server.tool( "get-iteration", "Get a Shortcut iteration by public ID", { iterationPublicId: z.number().positive().describe("The public ID of the iteration to get"), }, async ({ iterationPublicId }) => await tools.getIteration(iterationPublicId), );
  • Input schema for the 'get-iteration' tool using Zod validation for iterationPublicId.
    { iterationPublicId: z.number().positive().describe("The public ID of the iteration to get"), },

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/ampcome-mcps/shortcut-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server