Get Court Opinion Text
legal.caselaw.opinionRetrieve full text and metadata of a US court opinion by ID. Includes author, type, date, and download URL, up to 5,000 characters.
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)
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": {
"opinion_id": "<opinion_id>"
},
"name": "legal.caselaw.opinion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| opinion_id | Yes | Opinion ID from search results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |