Skip to main content
Glama
grandMA2 MCP
by drohi-r

validate_preset_references

Scan a sequence's cues for references to presets missing from the pool and cross-check them read-only. Returns broken references that would cause silent failures during playback.

Instructions

Scan a sequence's cues for references to presets that no longer exist in the pool.

Samples up to `sample_cues` cues from the sequence, inspects each for preset
references, and cross-checks against the current preset pool. Returns a list
of broken references that would cause silent failures during playback.

Safe to run before any performance. Read-only — no console side effects.

Args:
    sequence_id: The sequence to validate.
    sample_cues: Number of cues to sample (default 5). Use 0 for all cues.

Returns JSON with:
- sequence_id: int
- cues_checked: int
- broken_references: list of {cue_id, preset_type, preset_id, detail}
- valid_references: int count
- status: "PASS" or "FAIL"

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": {
      "sequence_id": "<sequence_id>"
    },
    "name": "validate_preset_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
sample_cuesNo
sequence_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it discloses read-only behavior, absence of console side effects, and the sampling strategy (samples up to sample_cues cues rather than exhaustively scanning). It does not mention cost/latency for large sequences or how partial sampling affects confidence.

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 core purpose, then mechanism, then safety, then params. The "Returns JSON with" block largely restates the output schema, which is mildly redundant, but nothing else wastes space.

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

Completeness5/5

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

For a two-parameter read-only validator, everything needed to invoke it correctly is present: purpose, sampling behavior, safety, and parameter semantics. Return values are additionally summarized even though an output schema exists.

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 coverage is 0%, so the description must compensate and does: sequence_id is identified as the sequence under test, and sample_cues gets a non-obvious semantic (default 5, 0 means all cues) that the bare integer schema cannot convey.

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?

Specific verb and resource: scanning a sequence's cues for preset references that no longer exist, returning broken references. The scope (existing-but-broken references in a sequence) is clearly distinguishable from neighbors like find_preset_usages or assert_preset_exists, though no sibling is named explicitly.

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 a clear use context ("Safe to run before any performance") and a per-parameter usage rule ("Use 0 for all cues"). It does not name alternatives or state when not to use it, so it stops short of full routing guidance.

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