Skip to main content
Glama
saihgupr

keyboard-maestro-mcp

by saihgupr

km_add_if_variable_contains

Adds an If-Then-Else action to a macro that checks if a variable contains a specified value and executes conditional actions.

Instructions

Add an If-Then-Else action that checks if a variable contains a value.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
macroIdentifierYesMacro name or UID
variableYesVariable name to check
containsValueYesValue to check if variable contains
thenActionsXmlNoOptional: XML actions for true condition. Pass one or more <dict>...</dict> elements concatenated (they get wrapped in <array>). Example: <dict><key>MacroActionType</key><string>Notification</string><key>Title</key><string>Hi</string><key>Text</key><string>Msg</string></dict>
elseActionsXmlNoOptional: XML actions for false condition. Same format as thenActionsXml.
Behavior2/5

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

No annotations are provided, so the description carries full responsibility. It mentions adding an action but omits details about side effects (e.g., whether it overwrites existing actions, error conditions, or required permissions). The description is too minimal to disclose behavioral traits.

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

Conciseness4/5

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

The description is a single concise sentence that directly states the tool's purpose. No words are wasted, though it could be slightly more structured to include usage hints.

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

Completeness2/5

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

Without an output schema or annotations, the description should provide more context about the action's effect, return status, or error handling. It only describes the basic function, leaving gaps for an agent to understand the complete 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?

Schema coverage is 100%, so the input schema already describes all parameters. The description adds no extra meaning beyond what the schema provides, meeting the baseline for high coverage.

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 adds an If-Then-Else action that checks if a variable contains a value. It uses a specific verb ('Add') and resource ('If-Then-Else action'), and distinguishes the condition type (contains) from sibling tools like km_add_if_calculation.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like km_add_if_calculation. The description only states what it does, not the context or prerequisites for use, leaving the agent without decision support.

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/saihgupr/keyboard-maestro-mcp'

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