Get Document Tool
get_documentRetrieves one court decision or one legislative act in full: metadata, the AI summary where one exists, and the text.
Addressing: pass an official identifier (ECLI, ELI, CELEX) if you know it —
no prior search is needed — or the id from a search result. Decisions
without an ECLI are only addressable through that id.
Text is returned in bounded chunks. When the response carries
text.next_cursor, pass it back as cursor to continue exactly where the
previous chunk ended; text.complete tells you when you have everything.
If chunking gets in your way, set include_full_text to true and the whole
text comes back in one response.
Paragraph numbers (Randnummern) appear as [Rn. 42] markers and are the
citation unit — quote them. Where the source carries none, the field
text.paragraph_numbering says so; do not invent them.
For a CJEU case, related_documents lists the other documents of the same
proceeding (judgment, Opinion of the Advocate General, order, request for a
preliminary ruling) with the id needed to retrieve each.
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": {
"identifier": "<identifier>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Only needed when the identifier does not reveal it; both are tried otherwise. | |
| anchor | No | Start the text at this anchor, e.g. "gruende" or "randnummer-42". | |
| cursor | No | Continuation token from `text.next_cursor` of a previous call. | |
| language | No | ISO 639-1 code of the desired text version, e.g. "de", "en", "fr". EU documents exist in up to 24 languages; the response lists them under `available_languages`. Defaults to German, then English, then whatever is held. | |
| identifier | Yes | ECLI, ELI, CELEX number, or the `id` from a search result. | |
| paragraph_to | No | Last Randnummer to return. | |
| max_characters | No | Size of the returned text chunk. Defaults to 20000. | |
| paragraph_from | No | First Randnummer to return. | |
| include_full_text | No | Return the entire text in one response instead of a chunk. Use this if paging fails. |