Skip to main content
Glama
MCP SAP GUI Server

MCP SAP GUI Server

by kts982

Sap Get Tree Node Children

sap_get_tree_node_children

Retrieves direct children of a SAP GUI tree node for step-by-step navigation of deep trees, and lists root-level events when no node key is provided.

Instructions

Get direct children of a tree node. Much faster than read_tree for step-by-step navigation of deep trees (e.g., SPRO).

Omit node_key or pass empty string for root-level nodes; that answer also lists the tree's events (what the application reacts to). Set expand=true to expand the node first (requires write permission).

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": {
      "tree_id": "<tree_id>"
    },
    "name": "sap_get_tree_node_children"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNo
tree_idYes
node_keyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior4/5

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

With readOnlyHint=false already declared, the description usefully explains the cause: expand=true 'requires write permission', which pre-empts an agent's confusion about why a read-looking call is not read-only. It also discloses an extra behavior not derivable from annotations or schema — that a root-level call additionally returns the tree's events.

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?

Three short paragraphs, front-loaded with the core action and the performance/routing rationale before the edge-case rules. Every sentence conveys a distinct operational fact with no restatement of the name or title.

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?

An output schema exists, so return values need not be spelled out, yet the description still flags the notable root-level exception (events listed). For a 3-parameter navigation tool, the permission caveat on expand and the empty-node_key rule are exactly what an agent needs before calling.

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 carries the burden, and it does for two of three parameters: node_key semantics (omit or empty string for root) and expand semantics (expands the node first, needs write permission). tree_id is left unremarked, presumably because its meaning is self-evident from the name.

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 first sentence gives a precise verb+resource ('Get direct children of a tree node'), and the second explicitly contrasts the scope with a named sibling (read_tree) for step-by-step navigation. An agent can distinguish this from read_tree, expand_tree_node, and select_tree_node without opening any schema.

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?

It names the alternative (read_tree) and the condition that selects this tool instead ('much faster ... for step-by-step navigation of deep trees'), then gives two more concrete conditions: omit node_key for root-level, and set expand=true to expand first. When-to-use and when-not-to-use are both covered.

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