Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_table_info

Retrieve field definitions and structure for SAP DDIC tables or structures (e.g., EKKO, MARA, BSEG), with automatic fallback between transparent tables and structures.

Instructions

Get structure and field definitions of a SAP DDIC table or structure (e.g. EKKO, MARA, BSEG). Works for both transparent tables (TABL/TRANSP) and structures (TABL/DS) - falls back automatically.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tableName": "<tableName>"
    },
    "name": "get_table_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNameYesTable or structure name, e.g. EKKO

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a real behavioral trait beyond the schema: the automatic fallback across TABL/TRANSP and TABL/DS. However, it says nothing about failure behavior for a nonexistent table name, permissions/auth needs, or the granularity of the returned definition, which matter for a metadata tool with zero annotation coverage.

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 sentences, both front-loaded with the essential information: what is returned and what input shapes are accepted. No filler, no restatement of the tool name, and the fallback caveat earns its place by removing a decision the agent would otherwise have to make.

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?

For a one-parameter read tool with no output schema, the description covers purpose, scope of accepted inputs, and the table-vs-structure fallback. It stops short of describing what the returned field definition contains (data types, lengths, key flags) or error behavior, but those are minor gaps at this complexity level.

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 coverage is 100% for the single required parameter, so the schema already documents tableName. The description adds value by supplying concrete real-world naming examples (EKKO, MARA, BSEG) and by clarifying that the parameter accepts either a table or a structure name, which is not stated in the schema.

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: 'Get structure and field definitions of a SAP DDIC table or structure', with concrete examples (EKKO, MARA, BSEG). It is clearly a read of DDIC metadata and distinguishable from mutation siblings like create_table or patch_table, though it does not differentiate itself from the closely related get_object_info.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose (call it when you need the field layout of a table or structure), and the second sentence tells the agent it need not know whether the object is a transparent table or a structure. There is no explicit when-not guidance and no named alternative such as get_object_info for other object types.

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