lookup_california_code_section
Look up the VERBATIM text of a California building, residential, fire, plumbing, mechanical, green (CALGreen), energy or existing-building code section, or a section of a California city or county zoning/municipal ordinance, by its section number. Use this whenever the user cites a section number ("CRC R602.10.2.3", "CBC 1004", "§ 17.60.090") or asks what a specific section says. Returns the official text with its citation, edition and a link to the full section. It returns code text only and does not determine whether a specific 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": {
"section": "<section>"
},
"name": "lookup_california_code_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Optional. The code the user named, so a number that exists in several codes returns the right one. An abbreviation or a name: "CBC", "CRC", "CFC", "CMC", "CPC", "CEC", "CEBC", "CALGreen", "CHBC", "California Fire Code". Omit when the user gave no code name. | |
| section | Yes | The section number exactly as cited, without the code name. Examples: "R602.10.2.3", "1004", "507.2", "17.60.090", "11B-206". | |
| code_edition | No | Optional. Which Title 24 cycle to read. California enforces the edition in force when the permit application was submitted, so a project filed in 2024 is enforced under "2022". Defaults to "current" (the 2025 cycle, in force since 2026-01-01). | |
| jurisdiction | No | Optional. A California city or county slug to scope the lookup to its own municipal code — "los-angeles", "san-jose", "marin-county". Omit for statewide Title 24 codes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | The date the codes were read as of (YYYY-MM-DD), or null for the current edition. | |
| query | No | ||
| status | Yes | found: at least one section matched. not_found: nothing matched — do NOT paraphrase a section that was not returned. error: the lookup could not run. | |
| matches | No | ||
| message | No | Guidance when status is not_found or error. | |
| ambiguous | No | True when the number exists in more than one code. Pick by the code the user named and say which one you used; never merge them. | |
| browse_url | No | ||
| historical | No | True when this is NOT the current code. Say so to the user. | |
| applied_question_url | No | Where to send a user whose real question is whether a specific project complies. |