Get citations and amendments
get_linksGet the graph edges into or out of one item: a law, an article, a ruling, an opinion, a research study or a Gazette issue. Use this to walk citations and amendments directly, instead of only what get_law and get_article attach automatically. For a law key ("law/") the default scope "all" includes the edges of its articles too (each link keeps its real to_key, e.g. "law/244611/art/37"); scope "law" is the law itself only. Newest first by the date of the text each edge comes from. For the next page pass next_cursor as cursor (it is absent on the last page); total is the number of edges. Not legal advice.
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": {
"key": "<key>"
},
"name": "get_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | the item's key: "law/<id>", "law/<id>/art/<number>", "ruling/<id>", "opinion/<id>", "research/<id>" or "gazette/<id>" | |
| limit | No | at most this many edges. quote is cut to 600 characters when longer (quote_truncated: true); get_article has the full wording | |
| order | No | by the date of the text the edge comes from (Gazette date, else issue date) | newest |
| scope | No | for a law key only: "all" (default) adds the edges to or from its articles, "law" is the law itself only | |
| cursor | No | next_cursor of the previous answer; omit for the first page | |
| relation | No | narrow to one relation (e.g. "cites", "amend", "repeal"); omit for all | |
| direction | No | "to" (edges that name this item as their target) or "from" (edges this item itself carries) | to |