Skip to main content
Glama

get-workflow

Retrieve workflow details from Shortcut project management using the workflow's public ID to access specific project information and processes.

Instructions

Get a Shortcut workflow by public ID

Input Schema

NameRequiredDescriptionDefault
workflowPublicIdYesThe public ID of the workflow to get

Input Schema (JSON Schema)

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

Implementation Reference

  • The main handler function that executes the 'get-workflow' tool logic: fetches the workflow by public ID from the client, handles not found case, and formats the result with related entities using helper methods.
    async getWorkflow(workflowPublicId: number) { const workflow = await this.client.getWorkflow(workflowPublicId); if (!workflow) return this.toResult(`Workflow with public ID: ${workflowPublicId} not found.`); return this.toResult( `Workflow: ${workflow.id}`, await this.entityWithRelatedEntities(workflow, "workflow"), ); }
  • Registers the 'get-workflow' tool with the MCP server, specifying description, input schema (Zod validator for workflowPublicId), and delegates execution to the getWorkflow handler.
    server.tool( "get-workflow", "Get a Shortcut workflow by public ID", { workflowPublicId: z.number().positive().describe("The public ID of the workflow to get") }, async ({ workflowPublicId }) => await tools.getWorkflow(workflowPublicId),
  • Input schema for the 'get-workflow' tool using Zod: requires a positive number for workflowPublicId.
    { workflowPublicId: z.number().positive().describe("The public ID of the workflow 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