Skip to main content
Glama
Legal Knowledge MCP Server

Legal Knowledge MCP Server

by Angioz

legal_search_us_caselaw

Search federal and state court opinions through CourtListener to retrieve case law for legal research and compliance checks.

Instructions

Search federal and state court opinions via CourtListener (Free Law Project). Requires the free COURTLISTENER_API_TOKEN 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_caselaw"
  }
}

Input Schema

NameRequiredDescriptionDefault
courtNoCourtListener court id(s), space-separated, e.g. 'wyo' (Wyoming Supreme Court), 'del' or 'scotus'
limitNoMaximum results per source (default: 10, max: 50)
queryYesSearch terms, e.g. 'single member llc charging order'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the auth requirement (free API token), which is genuinely useful, but says nothing about rate limits, result shape (full text vs. snippets), pagination, or coverage/recency of the corpus.

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, front-loaded with the capability and followed by the prerequisite. No filler and nothing redundant with the schema.

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 three-parameter search tool with a fully documented schema and no output schema, the description covers what the tool is and the one setup requirement. It could say more about what is returned and why 'limit' is 'per source', but nothing blocks correct invocation.

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% and each parameter has an inline example, so the schema does the heavy lifting. The description adds no additional meaning about 'court' formatting or the 'results per source' semantics of 'limit', 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?

States a specific verb and resource — 'Search federal and state court opinions' — and names the underlying source (CourtListener/Free Law Project). This implicitly separates it from code/statute siblings such as legal_search_us_code or legal_search_us_states, 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 the resource type ('court opinions'); there is no explicit statement of when to pick this over legal_search_us or legal_search_us_code, and no exclusions. It does contribute one real prerequisite — the COURTLISTENER_API_TOKEN environment variable — which is the only practical guidance given.

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