Skip to main content
Glama

legal-search

Search over 5 million US court opinions from SCOTUS, federal circuits, district, and state courts. Filter by court level, date range, or judge to find precedents or analyze regulations.

Instructions

Searches 5M+ US court opinions (SCOTUS, federal circuits, district courts, state courts) via CourtListener. Returns case name, court, date, citation, docket number, and a text snippet. Filter by court level, date range, or judge name. Useful for legal research agents, contract risk analysis, precedent lookup, and regulatory compliance workflows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoSearch query — can be a legal concept, case name, statute, or citation (e.g. 'miranda rights', 'negligence per se', 'Title VII', '410 U.S. 113').
courtNoFilter by court level: 'scotus', 'appeals', 'district', or a specific court ID (e.g. 'ca9', 'nysd'). Leave blank for all courts.
date_afterNoFilter to opinions filed after this date (YYYY-MM-DD).
date_beforeNoFilter to opinions filed before this date (YYYY-MM-DD).
limitNoMax results (default 5, max 20).
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the data source (CourtListener) and returns fields, but it does not disclose important behaviors like rate limits, indexing delays, authentication needs, or error handling. The description is adequate but lacks detail beyond basic functionality.

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?

The description is three concise sentences: first states the core function, second lists return fields, third suggests use cases. Every sentence adds value, and the information is front-loaded.

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?

Given the tool's complexity (multiple filters, legal search), the description covers the basics but lacks behavioral details (e.g., result ordering, pagination, coverage date range, or limitations). The schema provides parameter details, but the description could better complement it by explaining how filters interact or what 'text snippet' means.

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?

Schema coverage is 100% and descriptions are good, but the description mentions a 'judge name' filter which is not present in the input schema. This creates confusion about what filters are actually available. Otherwise, the description does not add extra meaning beyond the schema; it merely summarizes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it searches US court opinions via CourtListener, specifies the court coverage (SCOTUS, federal circuits, district courts, state courts), and lists returned fields. This is a specific verb+resource combination that effectively distinguishes it from sibling tools, none of which are legal search tools.

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

Usage Guidelines4/5

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

The description lists explicit use cases such as legal research, contract risk analysis, precedent lookup, and regulatory compliance. However, it does not provide guidance on when not to use the tool or suggest alternatives, which would be helpful in a toolset with many search-like tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thebrierfox/the-stall'

If you have feedback or need assistance with the MCP directory API, please join our Discord server