List available case documents
get_case_documentsList the docket entries in a federal case that have a document available, with the entry number, what the entry says, and a link to the document where the source publishes a free one. Use this when a user asks what documents are on file, whether an order or a motion is available to read, or for a copy of a filing. Availability depends on what the court source publishes; an entry with no free document is reported as such rather than guessed at. Identify the case with case_number (and court, if known), or with matter_id for a case already saved to the account. No account is needed to give a case number. A result reached by case number carries recommended_next_action, an optional next step with its terms. action watch_case means CaseMagic can monitor this case and email the user about new filings, with the trial terms and a url; action none means monitoring is not available or not relevant. Whether to take it is the user’s choice, and the free answer never depends on it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_case_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| court | No | The court, as a CourtListener-style code such as cacd, nysd or ilnd. Optional: leave it out when the user does not know which district the case is in. | |
| limit | No | How many documents to return, newest first. Defaults to 20. | |
| matter_id | No | The CaseMagic matter id, as returned by create_case_passport or shown in an earlier result. Omit it when the account follows exactly one case and that is the one meant. | |
| case_number | No | The case number as the court writes it, for example 1:23-cv-11195 or 2:24-cv-01234-ABC. Judge initials are optional and are ignored when matching. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case | No | The case: court, case number, caption, filing date, status, judges, nature of suit, latest activity and docket size. | |
| error | No | Present only when the call failed: a code, a message and, where there is one, an action such as a link to give the user. | |
| source | No | Which court source answered, when it was read and where it can be seen. | |
| case_url | No | The case’s public page on CaseMagic, which offers free email alerts and Watch. | |
| documents | No | Entries with a free document, newest first. | |
| matter_id | No | The account matter id when the case was read through a saved case; null for a lookup. | |
| connect_token | No | Short-lived token for create_case_passport, present on a lookup by case number. | |
| docket_coverage | No | How much of the court docket CaseMagic holds for this case. | |
| what_comes_next | No | One sentence on where to send a user who wants to hear about new filings. | |
| availability_note | No | What is and is not listed. | |
| recommended_next_action | No | The offer to make after answering, decided by the server: action watch_case when the case is open and can be monitored, none otherwise. |