Skip to main content
Glama
courtio

CourtAPI MCP Server

Official
by courtio

get_document

Retrieve PDF attachments from court docket entries. Checks cache for free access or offers PACER purchase with download links and cost details.

Instructions

Get a PDF attached to a docket entry. Always checks the cache first. If cached (is_cached=true), returns download_url + preview_url + ocr_link at no cost. If not cached and purchase=true, buys from PACER and returns download_url + receipt. If not cached and purchase=false (default), returns cost info so you can decide. docket_seq comes from docket entries (e.g. '42.00000'). part defaults to 1 (main doc).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partNoDocument part, 1 = main doc
purchaseNotrue = buy from PACER if not cached (costs credits). Default false.
court_codeYesCourt code, e.g. 'nysbke' (NY Southern Bankruptcy), 'debke' (Delaware Bankruptcy), 'ilnbke' (IL Northern Bankruptcy). Use list_courts to find the right code.
docket_seqYesDocket sequence number, e.g. '42.00000' or '42'
case_numberYesLong-form case number, e.g. '1:14-bk-10557'. Always use the long form — PACER short forms like '14-10557' will not match. Use find_cases if unsure.
Behavior5/5

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

With no annotations provided, the description fully carries the burden of behavioral disclosure. It clearly explains the caching mechanism, the conditional branches (cached vs. not cached, purchase true/false), and what is returned in each scenario. The cost implications of purchase=true and the 'no cost' cached case are transparent, leaving no major behavioral surprises.

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 compact yet comprehensive. It front-loads the core purpose, then uses a conditional structure to explain behaviors without redundancy. Every sentence contributes necessary context, making it efficient and well-organized.

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 absence of an output schema, the description appropriately explains what the tool returns in each possible branch (cached, purchase=true, purchase=false). It also offers context on obtaining docket_seq and the part parameter, making it complete for a tool of this moderate complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already covers all parameters with descriptions (100% coverage), so the baseline is 3. The description adds value by clarifying the format of docket_seq (e.g., '42.00000'), emphasizing that part defaults to 1 (main doc), and reiterating the purchase default. This extra context goes beyond the schema but does not fully restructure parameter semantics.

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 starts with a specific verb+resource: 'Get a PDF attached to a docket entry.' It clearly distinguishes itself from sibling tools like get_case (which retrieves case-level info) and get_dockets (which lists docket entries). The purpose is unambiguous and accurately reflects the tool's function.

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 provides clear context on when to use the tool: when you need a specific PDF from a docket entry. It explains the default behavior (purchase=false) and how to change it, and notes that docket_seq comes from docket entries. However, it does not explicitly mention alternatives or when NOT to use this tool, though the guidance is substantive enough to be above a basic 3.

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/courtio/courtapi-mcp'

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