Skip to main content
Glama

ui_tree

Generate a serialized snapshot of the active 1C UI tree to inspect form structure, including hidden elements, with configurable profiles and formats.

Instructions

Return a serialized snapshot of the active 1C UI tree.

Default profile is navigation: visible elements, compact fields, no data presentations, no RAG enrichment, and command panels excluded unless requested. include_rag_types defaults to auto: RAG enrichment is enabled for diagnostic, data and full profiles and disabled for navigation profiles. The tree has no depth limit. Use include_hidden=true for hidden pages/elements. Pass parent_name to serialize only the subtree rooted at a specific form element. Use fields=minimal|navigation|diagnostic|data|full (or a comma-separated field list) to control returned node fields without changing traversal.

include_data=true may call 1C ПолучитьПредставлениеДанных() for many nodes; do not enable it casually on large forms. Prefer targeted tools for data: field_value_text for one field, table_rows for tables/dynamic lists, and tabular_document_text/tabular_document_save for reports/tabular documents.

When name, title or type filter is set, the result is a flat objects list instead of a nested tree. For finding one control, prefer search_objects/find_object. format=outline and format=yaml|yml return readable text representations inside a structured tool result; JSON remains the default machine-readable form.

delivery=auto is the default: small results stay inline, but large results above ONEC_MCP_UI_TREE_RESOURCE_AUTO_THRESHOLD_TOKENS (default 50k estimated tokens) are saved as MCP resources. Use delivery=inline to force inline output and delivery=resource to force resource output for large/verbose diagnostics (profile=full, include_hidden=true, include_data=true). Resource responses contain only resource_uri, snapshot_id, summary, metrics and a small preview. Then inspect the saved snapshot with ui_tree_resource_search, ui_tree_resource_get_node, ui_tree_resource_children, or ui_tree_diff instead of loading the whole tree into the agent context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
typeNo
titleNo
fieldsNoauto
formatNojson
compactNo
profileNonavigation
deliveryNoauto
group_modeNoinclude
session_idNodefault-18
parent_nameNo
include_dataNo
rag_snapshotNo
command_panelsNoauto
include_hiddenNo
include_timingsNo
include_rag_typesNoauto
preview_max_nodesNo
include_command_panelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.3

TDQS

A4.9/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 it does so thoroughly: it discloses default profile behavior, RAG auto-enablement logic, absence of depth limits, filter-dependent output shape changes, and side effects such as include_data potentially calling ПолучитьПредставлениеДанных() for many nodes. It also explains the auto/resource delivery behavior and what resource responses contain. This exceeds the transparency typically expected from a tool definition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long, but it earns its length given 19 parameters and complex delivery behavior. It is front-loaded with the core purposeton, then organized into navigable chunks: profiles and filters, targeted alternatives, format/delivery modes, and resource inspection follow-ups. Every section contributes actionable information with no filler.

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 high-complexity tool with no output schema and 19 parameters, the description covers the critical decision points: default profile, when results are flat vs nested, when data enrichment is risky, how delivery thresholds work, and how to inspect resource-backed snapshots. The few unaddressed parameters are minor relative to the operational picture an agent needs.

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. It meaningfully explains profile, fields, include_rag_types, parent_name, include_hidden, include_data, format, and delivery, including default values and consequences. However, several parameters (compact, group_mode, session_id, rag_snapshot, command_panels, include_timings, preview_max_nodes, include_command_panels) receive no explanation, so coverage is not complete.

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?

Opens with a specific verb-resource pair: 'Return a serialized snapshot of the active 1C UI tree.' It then differentiates itself from sibling tools by explicitly pointing to targeted alternatives: field_value_text for one field, table_rows for tables, tabular_document_text/save for tabular documents, and search_objects/find_object for locating a single control. An agent can clearly determine what this tool does and when it is not the right choice.

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

Usage Guidelines5/5

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

Provides explicit when-to-use and when-not-to-use guidance, including 'Prefer targeted tools for data' with named alternatives, and 'For finding one control, prefer search_objects/find_object.' It also warns against enabling include_data casually on large forms and explains when to force resource delivery for large/verbose diagnostics. This is direct usage routing, not vague generalities.

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