Count By Field
count_by_fieldGet taxonomic/geographic specimen counts grouped by a field (top values + counts) across iDigBio. Optionally scope the counts with taxonomy/locality filters. Keyless.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"field": "country"
},
"name": "count_by_field"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field to group by: one of country, stateprovince, family, genus, institutioncode, basisofrecord. | |
| genus | No | Optional filter to scope the counts. | |
| family | No | Optional filter to scope the counts. | |
| country | No | Optional filter to scope the counts. | |
| top_count | No | Number of top buckets to return (default 10, max 25). | |
| scientific_name | No | Optional filter to scope the counts. |