Skip to main content
Glama

Law metadata

qv_law_info
Read-onlyIdempotent

Retrieves a law's metadata by ID, including type, approver, approval and gazette data, status, and executing bodies, so you can cite it or verify its type.

Instructions

Metadata of a law: type, approver, approval, notification and gazette data, status, executing bodies.

Use to cite a law or check its type. Court votes and opinions carry almost none.

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

Input Schema

NameRequiredDescriptionDefault
idsYesId from qv_search, e.g. '12021850837713548188'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • changedInput schema / properties / ids / description
      Previous value: -"Law id (IDS) from qv_search, digits only, e.g. '12021850837713548188'."New value: +"Id from qv_search, e.g. '12021850837713548188'."
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/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 safety is covered. The description adds one genuinely behavioral fact — that court votes and opinions have almost no metadata — which warns the agent about sparse results, but it says nothing about pagination, error behavior on invalid ids, or the shape of the response.

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 short sentences: the returned field set is front-loaded, then the use case and the caveat. No filler, though the phrasing of the field list is slightly unpunctuated, which makes it read as a run-on at first glance.

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 no output schema, the description does the essential work by enumerating the returned metadata fields and flagging the sparse-data case. Nothing critical is missing, though more detail on result shape for non-existent or invalid ids would help.

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?

With a single parameter and 100% schema description coverage (the schema even points to qv_search as the id source and gives a format example), the schema carries the parameter burden fully. The description adds no meaning about the ids argument, so baseline 3 applies.

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 names a specific resource (a law's metadata) and enumerates concrete fields: type, approver, approval/notification/gazette data, status, executing bodies. It is clear what the tool returns, though it never contrasts itself with the closest sibling qv_law (presumably full text), leaving the agent to infer that distinction.

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

Usage Guidelines3/5

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

"Use to cite a law or check its type" gives a positive use case, and "Court votes and opinions carry almost none" functions as an implicit exclusion for those entity types. However, no alternative tool is named for those cases and no prerequisites are stated, so routing remains partly inferred.

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