Skip to main content
Glama
grandMA2 MCP
by drohi-r

generate_ma2_macro

Builds grandMA2 macros from plain-English intent, returning XML, lint, and expert review; optionally stores to a pool slot only with destructive-action confirmation.

Instructions

Generate an MA2 macro from natural-language intent (SAFE_READ when store=False).

Returns ``body_xml`` + lint + expert review. When ``store=True``, the tool
requires ``confirm_destructive=True`` AND ``pool_id``; in Path A the store
branch returns blocked / deferred-to-Path-B rather than mutating the pool.

Args:
    intent: Plain-English description of the macro to build.
    scope_hints: Optional dict of routing hints, e.g. ``{"executor": "1.1.1"}``.
    store: When True, store the generated macro to the macro pool.
    pool_id: Target pool slot (required if ``store=True``).
    confirm_destructive: Required if ``store=True`` (the store path is destructive).

Returns:
    JSON envelope:
    ``{intent, body_xml, line_count, validation, lint, expert_review,
    stored_as, blocked}``.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "intent": "<intent>"
    },
    "name": "generate_ma2_macro"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeNo
intentYes
pool_idNo
scope_hintsNo
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does well on the important part: it names the destructive gate (confirm_destructive), the required companion parameter (pool_id), and that the Path A store branch returns blocked/deferred rather than mutating the pool. However, 'Path A' versus 'Path B' is never defined, so the agent cannot tell which environment it is in or when storing actually succeeds.

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?

Front-loads the core purpose and mode in the first line, then uses clean labeled sections. The Args block earns its place given zero schema coverage, but the Returns block largely restates an output schema that already exists, making it the weakest part of an otherwise tight definition.

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 five-parameter tool with a mutation branch, no annotations and no schema descriptions, the definition covers the safety gate, parameter conditions, and return envelope fields well. The unexplained Path A/Path B framing is the remaining hole an agent would need to resolve before invoking the destructive branch with confidence.

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

Parameters5/5

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

Schema description coverage is 0%, so the description is the only source of parameter meaning, and it documents all five: intent, scope_hints with a concrete example ({"executor": "1.1.1"}), store, the conditional requirement on pool_id, and confirm_destructive. The conditional dependencies between store, pool_id and confirm_destructive are exactly the semantics an agent needs and the schema does not supply.

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?

States a specific verb and resource ('Generate an MA2 macro from natural-language intent') and adds the key mode distinction that the default is SAFE_READ. It is concrete enough to separate from generate_song_macro_pack, but it never explicitly contrasts itself with siblings like lint_macro or run_macro, keeping it short of a 5.

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?

Gives clear conditional guidance: default store=False is a safe read, while store=True requires confirm_destructive=True and pool_id, and in Path A the store branch is blocked rather than mutating. What is missing is any guidance on when to pick this over sibling generators or downstream tools (lint_macro, run_macro).

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

Deploy Server

Other Tools