# Relations

> Typed links of a decision, provision or act: citations, applications and repeals.

<!-- html: https://lexomat.sk/en/doc/get-relations · sk: https://lexomat.sk/doc/get-relations.md · index: https://lexomat.sk/llms.txt -->
## What it does

`get_relations` lists the typed relations of a decision, a provision or an act, by the id another tool returned: decisions that cite a decision, decisions that apply a provision, acts that repeal or are repealed by an act. Every edge says where it comes from. Amending acts are not edges here: `get_act` lists the acts that amended each version in `versions[].amending_acts`. It replaces the earlier judicial-interpretation lookup with a neutral graph that makes no claim about whether a cited view still holds.

> **Read-only, informational, not legal advice.** Citations between decisions are found by matching the text; as of 22 October 2026 only about half of them resolve to a decision Lexomat holds, and the tool reports that share rather than rounding it away.

## Inputs

| Name         | Type     | Required | Description                                                                                   |
| ------------ | -------- | -------- | --------------------------------------------------------------------------------------------- |
| `id`         | string   | Yes      | A decision id, a provision id (`SK/40/1964#paragraf-420`) or an act id (`SK/40/1964`).        |
| `edge_types` | string[] | No       | Restrict to some edge kinds, e.g. `["cited_by"]`.                                             |
| `sort`       | string   | No       | `authority` (default: court level and how often cited, not correctness) or `recency`.         |
| `limit`, `offset` | integer | No   | Paging; `offset` up to 1000. `total` is returned so the leading edges can be seen first.      |
| `treatment`  | string[] | No       | On provision edges: how the court worked with the provision (interpretation, subsumption, …). |
| `centrality` | string   | No       | `core`, `incidental` or `any` (default) — whether the provision carried the holding.          |
| `outcomes`   | boolean  | No       | Add the outcome distribution of the applying decisions, where the sample is large enough.     |
| `court`      | string   | No       | Hard filter by court.                                                                         |

## Returns

- **`edges`** — one entry per relation: its type, the related document's id and `url`, the court, the date, the `treatment` on a provision edge, and the **provenance** of the edge (extracted text pattern, index metadata, …).
- **`total`** — the size of the relation set, so `limit` can be read as a page.
- An empty list means "nothing in this index", not that nothing cites the document.

## Example

The calling AI has § 420 of Act 40/1964 Zb. from **Get a provision**. It calls `get_relations` with `id: "SK/40/1964#paragraf-420"` and `sort: "authority"` to find the leading decisions that apply it, then opens one with **Read a decision**.

## Notes

- Deterministic, no LLM involved.
- Debits the **corpus** quota (see **Usage limits**).
- It says nothing about good law: whether a later decision departed from a cited view is for the reader to establish from the decisions themselves.
