Skip to main content
Glama

kvasir — Open Legal Grounding

check_draft

Read-onlyIdempotent

Run the full grounding gate over a DRAFTED text (answer, memo, brief) before it is presented: extracts every legal citation, verifies existence against the corpus, checks verbatim quotes („…“ / "…") against the canonical source wording, and flags repealed acts/norms and pending legislative changes to cited acts.

Prefer this over verify_citations when you have a full text; use
verify_citations for a bare list of citation strings.

quellen: optional jurisdiction filter (comma-separated: bund, by, nrw, sn,
      bb, hb, at, ch, eu). SET IT when the draft is written for a known
      jurisdiction — a Bavarian exam citing "Art. 141 BV" means the Bavarian
      constitution, not the Swiss one. Without it the jurisdiction priority
      decides and you get an ambiguous_jurisdiction warning instead.

Returns {summary: {verdict: pass|warn|fail, …}, citations, quotes, findings}.
Fix every `error` finding before presenting (quote_not_in_source,
repealed_law/repealed_norm); report `warn` findings honestly (unresolved =
not verifiable against this corpus, NOT proof of invention; quote_unattributed =
a quotation had no citation in the same sentence, so it was NOT CHECKED at all —
a `pass` verdict says nothing about it; quote_deviation =
wording differs — compare source_excerpt; German quotations from EU acts are
checked against the German EUR-Lex wording automatically, so a quote_unverified
on an EU act means neither language matched; ambiguous_jurisdiction = the
abbreviation fits two jurisdictions and the checked one may not be the meant
one — name both rather than picking silently); mention `pending_change` when
currency matters. EU caveat: corpus text is the English version — a German
quote may be correct in the German OJ version (finding: quote_unverified).

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": {
      "text": "<text>"
    },
    "name": "check_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
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?

Goes far beyond the readOnly/idempotent annotations: it explains the verdict semantics (pass|warn|fail), what each finding class means (quote_not_in_source, repealed_law, quote_unattributed, quote_deviation, ambiguous_jurisdiction, pending_change), and — importantly — that unresolved does not mean invented and that quote_unattributed was never checked, so a pass verdict says nothing about it. The EU-language caveat about English corpus vs. German OJ wording is exactly the kind of non-obvious behavior an agent needs.

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 the core action and routing rule, then parameters, then return shape and finding taxonomy — a sensible ordering. It is dense and long, with a slightly ragged indented block for quellen, but essentially every sentence adds operational information rather than restating the schema.

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?

With no output schema, the description supplies the return shape ({summary: {verdict}, citations, quotes, findings}) and defines how to triage each finding class (fix errors, report warns honestly, mention pending_change). Nothing material about invoking or interpreting the tool is left unstated.

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 carry the burden, and it does: quellen is documented with its format (comma-separated jurisdiction codes, listed examples), its default behavior (jurisdiction priority decides), and the concrete disambiguation rationale (Art. 141 BV = Bavarian, not Swiss). The text parameter is unambiguously implied by 'a DRAFTED text (answer, memo, brief)'.

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?

States a specific verb and resource: runs a grounding gate over a drafted text, and enumerates the three checks it performs (citation extraction/verification, verbatim quote matching, repeal/currency flags). It explicitly contrasts itself with the sibling verify_citations by input shape (full text vs. bare citation list), so an agent can discriminate without opening schemas.

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?

Gives an explicit routing rule: 'Prefer this over verify_citations when you have a full text; use verify_citations for a bare list of citation strings.' It also states a when-to-act condition for the optional quellen parameter ('SET IT when the draft is written for a known jurisdiction') and shows the failure mode if omitted (ambiguous_jurisdiction warning).

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.