Skip to main content
Glama
m0rvayne

mcp-osascript

run_shortcut

Run an Apple Shortcut by name or list all shortcuts, with optional text input passed via a temporary file.

Instructions

List the user's Apple Shortcuts, or run one by name. Optional text input is written to a temporary file and passed to the shortcut as its input. A shortcut that waits for user interaction will block until it times out (30s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoShortcut name (required for run).
inputNoOptional text to pass to the shortcut as its input (staged to a temporary file, max 100000 characters).
actionYesAction to perform.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.3

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that input is staged to a temporary file and that shortcuts waiting for user interaction will block with a 30-second timeout. These are non-obvious behaviors that are crucial for the agent to anticipate. However, it does not mention potential side effects of running arbitrary shortcuts (e.g., system changes) or error handling, but the disclosed behaviors are valuable and go beyond the schema.

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 two concise sentences that are front-loaded with the primary purpose. It packs essential behavioral details (temp file, timeout) without any fluff. Every sentence earns its place, and the structure is easily scannable.

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 tool with two actions (list/run) and input handling, the description covers the core functionality, input staging, and blocking behavior. There is no output schema, so return values are not explicitly described, but that is not required. It lacks detail on error conditions or permission requirements, but those are not critical for basic invocation. Overall, it provides sufficient context for correct usage.

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?

Schema description coverage is 100% for all three parameters, and the schema already explains the purpose of 'name' (required for run) and 'input' (staged to temp file). The description reiterates this info without adding new meaning. Since the schema carries the full weight, a baseline score of 3 is appropriate.

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 tool's dual function: listing Apple Shortcuts and running one by name. It specifies the exact resource (Apple Shortcuts) and distinguishes itself from siblings like open_app and run_osascript by naming the specific domain. The verb 'list' and 'run' are concrete and unambiguous, making the purpose immediately obvious.

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

Usage Guidelines3/5

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

The description implies the use case (interacting with Apple Shortcuts) but does not explicitly mention when to choose this over alternatives. Siblings like run_osascript could perform script execution, but the description does not state any exclusion criteria or comparisons. The guidance is implicit rather than explicit, so it scores a 3.

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