Skip to main content
Glama

Recap Document

crime__recap-document
Read-onlyIdempotent

Retrieve court documents from RECAP Archive using CourtListener IDs to access filing metadata, text extraction, and PDF download URLs for legal research and analysis.

Instructions

[Crime & Law Enforcement Agent] Fetch a single filing (motion, order, brief, exhibit) from RECAP by its CourtListener document id. Returns document metadata (entry number, page count, filed date, description), the plain-text extraction CL has on file when available, and a download URL for the PDF. Source: CourtListener RECAP Archive / Free Law Project (Open Access (public court records)), updates daily. Returns the Katzilla envelope { data, quality, citation } — quality scores freshness/uptime/confidence; citation carries the source URL, license, and a SHA-256 data hash for audit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesCourtListener recap-document id (integer). Get this from recap-search results or from the docket_entries of a recap-docket response.
include_textNoInclude the plain-text extraction in the response. Set false to return metadata only — extracted text can be tens of KB per document.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesStructured payload from the upstream source.
textNoPre-rendered text representation, when applicable.
qualityYesQuality scorecard: freshness, uptime, completeness, confidence, certainty.
citationYesProvenance block — source, license, retrieval timestamp, SHA-256 data hash, pre-formatted citation text.
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds valuable context beyond this: it specifies the data source ('CourtListener RECAP Archive / Free Law Project'), update frequency ('updates daily'), return format ('Katzilla envelope'), and details about quality scores and citation metadata. This enriches the agent's understanding without contradicting annotations.

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 front-loaded with the core purpose, followed by return details, source information, and output structure. Every sentence adds value: the first defines the tool, the second lists returns, the third specifies source and updates, and the fourth explains the envelope format. No redundant or vague statements.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (fetching legal documents), the description is complete. It covers purpose, usage, source, update frequency, and output structure. With annotations covering safety/idempotency and an output schema existing (implied by 'Returns the Katzilla envelope'), the description doesn't need to explain return values in depth. It provides all necessary context for effective 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 description coverage is 100%, so the schema fully documents both parameters. The description mentions 'plain-text extraction' and 'metadata only', which aligns with the 'include_text' parameter but doesn't add new semantic details beyond what the schema provides. It also references 'document_id' but doesn't elaborate further. Baseline 3 is appropriate given the comprehensive schema.

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 explicitly states the action ('Fetch a single filing'), the resource ('from RECAP by its CourtListener document id'), and the return content ('document metadata, plain-text extraction, download URL'). It clearly distinguishes from sibling tools like 'recap-search' (which searches) and 'recap-docket' (which fetches dockets), specifying this tool retrieves individual documents by ID.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool ('Fetch a single filing... by its CourtListener document id') and how to obtain the ID ('Get this from recap-search results or from the docket_entries of a recap-docket response'). It distinguishes from alternatives by focusing on single-document retrieval, unlike search or docket 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/codeislaw101/katzilla'

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