Skip to main content
Glama
grandMA2 MCP
by drohi-r

find_unused_objects

Identify likely unused sequences, macros, and presets with grounded heuristics so you can clean up grandMA2 shows safely.

Instructions

Find likely unused object candidates using grounded heuristics (SAFE_READ).

Supported types:
  - sequence: not assigned to any hydrated executor
  - macro: not referenced by another macro and not currently active
  - preset: no cue references found via find_preset_usages

Args:
    object_type: One of "sequence", "macro", or "preset".
    max_objects: Max objects to inspect.
    preset_type: Required for object_type="preset".

Returns:
    str: JSON with candidate_unused list and heuristic notes.

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": {
      "object_type": "<object_type>"
    },
    "name": "find_unused_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_objectsNo
object_typeYes
preset_typeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does notable work: it flags the operation as SAFE_READ and repeatedly qualifies results as 'likely' candidates from 'grounded heuristics' rather than definitive proof, which is critical for a deletion-adjacent audit. It also promises heuristic notes in the response. It stops short of describing scan scope, cost on large shows, or how partial results behave when max_objects truncates.

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 verb and safety marker, then cleanly sectioned into supported types, args, and returns. Every line carries information; the only marginal waste is the Returns block, which largely restates what the output schema already conveys.

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 three-parameter read-only audit tool, the definition covers purpose, per-type semantics, argument roles, and result shape, and an output schema exists so return values need not be spelled out. The remaining gap is scope and cost — whether it scans the whole show file and how long that takes — which matters before an agent invokes it repeatedly.

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

Parameters4/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 it does: it enumerates the three valid object_type values (absent from the schema as an enum), explains max_objects as a bound on objects inspected, and adds the conditional rule that preset_type is required when object_type='preset'. It omits any valid values for preset_type and does not mention the default of 25.

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?

States a specific verb and resource ('Find likely unused object candidates') and immediately scopes it with three supported types and the exact heuristic applied to each. An agent can tell this is a cleanup/audit tool for orphaned sequences, macros, and presets, distinct from dependency or usage-lookup tools.

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?

The per-type heuristic definitions imply when the tool is applicable (e.g. use the preset branch only when you want cue-reference analysis, and it names find_preset_usages as the underlying check). However, there is no explicit 'use this when…, use X instead' routing, no statement of when the heuristics are unreliable, and no guidance on choosing max_objects.

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