Count records
count_dataCount records in a table with an optional WHERE condition (SELECT COUNT(*)). Returns the record count without reading any data. Change history tables (with the _history suffix) can be counted as well.
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": {
"table": "<table>"
},
"name": "count_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name, e.g. ng_invoice. | |
| conditions | No | Optional WHERE condition (without the WHERE keyword). String values use plain single quotes ('Active'); write dates between # # (e.g. #2026-01-01#). Subqueries are not allowed. Example: ng_amount > 1000 AND ng_status = 'Active' AND ng_datum >= #2026-01-01#. |