Skip to main content
Glama

Pension Law Library

search_law

Read-only

Hybrid keyword/semantic search over code, regulations, guidance, PLRs and court rulings. Returns the best documents with snippets and library URLs.

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": {
      "query": "<query>"
    },
    "name": "search_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
asofNoYYYY-MM-DD: search the law as in effect on that date.
kindsNoLimit to document kinds.
queryYesWords, a question, or a citation such as "401(a)(9)", "1.411(d)-4", "ERISA 204(h)", "Rev. Rul. 2004-21".
groupsNoLimit to IRC, ERISA, PBGC and/or JB (Joint Board).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered, yet the description adds value by disclosing the result shape: relevance-ranked 'best documents' with snippets and library URLs. With no output schema present, that return-content statement carries real weight. It does not mention result caps, pagination, or how relevance ranking works.

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 sentences, zero filler, with the core capability front-loaded and the return shape second. Every clause earns its place.

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 four-parameter read-only search tool with fully documented schema, the definition covers corpus scope, search mode, and result contents adequately. The only missing pieces are practical behaviors like result limits and whether asof interacts with kinds, which a calling agent would likely want before issuing queries.

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 description coverage is 100%, and the schema itself supplies the key semantics (asof as a YYYY-MM-DD effective-date search, kinds enum, groups limited to IRC/ERISA/PBGC/JB, query accepting citations). The description adds nothing about parameters beyond the schema, so the 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?

A specific verb ('Hybrid keyword/semantic search') plus a concrete resource set (code, regulations, guidance, PLRs, court rulings) and a stated return shape (snippets and library URLs). It implicitly separates itself from retrieval siblings like get_section or get_guidance, but it never names or contrasts them, so an agent must infer the boundary.

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: it is clearly the discovery tool for the listed document types, and the 'hybrid keyword/semantic' phrasing hints that both free text and citations are acceptable queries. There is no explicit when-to-use vs when-not guidance and no mention of alternatives such as get_section (exact lookup) or recent_changes (temporal browsing).

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