Skip to main content
Glama

Ca Codes

ca_codes
Read-onlyIdempotent

List the 29 California codes with their subjects, Penal Code is PEN, Vehicle Code is VEH, Labor Code is LAB, and so on. Keyless. Use when you know the subject area but not which code governs it, before calling ca_code_section.

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": {},
    "name": "ca_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
subjectNoOptional subject to filter by, e.g. "divorce", "wages", "DUI".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds 'Keyless', which tells the agent no auth is required, but it does not describe the shape of the returned list beyond the abbreviation mapping.

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

Conciseness4/5

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

One compact sentence with the purpose front-loaded and the usage rule trailing; the abbreviation list is slightly verbose but earns its place by telling the agent what identifiers it will see.

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?

For a simple keyless list tool with full schema coverage and annotations covering safety, the description supplies purpose, usage, and sequencing. Only the return-value shape is left implicit, which is minor given the tool's simplicity.

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 coverage is 100% and the single optional 'subject' parameter is fully documented in the schema with examples. The description only implies subject-based filtering via 'with their subjects' and adds no syntax or matching-behavior detail beyond the schema.

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?

States a specific verb and resource ('List the 29 California codes with their subjects') and even enumerates the code abbreviations (PEN, VEH, LAB), so an agent knows exactly what comes back and can distinguish it from ca_code_section.

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

Usage Guidelines5/5

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

Explicitly names the condition for use ('when you know the subject area but not which code governs it') and the sequencing relative to the sibling ('before calling ca_code_section'), leaving nothing to inference.

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.