Rank areas inside a container by a metric
rank_areasRank the places at one rung inside a container (a local authority, county or
country) by a published metric, with a minimum-sample filter and an optional
recency filter. Use it for "which districts in Hackney have the highest rent".
`within_code` is the container's ONS/GSS code (resolve_place gives it).
At most 50 rows per page (`limit`), `next_cursor` for more. Places with n
below `min_n` (default 10) are dropped and the count is stated in
`basis.decision`. Gross yield is not published for Scotland or conurbations
(covered=false). Region is not a rung yet. Figures are the published 12-month
values; check each row's `period` and `n`.
Do NOT use it to value anything. Free; covered=false or an upstream failure
is not charged. Free.
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": {
"within_type": "<within_type>",
"within_code": "<within_code>",
"rung": "<rung>",
"metric": "<metric>"
},
"name": "rank_areas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rung | Yes | ||
| limit | No | ||
| min_n | No | ||
| cursor | No | ||
| metric | Yes | ||
| direction | No | desc | |
| within_code | Yes | ||
| within_type | Yes | ||
| max_age_months | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||