Skip to main content
Glama

Ca Code Section

ca_code_section
Read-onlyIdempotent

Get the FULL TEXT of a section of the California Codes, California state statutes, by citation. "Penal Code 187" is code "PEN", section "187". Returns the statutory text, where it sits in the code, and when it was last amended. Served from a stored copy of the official California legislative code database, with the data date in every answer. Keyless. Also serves the California Constitution: code "CONS" with article and section. Use for "what does California Penal Code 187 say", "text of California Civil Code 1542", or to check a California statute a contract or case relies on.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "PEN",
      "section": "187"
    },
    "name": "ca_code_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesCalifornia code abbreviation, e.g. "PEN" (Penal), "CIV" (Civil), "VEH" (Vehicle), "LAB" (Labor). Call ca_codes to see all 29.
articleNoOnly for code "CONS" (the California Constitution): the article, e.g. "I" or "XIII A", since section numbers repeat in every article. "CONS", article "I", section "3(b)(2)" returns Article I, Section 3.
sectionYesSection number as cited, e.g. "187" or "1542". Subdivisions like "187(a)" are not separate documents, pass the section.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "code": "PEN",
      -    "section": "187"
      -  },
      -  {
      -    "code": "CIV",
      -    "section": "1542"
      -  },
      -  {
      -    "code": "VEH",
      -    "section": "23152"
      -  }
      -]New value: +[
      +  {
      +    "code": "PEN",
      +    "section": "187"
      +  },
      +  {
      +    "article": "I",
      +    "code": "CONS",
      +    "section": "3"
      +  },
      +  {
      +    "code": "CIV",
      +    "section": "1542"
      +  },
      +  {
      +    "code": "VEH",
      +    "section": "23152"
      +  }
      +]
    • addedInput schema / properties / article
      Added value: +{
      +  "description": "Only for code \"CONS\" (the California Constitution): the article, e.g. \"I\" or \"XIII A\", since section numbers repeat in every article. \"CONS\", article \"I\", section \"3(b)(2)\" returns Article I, Section 3.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / section / description
      Previous value: -"Section number as cited, e.g. \"187\" or \"1542\". Subdivisions like \"187(a)\" are not separate documents — pass the section."New value: +"Section number as cited, e.g. \"187\" or \"1542\". Subdivisions like \"187(a)\" are not separate documents, pass the section."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, the description discloses key operational context: the answer comes from a stored copy of the official database, includes the data date, is keyless, and returns statutory text, code placement, and last amendment date. These details materially help an agent trust and frame the response, and none contradict the annotations.

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?

The description is front-loaded with the core action, then citation formatting, return content, provenance, Constitution handling, and use cases. It is dense but every sentence earns its place, with no filler or redundant restatement.

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

Completeness5/5

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

Given the tool's moderate complexity, annotations, and full schema coverage, the description is complete enough to call correctly. It explains the return contents, data freshness, keyless access, and the special Constitution/article case without needing an output schema.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds the citation-to-parameter mapping and clarifies that the California Constitution is served via code "CONS" with an article. That adds useful conceptual meaning beyond the schema's field-level descriptions.

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

Purpose5/5

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

The description uses a specific verb and resource: "Get the FULL TEXT of a section of the California Codes... by citation." It directly resolves the citation ambiguity by mapping "Penal Code 187" to code "PEN" and section "187," and it distinguishes this retrieval tool from the sibling ca_codes catalog tool by focusing on full-text lookup.

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?

The description gives explicit use cases such as "what does California Penal Code 187 say" and checking a statute a contract or case relies on. It does not explicitly name ca_codes as the alternative for browsing code abbreviations in the description text, though the schema points to it, so it falls short of full when-not/alternative guidance.

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.