Skip to main content
Glama

GoCodebook — California Building Codes

list_california_code_documents

Read-onlyIdempotent

List the California codes and local ordinances available for lookup, and what is not covered. Useful before concluding that a code is unavailable, and for finding the exact document or jurisdiction slug that a lookup takes.

Input Schema

NameRequiredDescriptionDefault
jurisdictionNoOptional. A California city or county slug — returns the documents held for that jurisdiction instead of the statewide list.

Output Schema

NameRequiredDescriptionDefault
notesNoCoverage caveats. Read them before telling a user a code is unavailable.
scopeNo
groupsNoDocuments grouped by collection. Statewide: Title 24 first. Jurisdiction: the place's own documents, then those of the jurisdiction that also governs it.
statusYes
messageNo
editionsNo
municipalNoStatewide only: how many local ordinances are held.
browse_urlNo
jurisdictionNo
applied_question_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "applied_question_url": {
      +      "type": "string"
      +    },
      +    "browse_url": {
      +      "type": "string"
      +    },
      +    "editions": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "in_force": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "label",
      +          "in_force"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "groups": {
      +      "description": "Documents grouped by collection. Statewide: Title 24 first. Jurisdiction: the place's own documents, then those of the jurisdiction that also governs it.",
      +      "items": {
      +        "properties": {
      +          "documents": {
      +            "items": {
      +              "properties": {
      +                "edition": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "slug": {
      +                  "type": "string"
      +                },
      +                "title": {
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "title",
      +                "slug"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label",
      +          "documents"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "jurisdiction": {
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "slug": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "slug",
      +        "name"
      +      ],
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "municipal": {
      +      "description": "Statewide only: how many local ordinances are held.",
      +      "properties": {
      +        "document_count": {
      +          "type": "integer"
      +        },
      +        "jurisdiction_count": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "document_count",
      +        "jurisdiction_count"
      +      ],
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "notes": {
      +      "description": "Coverage caveats. Read them before telling a user a code is unavailable.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "scope": {
      +      "enum": [
      +        "statewide",
      +        "jurisdiction"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "not_found",
      +        "empty",
      +        "error"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "applied_question_url": {
      -      "type": "string"
      -    },
      -    "browse_url": {
      -      "type": "string"
      -    },
      -    "editions": {
      -      "items": {
      -        "properties": {
      -          "id": {
      -            "type": "string"
      -          },
      -          "in_force": {
      -            "type": "string"
      -          },
      -          "label": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "label",
      -          "in_force"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "groups": {
      -      "description": "Documents grouped by collection. Statewide: Title 24 first. Jurisdiction: the place's own documents, then those of the jurisdiction that also governs it.",
      -      "items": {
      -        "properties": {
      -          "documents": {
      -            "items": {
      -              "properties": {
      -                "edition": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "slug": {
      -                  "type": "string"
      -                },
      -                "title": {
      -                  "type": "string"
      -                },
      -                "url": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "title",
      -                "slug"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "key": {
      -            "type": "string"
      -          },
      -          "label": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "key",
      -          "label",
      -          "documents"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "jurisdiction": {
      -      "properties": {
      -        "name": {
      -          "type": "string"
      -        },
      -        "slug": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "slug",
      -        "name"
      -      ],
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "message": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "municipal": {
      -      "description": "Statewide only: how many local ordinances are held.",
      -      "properties": {
      -        "document_count": {
      -          "type": "integer"
      -        },
      -        "jurisdiction_count": {
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "document_count",
      -        "jurisdiction_count"
      -      ],
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "notes": {
      -      "description": "Coverage caveats. Read them before telling a user a code is unavailable.",
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "scope": {
      -      "enum": [
      -        "statewide",
      -        "jurisdiction"
      -      ],
      -      "type": "string"
      -    },
      -    "status": {
      -      "enum": [
      -        "ok",
      -        "not_found",
      -        "empty",
      -        "error"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "status"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "applied_question_url": {
      +      "type": "string"
      +    },
      +    "browse_url": {
      +      "type": "string"
      +    },
      +    "editions": {
      +      "items": {
      +        "properties": {
      +          "id": {
      +            "type": "string"
      +          },
      +          "in_force": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "label",
      +          "in_force"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "groups": {
      +      "description": "Documents grouped by collection. Statewide: Title 24 first. Jurisdiction: the place's own documents, then those of the jurisdiction that also governs it.",
      +      "items": {
      +        "properties": {
      +          "documents": {
      +            "items": {
      +              "properties": {
      +                "edition": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "slug": {
      +                  "type": "string"
      +                },
      +                "title": {
      +                  "type": "string"
      +                },
      +                "url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "title",
      +                "slug"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "key": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "key",
      +          "label",
      +          "documents"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "jurisdiction": {
      +      "properties": {
      +        "name": {
      +          "type": "string"
      +        },
      +        "slug": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "slug",
      +        "name"
      +      ],
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "municipal": {
      +      "description": "Statewide only: how many local ordinances are held.",
      +      "properties": {
      +        "document_count": {
      +          "type": "integer"
      +        },
      +        "jurisdiction_count": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "document_count",
      +        "jurisdiction_count"
      +      ],
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "notes": {
      +      "description": "Coverage caveats. Read them before telling a user a code is unavailable.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "scope": {
      +      "enum": [
      +        "statewide",
      +        "jurisdiction"
      +      ],
      +      "type": "string"
      +    },
      +    "status": {
      +      "enum": [
      +        "ok",
      +        "not_found",
      +        "empty",
      +        "error"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured context by advertising that the list discloses what is NOT covered, which is important behavioral knowledge for an agent deciding whether a code is truly unavailable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, and the core purpose is front-loaded before the usage hints. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the description covers both the coverage-gap angle and the jurisdiction-scoping angle. Minor gaps remain (list size or pagination behavior), but nothing critical for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single jurisdiction parameter is fully documented in the schema, so the baseline is 3. The description adds only mild extra value by noting the jurisdiction slug is the same slug a lookup consumes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource ('List the California codes and local ordinances available for lookup') and defines scope by adding what is not covered, which is more precise than a bare catalog description. It does not explicitly name the sibling tools (lookup_california_code_section, search_california_codes), so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear when-to-use context: 'Useful before concluding that a code is unavailable, and for finding the exact document or jurisdiction slug that a lookup takes.' That tells the agent to consult this tool as a discovery step before the lookup/search siblings, but it names no tool explicitly and states no exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources