Skip to main content
Glama

MarchIndex

search_laws

Read-onlyIdempotent

Search published privacy, cybersecurity and AI laws by name/topic, with optional jurisdiction, category, status filters. Not legal advice.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_laws"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size, default 10, max 20
queryNo
offsetNoResult offset, max 80
statusNo
categoryNo
jurisdictionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds that only published laws are in scope and that results are not legal advice, but says nothing about result ordering, pagination behavior, or what a search miss returns.

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 clauses and a disclaimer; the core capability is front-loaded and nothing is redundant. The 'Not legal advice' tail is arguably filler but is cheap and arguably relevant for a legal corpus.

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?

For a read-only search tool with no output schema, the description should hint at what results look like (e.g., law records with identifiers usable in get_law). It covers scope and filters but leaves return shape and pagination semantics implicit, which matters when paging with offset up to 80.

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 only 33%; limit and offset are documented in the schema, but query, status, category and jurisdiction have no schema descriptions. The description clarifies that query matches name/topic and that jurisdiction/category/status are optional filters, but it gives no accepted values or format hints for those facets.

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?

States a specific verb and resource ('Search published privacy, cybersecurity and AI laws by name/topic') and scopes the corpus to published laws, which implicitly separates it from pending_bills. It does not, however, explicitly contrast with get_law or list-type siblings, so differentiation is partial.

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?

The phrase 'search ... by name/topic' with optional filters implies lookup-style usage, but the description never says when to use this versus get_law (single retrieval) or pending_bills/upcoming_effective_dates. No exclusions or prerequisites are given.

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