Search a town's code
search_codeSearch one town's municipal code (its local ordinances) by keyword and get the matching passages in the code's own words, each with its chapter and section, plus the link to the town's official published code. No key needed, no model call. Leave "town" out to search every town's code at once (needs a connected pass or a key). Read-only.
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": {
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| town | No | The town's id from find_town, e.g. "maplewood-nj". Omit to search all towns (connected pass or key required). | |
| query | Yes | A few keywords for the rule, e.g. "fence height", "backyard chickens", "short-term rental permit". |