query_table
Run SQL SELECT queries against SAP tables and return results as a formatted table. Query SAP S/4HANA data directly through the ADT API with configurable row limits.
Instructions
Run a SQL SELECT query against SAP tables and return results as a formatted table
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": {
"sql": "<sql>"
},
"name": "query_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL SELECT statement, e.g. SELECT EBELN, BSART FROM EKKO | |
| maxRows | No | Maximum rows to return (default 20) |