Skip to main content
Glama
ampcome-mcps

Shortcut MCP Server

by ampcome-mcps

create-story

Create new Shortcut stories with required name and team or workflow specifications to organize project tasks.

Instructions

Create a new Shortcut story. Name is required, and either a Team or Workflow must be specified:

  • If only Team is specified, we will use the default workflow for that team.

  • If Workflow is specified, it will be used regardless of Team. The story will be added to the default state for the workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the story. Required.
descriptionNoThe description of the story
typeNoThe type of the storyfeature
ownerNoThe user id of the owner of the story
epicNoThe epic id of the epic the story belongs to
iterationNoThe iteration id of the iteration the story belongs to
teamNoThe team ID or mention name of the team the story belongs to. Required unless a workflow is specified.
workflowNoThe workflow ID to add the story to. Required unless a team is specified.

Implementation Reference

  • Registration of the 'create-story' MCP tool, including input schema and reference to the handler method.
    		server.tool(
    			"create-story",
    			`Create a new Shortcut story. 
    Name is required, and either a Team or Workflow must be specified:
    - If only Team is specified, we will use the default workflow for that team.
    - If Workflow is specified, it will be used regardless of Team.
    The story will be added to the default state for the workflow.
    `,
    			{
    				name: z.string().min(1).max(512).describe("The name of the story. Required."),
    				description: z.string().max(10_000).optional().describe("The description of the story"),
    				type: z
    					.enum(["feature", "bug", "chore"])
    					.default("feature")
    					.describe("The type of the story"),
    				owner: z.string().optional().describe("The user id of the owner of the story"),
    				epic: z.number().optional().describe("The epic id of the epic the story belongs to"),
    				iteration: z
    					.number()
    					.optional()
    					.describe("The iteration id of the iteration the story belongs to"),
    				team: z
    					.string()
    					.optional()
    					.describe(
    						"The team ID or mention name of the team the story belongs to. Required unless a workflow is specified.",
    					),
    				workflow: z
    					.number()
    					.optional()
    					.describe("The workflow ID to add the story to. Required unless a team is specified."),
    			},
    			async ({ name, description, type, owner, epic, iteration, team, workflow }) =>
    				await tools.createStory({
    					name,
    					description,
    					type,
    					owner,
    					epic,
    					iteration,
    					team,
    					workflow,
    				}),
    		);
  • Zod input schema defining parameters for the 'create-story' tool.
    {
    	name: z.string().min(1).max(512).describe("The name of the story. Required."),
    	description: z.string().max(10_000).optional().describe("The description of the story"),
    	type: z
    		.enum(["feature", "bug", "chore"])
    		.default("feature")
    		.describe("The type of the story"),
    	owner: z.string().optional().describe("The user id of the owner of the story"),
    	epic: z.number().optional().describe("The epic id of the epic the story belongs to"),
    	iteration: z
    		.number()
    		.optional()
    		.describe("The iteration id of the iteration the story belongs to"),
    	team: z
    		.string()
    		.optional()
    		.describe(
    			"The team ID or mention name of the team the story belongs to. Required unless a workflow is specified.",
    		),
    	workflow: z
    		.number()
    		.optional()
    		.describe("The workflow ID to add the story to. Required unless a team is specified."),
    },
  • Handler function implementing the logic to create a new story in Shortcut, resolving team/workflow and calling the client.createStory.
    async createStory({
    	name,
    	description,
    	type,
    	owner,
    	epic,
    	iteration,
    	team,
    	workflow,
    }: {
    	name: string;
    	description?: string;
    	type: "feature" | "bug" | "chore";
    	owner?: string;
    	epic?: number;
    	iteration?: number;
    	team?: string;
    	workflow?: number;
    }) {
    	if (!workflow && !team) throw new Error("Team or Workflow has to be specified");
    
    	if (!workflow && team) {
    		const fullTeam = await this.client.getTeam(team);
    		workflow = fullTeam?.workflow_ids?.[0];
    	}
    
    	if (!workflow) throw new Error("Failed to find workflow for team");
    
    	const fullWorkflow = await this.client.getWorkflow(workflow);
    	if (!fullWorkflow) throw new Error("Failed to find workflow");
    
    	const story = await this.client.createStory({
    		name,
    		description,
    		story_type: type,
    		owner_ids: owner ? [owner] : [],
    		epic_id: epic,
    		iteration_id: iteration,
    		group_id: team,
    		workflow_state_id: fullWorkflow.default_state_id,
    	});
    
    	return this.toResult(`Created story: ${story.id}`);
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly indicates this is a creation/mutation operation and describes the default state behavior ('The story will be added to the default state for the workflow'), which is valuable context. However, it doesn't mention permission requirements, rate limits, or what the response looks like, leaving some behavioral aspects unclear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly front-loaded with the core purpose, followed by essential usage rules. Every sentence earns its place with no wasted words. The bullet points efficiently clarify parameter relationships without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a creation tool with no annotations and no output schema, the description does well by explaining the core creation logic and parameter relationships. However, it could be more complete by mentioning what the tool returns (e.g., the created story object) or any side effects beyond the stated default state behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema already documents all 8 parameters thoroughly. The description adds some value by explaining the conditional logic between 'team' and 'workflow' parameters and clarifying the default workflow behavior, but doesn't provide additional semantic context beyond what's already in the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Create a new Shortcut story') and resource ('story'), distinguishing it from sibling tools like 'create-epic' or 'create-iteration'. It provides a complete verb+resource+scope statement that leaves no ambiguity about what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('Create a new Shortcut story') and provides clear conditional logic for parameter usage ('Name is required, and either a Team or Workflow must be specified'). It distinguishes this from update operations and other creation tools by focusing specifically on story creation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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