Skip to main content
Glama
kts982

MCP SAP GUI Server

by kts982

sap_read_table

Read-only

Read rows from tables on the current SAP screen, auto-detecting ALV grids and TableControls. Retrieve specific columns, paginate large datasets, or get schema-only metadata with columns_only.

Instructions

Read rows from a table on the current screen — ALV grid (report/list output) or TableControl (SM30 maintenance view, customizing screens).

Auto-detects the table type. The response includes a 'table_type' field ('GuiGridView' for ALV or 'GuiTableControl') so you know which type-specific tools to use next (e.g., sap_get_alv_toolbar for ALV, sap_scroll_table_control for TableControl).

Use columns_only=true for schema discovery (returns column metadata only, no data). For a TableControl it also gives each column's cell_type and a cell_id template ({row} = zero-based visible row) for sap_set_batch_fields. Use columns to fetch only specific columns (CSV). Use start_row to paginate through large tables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
columnsNo
max_rowsNo
table_idYes
start_rowNo
columns_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Even though readOnlyHint=true and destructiveHint=false already cover the safety profile, the description adds substantial operational behavior: auto-detection of table type, the table_type field in the response, columns_only=true returning metadata with no data, per-column cell_type and cell_id template for TableControls, and start_row pagination semantics. This goes well beyond what annotations alone provide.

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?

The description runs ~120 words and is dense but every sentence earns its place: purpose, auto-detection behavior, table_type routing, columns_only mode, column filtering, and pagination. It is front-loaded with the core purpose and follows a logical order. It could be tightened slightly, but there is no fluff or repetition of schema content.

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?

With an output schema present and read-only annotations, the description covers most of what an agent needs: table type scope, mode switching, column selection, pagination, and next-step routing. The main completeness gap is the undocumented required table_id (where to get it) and max_rows semantics, which matter for correct invocation on a 5-parameter tool.

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

Parameters3/5

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

With 0% schema description coverage, the description carries the full burden and does explain columns_only (schema discovery, cell_type/cell_id template), columns (CSV selection), and start_row (pagination) meaningfully. However, it never explains the required table_id parameter — where an agent obtains it or what identifies a table — nor does it clarify max_rows behavior. Missing the one required parameter is a significant gap.

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 opens with a specific verb+resource ('Read rows from a table on the current screen') and precisely scopes the target to two UI constructs: ALV grid and TableControl. This clearly distinguishes it from siblings like sap_read_field (single field), sap_read_list (list output), and sap_get_cell_info (individual cell), so an agent can select it correctly without inspecting schemas.

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 explicit context for when to use the tool: any table on the current screen, with the ALV-vs-TableControl distinction spelled out. It also routes the agent to the correct follow-up tools based on the returned table_type (sap_get_alv_toolbar vs sap_scroll_table_control). It stops short of explicitly naming alternatives NOT to use (e.g., sap_read_field), but the scoping is clear enough that exclusion is mostly implied.

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