Skip to main content
Glama

kvasir — Open Legal Grounding

resolve_citation

Read-onlyIdempotent

Turn a free-text citation into the canonical, verifiable object — the PREFERRED entry point when you have a citation string rather than a URI. ONE citation per call: for many at once use verify_citations (existence check) or get_legal_objects (full content). For an open legal question without a concrete reference, use search_legal instead.

cite: e.g. "§ 242 Abs. 1 BGB", "Art. 6 Abs. 1 lit. f DSGVO", "§ 1295 ABGB"
      (Austria), "Art. 41 OR" (Switzerland), "C-311/18", "BGH VIII ZR 45/16".
include: same semantics as get_legal_object.
quellen: optional jurisdiction filter, same values as search_legal. SET IT
      whenever the jurisdiction is known and the abbreviation is ambiguous:
      "§ 15 StGB" exists in Germany AND Austria, "BV" is both the Swiss
      constitution and the Bavarian one, "GO" is Bavarian and NRW municipal
      law — without the filter the jurisdiction priority decides (German
      federal first) and you get an `ambiguous` block instead of a choice. It
      restricts rather than ranks — no hit means "not found in that
      jurisdiction", which is the honest answer for an Austrian citation.

lang: "de" returns the GERMAN wording of an EU provision (fetched live from
      EUR-Lex; all language versions are equally authentic). The corpus is
      indexed in English — SET lang="de" whenever you compare quoted German
      wording against an EU act, otherwise every difference looks like a
      citation error when it is only a language difference. National law
      (bund/by/at/ch …) is German anyway. `content.language` says which
      wording you got.

Returns {cite, parsed, uri, exists, object, ambiguous?, unit?, range?, toc_path?} —
`ambiguous` appears when the SAME abbreviation is used in more than one
jurisdiction and the cited number exists in each ("Art. 141 BV" is Swiss
referendum law AND the Bavarian right to roam). It lists every candidate;
the resolution itself is the first by jurisdiction priority. DO NOT present
that reading as the answer — say which jurisdictions are in play, or re-call
with `quellen` once you know which one the author meant. `unit` is
the pinpoint sub-unit (exact text + ready-made citation + deeplink) when the citation
names Absatz/Nummer/litera/Satz/Halbsatz (e.g. "§ 573 Abs. 2 Satz 1 BGB" or
"§ 573 Abs. 2 Nr. 3 Halbs. 2 BGB" resolves to the
exact sentence); `toc_path` is the norm's position in its statute
(Buch/Abschnitt/Titel — answers "where does this § sit?"). When unresolved,
returns did-you-mean `suggestions` you can retry with. Never invent a citation
the resolver cannot confirm.

RANGES ("§ 433 f. BGB", "§ 433 ff. BGB") come back as `range`, and the two
markers differ in how much they license you to say:
  f.   `to` is exact — the citation covers precisely two provisions.
  ff.  open-ended. The end is NOT in the citation; `suggested_to` is the end
       of the innermost section around the first provision — an inference.
       Present it as "roughly §§ X–Y" or name only the first provision. Never
       state `suggested_to` as the citation's end.

BELOW the provision ("§ 305 Abs. 1 ff. BGB", "§ 573 Abs. 2 Nr. 1 ff. BGB")
the marker applies to the deepest level named, and the answer is `unit_range`
— where even "ff." is EXACT (`to`, never `suggested_to`), because the
provision itself bounds the list: § 305 has three paragraphs, so "Abs. 1 ff."
means 1 through 3. `paths` enumerates every unit covered.

SEVERAL PROVISIONS IN ONE STRING ("§§ 433, 434 BGB", "§§ 433-435 BGB",
"§ 573 Abs. 1, 2 BGB", "§ 823 Abs. 1 i.V.m. § 1004 BGB") are all resolved:
the first is the main object, the rest come back under `also_cited`, each
with its own `exists`. `exists` at the top level answers for the WHOLE
citation — one invented number in the list makes it false. Report the
specific provision named in the hint, not the citation as a whole.

VARIANTS ("§ 263 Abs. 1 Var. 2 StGB", "Alt. 1", "Fall 2") resolve down to the
PARAGRAPH and come back with `variant.addressable: false`. Tatvarianten are a
doctrinal way of counting the alternatives inside a provision's wording — the
statute does not number them, so there is no anchor to check against. Quote
the wording and identify the variant from it; do not claim kvasir confirmed it.

VERSIONS: "§ 433 BGB a.F." / "i.d.F. vom 1.1.2020" ask for an EARLIER text
than the one in force, and `version.confirmed: false` says we cannot supply
it. kvasir serves consolidated current law; superseded texts exist only from
its own first index run and are dated by DETECTION, not by legal effect, so
"which version was in force on date X" is not answerable here. The citation
is not wrong — the corpus simply cannot evidence it. NEVER present the served
text as the earlier wording; say the current text is shown instead, and that
the historical one is outside coverage. `superseded` lists any archived
predecessors (retrievable as `normversion:<id>`).

`valid: false` on either range means nothing follows the cited point at all — e.g.
"§ 2385 ff. BGB" (the BGB ends there) or "Abs. 4 ff." of a four-paragraph
provision — so the "ff." has no referent. That is a POSITIVE FINDING about
the citation, not a coverage gap: say the citation is wrong, and note that
the provision itself exists (`norm_exists`).

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": {
      "cite": "<cite>"
    },
    "name": "resolve_citation"
  }
}

Input Schema

NameRequiredDescriptionDefault
citeYes
langNo
includeNocontent
quellenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say read-only/idempotent; the description carries far more: ambiguity blocks and jurisdiction priority, `f.` vs `ff.` semantics, `unit_range` where `ff.` is exact, `exists` answering for the whole citation, `variant.addressable: false`, and `version.confirmed: false` meaning the corpus cannot evidence a superseded text. It also states positive-finding semantics for `valid: false` rather than leaving it as a coverage gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and sibling routing, then organized into labelled blocks (RANGES, VARIANTS, VERSIONS) that are easy to scan when needed. It is long and dense, and a few passages (e.g. the `valid: false` paragraph) could be tightened, but with no output schema most of the detail earns its place.

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?

Despite having no output schema, the return shape is enumerated in prose ({cite, parsed, uri, exists, object, ambiguous?, unit?, range?, toc_path?}) and the tricky fields are explained. For a four-parameter resolver with 0% schema description coverage and non-obvious ambiguity/version edge cases, nothing an agent needs in order to call or interpret it correctly is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and does: `cite` gets five worked examples across DE/AT/CH/EU including case numbers, `quellen` is explained as a restricting filter with concrete ambiguity examples ("§ 15 StGB" in DE vs AT, "BV" Swiss vs Bavarian), and `lang` explains the EUR-Lex live fetch and why it matters for quotation comparison. Only `include` is underspecified via cross-reference to get_legal_object.

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?

"Turn a free-text citation into the canonical, verifiable object" gives a specific verb and resource, and the description immediately positions it against siblings: "PREFERRED entry point when you have a citation string rather than a URI." It also names the tools to use instead for batch (verify_citations), full content (get_legal_objects) and open questions (search_legal).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ("when you have a citation string rather than a URI"), explicit when-not ("ONE citation per call: for many at once use verify_citations"), and explicit alternatives for non-citation questions. It even prescribes call-shaping behavior: re-call with `quellen` on ambiguity, and do not present a jurisdiction-priority resolution as the answer.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.