Skip to main content
Glama

triz_expand_hierarchy

Expands a nested TRIZ hierarchy by substituting a box's declared inner model into its parent through checked interfaces, returning a typed model with fresh box, wire, and flow ID maps.

Instructions

Substitute one box's declared inner model into its parent through its checked input/output interface. Returns a typed model and fresh box, wire and flow id maps. Preserves inner box costs, feasibility, states and transitions, and standalone inner flows. Parent flow occurrences require explicit routes and checked boundary connections; media need explicit mappings. Inner budgets, weights and contradictions require opt-in global-intersection, global-merge and append-renamed policies. Product-identity changes fail closed. Expand nested boxes one at a time before requesting flat behavior, dynamics or resource verdicts. triz_nine_windows reads a selected box's inner model as its subsystem view.

Input Schema

NameRequiredDescriptionDefault
boxYesBox whose inner model is substituted into the parent
mediaNo
modelYes
routesNo
policiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it states what is preserved (inner costs, feasibility, states, transitions, standalone inner flows), what the caller must supply (explicit routes for parent flow occurrences, checked boundary connections, media mappings), what is opt-in (budget/weights/contradictions policies), and the fail-closed behavior on product-identity changes.

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?

The text is front-loaded with the core operation, then layers preservation, requirements, policies and ordering. Every sentence carries distinct information, though several are densely packed with domain jargon that an unfamiliar agent may need to unpack.

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 complex five-parameter mutation tool with no annotations and no output schema, the description covers return value ('a typed model and fresh box, wire and flow id maps'), invariants, required inputs and failure mode. Only the precise shape of routes and the full set of validation failures remain undocumented.

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 only 20% (essentially just `box`), so the description must compensate, and it does explain the roles of `routes` (parent flow occurrences), `media` (explicit mappings) and `policies` (global-intersection, global-merge, append-renamed). It stops short of explaining route structure such as path, occurrence, entry and exit, so the compensation is substantial but incomplete.

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?

The opening sentence gives a precise verb and resource: substitute one box's declared inner model into its parent through its checked input/output interface. It distinguishes itself from triz_nine_windows, which is explicitly described as a reader of the same inner model, and from flat analysis tools it says to call afterward.

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?

The description gives sequencing guidance ('expand nested boxes one at a time before requesting flat behavior, dynamics or resource verdicts') and names triz_nine_windows as the read-only alternative. It does not state explicit preconditions for when this tool should not be used, such as a box lacking an inner model, but the ordering and alternative are clear.

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