Count Records
count_recordsCount contacts, organizations, or deals by field values, most common first, with optional filters to show how a workspace divides by audience, fit, stage, or industry.
Instructions
Count contacts, organizations or deals by one field's values, most common first.
Call it to see how a workspace divides without walking it: how many contacts per
audience or email status, how many organizations per fit, how many open deals per
stage. It takes the same filter as the list tools, so it also answers "of the
strong-fit companies, how many per industry". Deals count open ones only, unless the
filter names stage or outcome. To read the records behind a value, use the list tool
with a filter on it.
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": {
"entity": "<entity>",
"field": "<field>"
},
"name": "count_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | The field path to count by (list_fields lists them). Not a timestamp. | |
| limit | No | How many values to return (default 25, at most 100). | |
| entity | Yes | What to count. | |
| filter | No | Rows to keep, as {"field": path, "op": op, "value": v}, or {"and": [...]} / {"or": [...]} of those. The server instructions list the operators for each field type; list_fields lists the paths. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||