Compare entities
compare_entitiesConcrete figures from company filings, bank reports, tax returns, government awards and official registers; each value carries the filing it came from and a citable URL. One metric for several entities on one shared period. Fits 'X versus Y', 'which of these is higher' and 'rank these' questions in a single call. Entities do not share coverage: Kings County has childcare prices from 2017, Autauga County from 2008 — two separate get_facts calls return 2022 and 2008 without flagging that they are different years. This tool picks the most recent year for which EVERY requested entity has a value, and if no such year exists it returns common_year: null and compares nothing rather than guessing. Entities without a value for the shared year come back with status 'no_observation' rather than a neighbouring year. Each result carries its status; an estimated value against a measured one is not like-for-like.
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": {
"entities": "<entities>",
"predicate": "<predicate>"
},
"name": "compare_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | force this year instead of the most recent shared one | |
| entities | Yes | 2-12 names or IDs | |
| predicate | Yes |