Skip to main content
Glama

GetTableContents

Retrieve ABAP table contents with filtering, pagination, sorting, and batch queries to inspect SAP data in one call.

Instructions

Retrieve contents of an ABAP table with advanced filtering, pagination, and batch query support. Either provide table_name for a single query, or provide queries array for batch mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetNoOptional: Number of rows to skip for pagination (default: 0)
columnsNoOptional: Specific columns to retrieve (default: all columns). Column names are validated against table metadata.
queriesNoOptional: Batch mode - execute multiple queries in one call (max: 10, omit when using table_name). Each query supports all single-query parameters.
max_rowsNoOptional: Maximum number of rows to retrieve (default: 100, max: 500)
order_byNoOptional: Column names for sorting results. Column names are validated against table metadata.
table_nameNoName of the ABAP table (required for single query mode, omit when using queries array)
where_conditionsNoOptional: WHERE conditions for filtering. Simple: {"MATNR": "ABC123", "MTART": "FERT"}. Advanced: {"MATNR": {"eq": "ABC123"}}. Note: ADT Data Preview API only supports equality (=) operator.
include_column_metadataNoOptional: Include column type and description in response (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. The verb 'Retrieve' implies a read-only operation and batch mode is disclosed, but there is no mention of permissions, whether results are capped (schema holds the 500-row/10-query limits), or response behavior. Adequate but thin for a no-annotation tool.

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?

Two tight sentences, front-loaded with the core capability and then the mode-selection rule. No filler, no restatement of the tool name, every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The mode-selection ambiguity is covered and the schema is fully annotated, but there is no output schema and the description never explains what the response looks like (row shape, how batch results are keyed by id, effect of include_column_metadata). For an 8-parameter tool with nested batch objects and no output schema, that is a real gap.

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?

Schema description coverage is 100%, so every parameter is already documented in the schema, including the equality-only constraint on where_conditions and column validation. The description adds only a high-level mention of filtering/pagination/batch and no syntax or format detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Retrieve contents of an ABAP table') and names its distinguishing capabilities (filtering, pagination, batch). The word 'contents' implicitly separates it from metadata-oriented siblings like GetTable, but no sibling is named explicitly, so it stops short of a 5.

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?

Explicitly states the selection rule between its two modes: table_name for a single query, queries array for batch mode. That is clear, actionable context, but there is no guidance on when to prefer this tool over sibling lookup tools such as GetTable or GetStructure, and no exclusions.

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