telys_count
Count live rows in a collection, optionally filtered by a single-key equality condition. Retrieve post-tombstone cardinality to verify current data.
Instructions
Return the live row count (post-tombstone) for a collection — cardinality only, optionally where-scoped. Siblings: telys_stats for aggregate stats (partition key, live id count, runtime index counters); telys_ids to enumerate the ids themselves. Required: collection — the name of an existing collection in the active store; the call fails when it does not exist (write first via telys_add or telys_create_collection). Optional: where — a single-key equality filter (one key only); more than one key fails.
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": {
"collection": "<collection>"
},
"name": "telys_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| where | No | optional single-key equality filter, e.g. scope=project:acme (one key only) | |
| collection | Yes | name of an existing collection in the active store |