Skip to main content
Glama

get-story

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

Instructions

Get a Shortcut story by public ID

Input Schema

NameRequiredDescriptionDefault
storyPublicIdYesThe public ID of the story to get

Input Schema (JSON Schema)

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

Implementation Reference

  • Registers the "get-story" tool with MCP server, providing description, input schema (storyPublicId), and handler that calls the getStory method.
    server.tool( "get-story", "Get a Shortcut story by public ID", { storyPublicId: z.number().positive().describe("The public ID of the story to get"), }, async ({ storyPublicId }) => await tools.getStory(storyPublicId), );
  • Zod schema for input parameters of the get-story tool: storyPublicId as positive number.
    { storyPublicId: z.number().positive().describe("The public ID of the story to get"), },
  • The main handler logic for get-story tool: fetches the story via client.getStory, handles not found error, and returns formatted result using toResult and entityWithRelatedEntities.
    async getStory(storyPublicId: number) { const story = await this.client.getStory(storyPublicId); if (!story) throw new Error(`Failed to retrieve Shortcut story with public ID: ${storyPublicId}.`); return this.toResult( `Story: sc-${storyPublicId}`, await this.entityWithRelatedEntities(story, "story"), ); }

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