Skip to main content
Glama
SAP connector for Claude

SAP connector for Claude

read_sap_table

Read rows from any SAP table or DB view with ABAP Open SQL filters, field selection, and pagination to retrieve SAP data for analysis.

Instructions

Read rows of any SAP table or DB view, like SE16. FIRST CHOICE for SAP data. For totals use aggregate_sap_table; unsure of field names: describe_sap_table. where: ABAP Open SQL, not OData: 'quoted' literals, internal formats (leading zeros, dates '20250401'), e.g. "KAPPL = 'M' AND KSCHL LIKE 'Z%'". fields: comma list (keys always included); name them, wide tables get large. top max 1000; page with skip (answer gives next_skip). drop_empty omits blank fields.

Input Schema

NameRequiredDescriptionDefault
topNo
skipNo
tableYes
whereNo
fieldsNo
drop_emptyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.7

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the 1000-row cap, the skip-based pagination and that the answer returns next_skip, that keys are always included, that wide tables return large payloads, and what drop_empty does. It does not mention authorization requirements or the cost/latency of wide reads, which keeps it below a 5.

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?

Front-loaded with the purpose and routing advice, then dense parameter guidance with no filler. The telegraphic style ('where: ABAP Open SQL', 'top max 1000') is efficient for an expert but slightly clipped for readability.

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 explained, and the description still mentions the next_skip field for pagination. For a six-parameter read tool with no annotations, it covers dialect, formats, limits, and pagination – everything needed to call it correctly.

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?

Schema description coverage is 0%, so the description must compensate, and it does: it specifies the where clause dialect (ABAP Open SQL, not OData), quoting rules, internal date and leading-zero formats with a worked example, the fields comma-list semantics with implicit key inclusion, top's maximum, and skip/drop_empty behavior. Only the 'table' parameter is left implicit, which is self-evident.

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?

States a specific verb and resource ('Read rows of any SAP table or DB view') with an SE16 analogy, then explicitly claims primacy as 'FIRST CHOICE for SAP data', which separates it from the many sibling SAP tools. An agent can identify the tool's role without opening the 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?

Names both alternatives and the exact conditions that route to them: totals go to aggregate_sap_table, unknown field names go to describe_sap_table. This is explicit when-to-use and when-to-use-something-else guidance rather than implied usage.

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