Skip to main content
Glama

inspect_component_tree

Retrieves the nested component hierarchy of an Ignition Perspective view, showing component types, names, child counts, and optional nesting depth for project inspection.

Instructions

Return the component hierarchy of a view.

Args: view_path: View to inspect. project: Project name; defaults to the active project. depth: Maximum nesting depth to return.

Returns: A nested tree of component type, name and child count.

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": {
      "view_path": "<view_path>"
    },
    "name": "inspect_component_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
projectNo
view_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden. It correctly implies a read-only operation ('Return') and describes the return payload as a nested tree of type, name, and child count, which is useful context. It doesn't disclose what happens at the depth limit (truncation? pruning?) or whether the view must be open/loaded, which are the main behavioral unknowns for a tree walk.

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 one-line purpose followed by a compact Args/Returns block. Every line carries information; the docstring formatting is slightly heavier than an inline sentence would be, but there is no wasted wording.

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 inspection tool, the definition covers the purpose, each argument, and the shape of the result. The Returns section overlaps with the existing output schema, so the only real gap is unabbreviated guidance on depth-limit behavior.

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: it explains that project 'defaults to the active project' (far more informative than the schema's null default) and that depth is the 'maximum nesting depth' to return. Only the depth default of 999 and its truncation semantics are left unexplained.

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 first line states a specific verb and resource: 'Return the component hierarchy of a view.' An agent can tell exactly what the tool produces. It doesn't differentiate itself from siblings like check_view_bindings or docs_component, but the resource scope (a view's component tree) is distinct enough.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives for related inspection tasks (e.g., view bindings or component documentation). Usage is only implied by the noun phrase 'view to inspect'.

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