GetSqlQuery
Execute ABAP SQL SELECT queries on SAP database tables and CDS views for ad-hoc data retrieval, row counts, and filtered queries via the ADT Data Preview API.
Instructions
[read-only] Execute ABAP SQL SELECT queries on database tables and CDS views via SAP ADT Data Preview API. Use for ad-hoc data retrieval, row counts, and filtered queries.
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_query": "<sql_query>"
},
"name": "GetSqlQuery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql_query | Yes | SQL query to execute | |
| row_number | No | [read-only] Maximum number of rows to return | |
| acknowledge_risk | No | Set to true ONLY after the user has explicitly authorized row extraction from an 'ask'-tier protected table. The approval is logged to stderr for audit. Has no effect on 'deny'-tier tables. |