Figures for a city
get_cityOne city's figures, each with source, period, geographic level and licence; daylight; the take-home pay model; whether each person in a household may live and work there, with the rules checked; links to sources we may not copy, and Borgo's generic quality-of-life index with its fixed weights. Compact by default (figures with a value, long series counted); pass metrics for a few figures, detail "full" for everything.
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": {
"city": "<city>"
},
"name": "get_city"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City id or name | |
| detail | No | "summary" (default) or "full" | |
| rights | No | Optional: each person's rights to live and work that are not citizenship, in the same order as passports, e.g. [[{kind:'permanent',where:'DE'}]] | |
| metrics | No | Only these metric ids, e.g. ['rent_1bed','pm25']; list_metrics_and_sources kind "metrics" lists them | |
| passports | No | Optional: each person's passports, e.g. [['US']] or [['IT'],['US','IE']]: who may live and work there |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ||
| note | Yes | ||
| detail | Yes | ||
| rights | Yes | ||
| figures | Yes | ||
| reportVersion | Yes | The report's shape version (now 2.0) |