Skip to main content
Glama
Legal Knowledge MCP Server

Legal Knowledge MCP Server

by Angioz

legal_search_us_states

Search bills across all 50 US state legislatures, DC, and Puerto Rico via Open States to find state-level legislation for a query or specific state.

Instructions

Search bills in all 50 US state legislatures, DC and Puerto Rico via Open States. Requires the free OPENSTATES_API_KEY environment variable.

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": "legal_search_us_states"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results (default: 10, max: 20)
queryYesSearch terms, e.g. 'limited liability company'
stateNoTwo-letter state code or state name, e.g. 'wy' or 'Wyoming' (default: all states)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It usefully discloses the OPENSTATES_API_KEY environment variable requirement, which an agent needs before calling, but says nothing about rate limits, result ordering, pagination, or what a returned bill record contains.

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?

One sentence, front-loaded with the resource and scope, followed immediately by the hard prerequisite. Nothing extraneous.

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 simple three-parameter read tool with no output schema, the definition covers what is searched and the auth requirement. It leaves open return volume, pagination, and result content, which an agent would need for non-trivial use.

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 100%, so all three parameters (query, state, limit) are already documented, including defaults and the max of 20. The description adds no syntax or format guidance beyond the schema, 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?

Specific verb+resource: 'Search bills in all 50 US state legislatures, DC and Puerto Rico via Open States.' The word 'bills' and the state-legislature scope implicitly distinguish it from siblings like legal_search_us_caselaw and legal_search_us_code, 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?

The scope (state bills only, covering all states by default) implies when this tool fits, but there is no explicit when-to-use vs. caselaw/code/federal siblings, and no exclusions or prerequisites beyond the API key note.

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