Skip to main content
Glama

get-iteration

Retrieve detailed information about a specific Shortcut iteration using its public ID number to access project management data and iteration details.

Instructions

Get a Shortcut iteration by public ID

Input Schema

NameRequiredDescriptionDefault
iterationPublicIdYesThe public ID of the iteration to get

Input Schema (JSON Schema)

{ "properties": { "iterationPublicId": { "description": "The public ID of the iteration to get", "exclusiveMinimum": 0, "type": "number" } }, "required": [ "iterationPublicId" ], "type": "object" }

Implementation Reference

  • The main handler function for the 'get-iteration' tool. It calls the Shortcut client to fetch the iteration by public ID, throws an error if not found, and formats the result using inherited methods.
    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"), ); }
  • Registers the 'get-iteration' tool with the MCP server, providing the tool name, description, input schema using Zod, and references the handler function.
    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, validating iterationPublicId as a positive number.
    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