Skip to main content
Glama

stories-add-external-link

Add external URLs to Shortcut stories to link related resources, documentation, or references directly within project management tasks.

Instructions

Add an external link to a Shortcut story

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
storyPublicIdYesThe public ID of the story
externalLinkYesThe external link URL to add

Implementation Reference

  • Handler function that validates inputs, calls the Shortcut client to add the external link to the story, and returns a success message with the story URL.
    async addExternalLinkToStory(storyPublicId: number, externalLink: string) { if (!storyPublicId) throw new Error("Story public ID is required"); if (!externalLink) throw new Error("External link is required"); const updatedStory = await this.client.addExternalLinkToStory(storyPublicId, externalLink); return this.toResult( `Added external link to story sc-${storyPublicId}. Story URL: ${updatedStory.app_url}`, ); }
  • Registers the tool 'stories-add-external-link' with MCP server, including input schema validation using Zod and references the handler method.
    server.addToolWithWriteAccess( "stories-add-external-link", "Add an external link to a Shortcut story", { storyPublicId: z.number().positive().describe("The public ID of the story"), externalLink: z.string().url().max(2048).describe("The external link URL to add"), }, async ({ storyPublicId, externalLink }) => await tools.addExternalLinkToStory(storyPublicId, externalLink), );
  • Zod schema defining input parameters: storyPublicId (positive number) and externalLink (valid URL up to 2048 chars).
    { storyPublicId: z.number().positive().describe("The public ID of the story"), externalLink: z.string().url().max(2048).describe("The external link URL to add"), },

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/useshortcut/mcp-server-shortcut'

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