Call an XML service query
xml_service_requestExecute any e-Business Register XML (SOAP) query that has no dedicated tool by sending operation and JSON body; credentials are added automatically.
Instructions
Call any e-Business Register XML (SOAP) query that has no dedicated tool, e.g. ettevotjaMuudatusedTasuline_v1 (companies changed on a date), kandedMaarused_v1 (entries and rulings for a day), aruandeMyygituluEMTAKjargi_v1 (revenue by activity), detailandmed_v2. Your contract username and password are added automatically. body holds the fields of keha as JSON: arrays repeat an element, objects nest. Field names and required fields are in the per-query docs at https://avaandmed.ariregister.rik.ee/en/open-data-api/introduction-api-services; send them in the order the docs list them. The service rejects a request that leaves out a field it requires, even one with a documented default. The response is the keha element as JSON with all values as text.
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": {
"operation": "<operation>",
"body": "<body>"
},
"name": "xml_service_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Fields of the request `keha`, e.g. {"kuupaev": "2026-11-06", "tulemuste_lk": 1}. | |
| operation | Yes | Query name, e.g. 'ettevotjaMuudatusedTasuline_v1'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes | ||
| operation | Yes |