Skip to main content
Glama

MarchIndex

get_law

Read-onlyIdempotent

One published law by slug: citation, status, effective date, official source link and provision headings. Not legal advice.

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

Input Schema

NameRequiredDescriptionDefault
slugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 closed-world (openWorldHint=false), so the safety profile is covered. The description adds genuine value by naming the returned fields (useful since there is no output schema) and by adding the 'Not legal advice' disclaimer, but it says nothing about not-found behavior or how drafts are handled beyond the word 'published'.

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?

Two short sentences, zero filler: the payload list comes first and the disclaimer last. Every element (field list, scope word 'published', legal caveat) carries information an agent can act on.

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 single-record read tool with no output schema, the description does the heavy lifting by listing what comes back and flagging the closed, published-only corpus. Only the error/empty-result path and slug provenance are left unstated, which is a minor gap given the rich annotations.

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?

There is one parameter, and schema description coverage is 0% — the schema supplies only a pattern and maxLength, no prose. The description's 'by slug' confirms the argument identifies a single law, but it does not explain slug format, provenance, or where to obtain one, so it barely compensates for the coverage gap.

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 states a specific resource and access key: 'One published law by slug', and enumerates the payload (citation, status, effective date, source link, provision headings). The singular 'one ... law by slug' contrasts implicitly with the plural search_laws sibling, though no sibling is named explicitly.

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?

Usage is only implied: 'by slug' signals that a caller must already hold a slug, and 'published' hints that unpublished/draft laws are out of scope. There is no explicit statement such as 'use search_laws to obtain a slug first' or a when-not-to-use condition.

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