Skip to main content
Glama
kts982

MCP SAP GUI Server

by kts982

sap_get_screen_elements

Read-only

Discover all UI elements on an SAP GUI screen. Use type filters and depth settings to efficiently locate field IDs and interactive controls.

Instructions

Discover all elements on the current SAP screen.

Useful for finding field IDs when working with a new screen.

Use type_filter and changeable_only to reduce response size on complex screens (e.g. type_filter="GuiTextField,GuiCTextField" to find only input fields).

max_depth controls how deep to recurse into containers (default 2). Use max_depth=1 for a quick overview, max_depth=3+ for deeply nested layouts (splitter containers, tab strips with sub-containers).

Pass container_id='wnd[0]/mbar' to discover the menu bar structure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_idNownd[0]/usr
max_depthNo
type_filterNo
changeable_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations indicate readOnlyHint=true and destructiveHint=false, so no contradiction. The description adds behavioral context beyond annotations: it explains recursion behavior via max_depth, filtering via type_filter, and special value container_id for menu bar. This provides valuable operational insight.

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?

Description is six sentences, each serving a clear purpose: main action, use case, parameter guidance for three parameters, and a special example. Front-loaded with the main purpose, it is well-structured and concise.

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?

Given the presence of an output schema (not shown but indicated), the description does not need to detail return values. It covers purpose, usage context, and parameter details comprehensively. A minor gap: no mention of error handling or performance considerations, but overall complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides 4 parameters with defaults but no descriptions. The description compensates fully: it explains type_filter (comma-separated class names), changeable_only (boolean), max_depth (integer, with example values and effect), and container_id (default wnd[0]/usr, specific path for menu bar). This adds significant meaning beyond the schema.

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 description clearly states 'Discover all elements on the current SAP screen,' which is a specific verb+resource. It distinguishes from sibling tools like sap_read_field or sap_press_button, which have different purposes.

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 concrete guidance on when to use the tool: 'Useful for finding field IDs when working with a new screen.' It also explains how to reduce response size with type_filter and changeable_only, and adjust max_depth for nested layouts. However, it does not explicitly state when not to use it or mention alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kts982/mcp-sap-gui'

If you have feedback or need assistance with the MCP directory API, please join our Discord server