Skip to main content
Glama

Laws Get Law

laws_get_law
Read-only

One law by the id search_laws returned; law is null when absent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
as_ofNo
law_idYes
snapshot_idNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

The readOnlyHint annotation already signals a safe read operation, and the description adds that the law is null when absent. However, it does not explain behavior for as_of or snapshot_id, or any potential error conditions.

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?

The description is a single concise sentence, though the phrasing is slightly grammatically awkward. It is appropriately short and does not waste words.

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

Completeness3/5

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

Without an output schema, the description should clarify the return shape more thoroughly. It mentions null when absent but omits details about the law object's fields, as_of/snapshot semantics, and possible errors, leaving some gaps for a complete context.

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

Parameters2/5

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

Only law_id is referenced in the description ('by the id'), leaving as_of and snapshot_id unexplained. Since the schema provides no descriptions, these parameters remain ambiguous beyond their names.

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 clearly indicates the tool returns a single law by its ID and mentions null when absent, which distinguishes it from search_laws. However, the phrase 'search_laws returned' is awkward and could confuse the tool's exact role.

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

Usage Guidelines2/5

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

No explicit guidance is provided on when to use this tool versus alternatives like laws_search_laws or laws_list_law_types. The distinction is only implicit in the 'by id' wording.

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.

TDQS

B3.2/5.0
Disambiguation5/5

Every tool has a unique purpose, and the descriptions are detailed enough to clearly distinguish between search, list, get, and specific operations across domains. No two tools overlap in function.

Naming Consistency4/5

Domain tools follow a consistent '<domain>_<verb>_<noun>' pattern, but gateway-level tools like 'call_tool', 'find_capability', 'inspect_tool', 'search_services', and 'status' lack the prefix, introducing a minor inconsistency. Overall still readable and predictable.

Tool Count4/5

With 35 tools, the count exceeds the typical 3–15 range, but this is a gateway aggregating multiple distinct domains (holidays, laws, opendata, recalls, etc.), making the larger set justified. The count feels appropriate for the server's purpose.

Completeness5/5

Each domain offers a full set of operations: search, list, get, and domain-specific actions (like count_business_days or get_document_changes). Gateway meta-tools cover discovery, inspection, and invocation, leaving no obvious gaps.

Resources