Skip to main content
Glama
grandMA2 MCP
by drohi-r

if_filter

Apply a conditional filter to the current grandMA2 selection or command context by active state, fixture ID, or attribute such as Pan.

Instructions

Apply an If filter to the current selection or command context.

Args:
    filter_type: "active" (bare 'if'), "fixture" (specific fixture), or "attribute"
    fixture_id: Fixture ID (required for "fixture" and "attribute")
    attribute_name: Attribute name (required for "attribute"; e.g. "Pan")

Returns:
    str: JSON result with command sent

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": {
      "filter_type": "<filter_type>"
    },
    "name": "if_filter"
  }
}

Input Schema

NameRequiredDescriptionDefault
fixture_idNo
filter_typeYes
attribute_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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; it does usefully reveal that the tool emits a command and returns it as JSON, and that fixture/attribute modes are gated on specific arguments. It never says what applying a filter does to existing filter state (overwrite, stack, or no-op), whether it is reversible, or whether a fixture must exist first.

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-loaded with the one-line purpose, then a compact Args/Returns block with no filler; each line adds information. The "Returns: str: JSON result with command sent" line is slightly redundant given an output schema exists.

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

Completeness3/5

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

For a 3-parameter, no-annotation, mutation-adjacent tool the definition covers argument mapping well and return values need not be explained given an output schema. It is still thin on side effects and on the interplay with the current selection or existing filter, which is exactly what an agent needs before invoking it.

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

Parameters2/5

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

Strong on the values: it names the three filter_type modes, states which arguments are required for which mode, and gives a concrete attribute example ("Pan") — all meaning the 0%-coverage schema does not provide. It omits what "active" resolves to and what a bare 'if' does to the current selection, so the mode semantics remain partly ambiguous.

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: "Apply an If filter to the current selection or command context." The object of the verb is domain jargon ("If filter") and it is not distinguished from siblings such as get_filter_state or create_filter_library, but an agent in this domain can still tell it configures a filter rather than creating or reading a library.

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?

Usage is only implied through the conditional argument rules ("fixture_id required for 'fixture' and 'attribute'"), which tells the agent how to pick a mode but not when this tool is preferred over a state-reading or library-creating sibling. No when-not guidance and no mention of prerequisites such as an active selection.

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