search_california_codes
Search California building codes (Title 24), state housing law and California city and county zoning/municipal codes by TOPIC, when the user does not already have a section number — e.g. "minimum attic access opening", "ADU setbacks in San Jose". Requires the user's GoCodebook account and uses 1 credit per search (also when nothing is found). If the user already cites a section number, use lookup_california_code_section instead — it is free. Returns ranked excerpts with citations and links. It does NOT decide whether a project complies.
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_california_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What to find, in plain words. Up to 300 characters. | |
| sources | No | Optional. Limit to federal law, state codes, or local ordinances. | |
| code_edition | No | Optional. Which Title 24 cycle to search; a permit filed in 2024 is enforced under "2022". Defaults to "current". | |
| jurisdiction | No | Optional. A California city or county slug ("san-jose", "marin-county") to search that place's own code together with the state codes. Omit for statewide. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | The search page's own notice about this query (a missing section, a zone code in the wrong city, a code the library does not hold, an address). Tell the user what it says. | |
| as_of | No | ||
| query | No | ||
| status | Yes | found / no_results: the search ran and 1 credit was charged (a search with no results still costs a credit). signin_required: the user must connect their GoCodebook account. credits_required: the account has no search credits left; plans_url is an informational page about GoCodebook plans. rate_limited / error: nothing ran and nothing was charged. | |
| message | No | ||
| results | No | Ranked best-first. Each excerpt is a short passage, never the whole section. | |
| plans_url | No | ||
| historical | No | ||
| section_ref | No | ||
| credits_charged | No | ||
| applied_question_url | No |