Skip to main content
Glama
grandMA2 MCP
by drohi-r

trace_attribute_lineage

Trace likely sources of an attribute's current value by combining live snapshot context with cue text scans, helping debug why a value appears and where it may originate.

Instructions

Trace likely sources of an attribute's current value (SAFE_READ).

This is a best-effort lineage tool for debugging "why is this here?"
scenarios. It combines live snapshot context with cue text scans to find
candidate sequence/cue sources mentioning the attribute and, optionally,
the target fixture.

Args:
    attribute: Attribute name to search for (e.g. "Dimmer", "ColorRGB1").
    fixture_id: Optional fixture ID to narrow the lineage search.
    sequence_id: Optional sequence to inspect directly.
    max_sequences: Max sequences to inspect when sequence_id is omitted.
    max_cues_per_sequence: Max cues per sequence to inspect.

Returns:
    str: JSON with live_context, candidate_sources, inspected_sequences, summary.

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": {
      "attribute": "<attribute>"
    },
    "name": "trace_attribute_lineage"
  }
}

Input Schema

NameRequiredDescriptionDefault
attributeYes
fixture_idNo
sequence_idNo
max_sequencesNo
max_cues_per_sequenceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 burden and does so reasonably: it declares read-only intent (SAFE_READ), discloses that results are heuristic ('likely', 'candidate sources', 'best-effort'), and explains the two data sources combined (live snapshot context plus cue text scans). It does not address cost/runtime implications of scanning many sequences beyond exposing the two caps, nor any permission requirements.

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?

Purpose is front-loaded in the first sentence, followed by a scenario sentence and structured Args/Returns blocks. The Args list partly restates parameter names, but that is justified given 0% schema coverage. No filler sentences.

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, read-only analysis tool with an output schema already present, the definition covers intent, behavior, parameter meaning, and a summary of return keys, which is enough for correct invocation. Minor gaps remain around what 'live snapshot context' requires (e.g. an attached console) and how candidate confidence should be interpreted.

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 description coverage is 0%, so the description must compensate, and it does: all five parameters are explained in the Args block, including concrete attribute examples ('Dimmer', 'ColorRGB1'), the narrowing role of fixture_id, the direct-inspection role of sequence_id, and the conditional scope of max_sequences. Explanations are brief and omit value formats or valid ranges, so it stops short of a 5.

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 opens with a specific verb+resource, 'Trace likely sources of an attribute's current value', and tags it SAFE_READ, so the agent immediately knows this is a read-only investigative tool rather than a mutation. The 'best-effort lineage / why is this here?' framing sharpens the intent. It doesn't explicitly name a sibling, but the read-vs-write distinction against set_attribute is obvious from the verb and the SAFE_READ marker.

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?

It states the scenario it serves (debugging why an attribute holds its current value) and explains the parameter interplay that governs usage, notably that max_sequences applies only when sequence_id is omitted. What's missing is explicit when-not guidance, e.g. that it is heuristic and unsuitable for authoritative dependency resolution, or when to prefer a direct sequence inspection.

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