Skip to main content
Glama

legal.caselaw.opinion

Retrieve full US court opinions with author, type, date, and download URL using opinion IDs from CourtListener.

Instructions

Get full text of a US court opinion by ID — author, type, date, download URL. Up to 5,000 characters of opinion text (CourtListener)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opinion_idYesOpinion ID from search results
Behavior4/5

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

With no annotations provided, the description carries the full burden. It successfully discloses the 5,000 character limit on opinion text and identifies the data source (CourtListener). It also enumerates return fields. Missing safety annotations (read-only status) are implied by 'Get' but not explicitly stated.

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 a single, efficiently structured sentence with zero waste. It front-loads the action ('Get full text'), uses an em-dash to separate the return value details, and parenthetically notes the source and limit. 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?

Given the absence of an output schema and annotations, the description adequately compensates by listing specific return fields (author, type, date, download URL, opinion text) and the character limit. For a simple retrieval tool with one parameter, this provides sufficient context, though error conditions or authentication requirements are not mentioned.

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% ('Opinion ID from search results'), establishing a baseline of 3. The description doesn't add syntax details, format specifications, or examples beyond what the schema provides, but doesn't need to given the complete schema coverage.

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 uses a specific verb ('Get') with clear resource ('full text of a US court opinion') and scope ('by ID'). It effectively distinguishes from sibling tools like 'legal.caselaw.search' (which finds opinions) by emphasizing ID-based retrieval, and lists specific return fields (author, type, date, download URL).

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 description implies the tool requires an ID ('by ID') and the parameter schema notes it comes 'from search results', suggesting a workflow. However, it lacks explicit guidance on when to use this versus search, or warnings about the 5,000 character limit truncation.

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/whiteknightonhorse/APIbase'

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