Skip to main content
Glama

AI law, by the date each provision starts to apply

Get one AI-law provision by record id

get_ai_rule
Read-only

Everything this register holds for one provision: the short title, the jurisdiction, the instrument, the section, who it applies to, the date in the source's own words and as an ISO day where it states one, what it amends, what supersedes it, the page the value was read from and a verbatim quote of the sentence that states the date. Record ids look like "section-22757-3-1-california-ab-853" and appear in every other tool's results.

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

Input Schema

NameRequiredDescriptionDefault
record_idYesThe record id, e.g. "section-22757-3-1-california-ab-853".

Output Schema

NameRequiredDescriptionDefault
registerNo
provisionYes

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, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the record is a provenance-carrying artifact (source page, verbatim quote, date in the source's own words plus a normalized ISO day), which tells the agent to expect citation-grade data. It does not say what happens for an unknown id, which is the main remaining gap.

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?

Two sentences, front-loaded with the scope statement before the field inventory and the id hint. The middle enumeration is long and partly duplicates the output schema, but every listed item is a real field of the record rather than filler.

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 one-parameter lookup with an output schema and full annotation coverage, this is nearly complete: purpose, id format, id provenance and record contents are all stated. The field-by-field enumeration is somewhat redundant given the output schema, and the not-found/error behavior is unaddressed.

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% and the schema already gives an example id, so the baseline would be 3. The description goes further by explaining where the value comes from — 'appear in every other tool's results' — which the schema does not say and which is the practically useful fact for an agent constructing the call.

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 opens with a specific scope statement — 'Everything this register holds for one provision' — and the title pins the retrieval key ('by record id'). The line 'appear in every other tool's results' implicitly positions this as the single-record drill-down versus the list_* siblings, so an agent can separate it from them without opening a schema.

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 context for use: you need a record id, ids have a specific shape, and they come from the output of the other tools, which effectively tells the agent this is the follow-up call after a listing/search. It stops short of explicit when-not-to-use guidance or naming an alternative for bulk retrieval.

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