Skip to main content
Glama

Create macro

create_macro
Destructive

Create a macro: a named sequence of actions an agent runs on a conversation with one click. Call list_agents, list_teams or list_labels first when an action needs an id or a label. visibility global means every agent sees it.

Input Schema

NameRequiredDescriptionDefault
nameYes
actionsYesSteps the macro runs, in order. action_params per action: change_priority → exactly one of low, medium, high, urgent, nil; change_status → exactly one of open, resolved, pending, snoozed; assign_agent → one agent id (list_agents), the string "self" for whoever runs the macro, or "nil" to unassign; assign_team → one team id (list_teams), or the string "nil" to unassign; add_label → label titles (list_labels), one or more; remove_label → label titles, one or more; send_message → the message text (one string); send_email_transcript → one string of comma-separated email addresses; mute_conversation → none; snooze_conversation → none; resolve_conversation → none; send_whatsapp_flow → one object: {flow_id (list_whatsapp_flows, published only), flow_cta (the button label, at most 30 characters), body, and optionally header, footer, initial_screen}; add_private_note → the note text (one string); remove_assigned_team → none.
visibilityYesglobal (everyone) or personal (only the author).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations state destructiveHint=true and readOnlyHint=false, so the agent knows this creates a resource. The description adds value by explaining the visibility semantics ('global means every agent sees it') and the prerequisite lookups for ids/labels. It does not discuss idempotency, side effects beyond creation, or rate limits, but for a creation tool the provided context is solid.

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?

Three short, front-loaded sentences: definition, prerequisite lookups, visibility semantics. No redundancy or filler; every sentence delivers actionable detail.

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?

Given the tool's complexity (nested actions, 14 action types) and lack of output schema, the description covers the critical usage pattern: what a macro is, how to resolve ids, and visibility impact. It could mention how to order actions or any limits, but the schema covers most of that. Overall complete enough for correct invocation.

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 67%, with the actions array carrying a detailed per-action description. The description itself does not add parameter syntax; it only points to helper tools for ids and labels. The schema already documents visibility and action_params thoroughly, so the description adds little new parameter information, but it correctly directs the agent to the right retrieval tools.

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

Purpose4/5

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

The description clearly states the verb and resource (create a macro) and adds a functional definition of what a macro is: a named sequence of actions an agent runs on a conversation with one click. This distinguishes it from siblings like execute_macro or update_macro, though it could more directly contrast with those alternatives.

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

Usage Guidelines4/5

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

The description provides explicit prerequisite guidance: 'Call list_agents, list_teams or list_labels first when an action needs an id or a label.' This tells the agent when to perform preparatory steps. It does not, however, state when to use this tool versus update_macro or create_canned_response, but the action-oriented context of building a sequence is clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources