generic_call
Executes authenticated calls to any Accurate Online endpoint. First run schema_lookup to get correct field names and types, then pass params for GET or DELETE, and body for POST.
Instructions
Call any Accurate Online endpoint. Always run schema_lookup on the endpoint first so you know the correct field names, required fields, and types. For GET (list/detail) endpoints pass query params in params. For POST (save) endpoints pass the payload in body. For DELETE pass params (usually {'id': ...} or {'number': ...}).
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": {
"endpoint": "<endpoint>"
},
"name": "generic_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body, for POST (save/bulk-save) endpoints | |
| params | No | Query params, for GET/DELETE endpoints | |
| endpoint | Yes | e.g. 'purchase-invoice/save', matches the key from schema_lookup |