Skip to main content
Glama
kts982

MCP SAP GUI Server

by kts982

sap_read_list

Read-only

Read classic ABAP report lists as visible text lines when a screen has no table object, including colors, paging, and optional line IDs for focus before F2 or double-click.

Instructions

Read a classic ABAP list (WRITE output of a report) as lines of text.

Use it when a report shows a plain list rather than an ALV grid (program SAPMSSY0, screen 120), and for F4 hit lists in a popup (window_id= 'wnd[1]'). Such a list has no table object: every word is its own label, so sap_get_screen_elements leaves the cells out and reports it under 'lists'. This returns the page as the lines the user sees, with no screenshot needed.

  • colors: rows whose text has a semantic list colour, e.g. 'negative' (red, errors), 'positive' (green), 'total', 'heading'

  • scroll: present when the list is longer than the page; pass scroll_to=position+page_size to read the next page

  • with_ids=true adds the ID of each line's first label, to set the focus on a line (sap_set_focus) before F2 / double-click

  • is_list=false means this screen has no list: use sap_read_table

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
with_idsNo
max_linesNo
scroll_toNo
window_idNownd[0]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true / destructiveHint=false, yet the description still adds real behavioural context: no screenshot is required, the response shape (lines as the user sees them), colour semantics ('negative' = red errors, 'positive' = green, 'total', 'heading'), and the scroll/pagination convention ('pass scroll_to=position+page_size to read the next page'). It stops short of stating limits on max_lines or truncation behaviour, so it is strong but not exhaustive.

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 core purpose and routing rule are front-loaded in the first paragraph, followed by a tight bullet list where each bullet adds a distinct fact (colours, scrolling, IDs, the negative case). No sentence repeats a sibling name or the schema without adding meaning.

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 re-explained; the description instead covers the remaining decision surface — when this tool applies, when it does not, and how to continue paginating. For a read-only 4-parameter tool this is complete enough to call correctly on the first attempt.

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 carry the parameter burden, and it does for three of four: with_ids (adds the first label's ID for setting focus via sap_set_focus), scroll_to (defined operationally as position+page_size for the next page), and window_id (pinned to popup hit lists). max_lines and the default values are never explained, leaving one parameter undocumented in both schema and prose.

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 names a specific verb and resource ('Read a classic ABAP list ... as lines of text') and immediately distinguishes it from the sibling that handles the other case ('a plain list rather than an ALV grid'). It also explains why the resource is special ('every word is its own label, so sap_get_screen_elements leaves the cells out'), so an agent can route correctly 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?

Explicit when-to-use ('when a report shows a plain list rather than an ALV grid', 'for F4 hit lists in a popup (window_id='wnd[1]')') is paired with an explicit when-not plus alternative ('is_list=false means this screen has no list: use sap_read_table'). This is the strongest form of routing guidance.

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