execute_service_layer
Executes read-only OData GET requests against the connected SAP Business One Service Layer to retrieve data; use the write tool for PATCH, POST, or DELETE operations.
Instructions
Execute a read-only OData GET against the currently connected SAP Business One Service Layer. Writes go through execute_service_layer_write.
Denied when the connected profile's slAllowedMethods (printed by connect_database) omits GET. Query options are allowed; absolute URLs, Login/Logout and $batch are denied.
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": {
"url": "<url>"
},
"name": "execute_service_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Relative OData endpoint without the configured /b1s/v1/ or /b1s/v2/ root | |
| method | No | Always GET. PATCH, POST and DELETE go through execute_service_layer_write | GET |