Serveur MCP

Nalegalu MCP

io.github.nalegaluorg/nalegalu

Ce que fait ce MCP

Searches Polish statutes and case law, retrieves exact legal provisions and judgment excerpts, verifies case citations and quotations, and finds related cases.

get_article
Fetch the exact text of one article (or paragraph) of a Polish legal act. Use after search_law or another trusted source supplied the address and article key; never guess them. Deterministic lookup by act address (e.g. WDU19740240141) and article key (e.g. "133" or "Art. 133."). Optional paragraph_key (e.g. "1" or "§ 1.") narrows the result to a single paragraph.
Lecture seule
Schéma d’entrée
{'type': 'object', 'title': 'get_articleArguments', 'required': ['address', 'article_key'], 'properties': {'address': {'type': 'string', 'title': 'Address'}, 'article_key': {'type': 'string', 'title': 'Article Key'}, 'paragraph_key': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'title': 'Paragraph Key', 'default': None}}}
Schéma de sortie
{'type': 'object', 'title': 'get_articleDictOutput', 'additionalProperties': True}
get_case
Fetch one SAOS court judgment (metadata + bounded text excerpt). Use only with a saos_id returned by related_cases, research_cases, or search_case_by_signature. Long judgments are paged: when has_more is true, call again with offset=next_offset. If the response has ok=false with a fallback hint, SAOS is unavailable or rate-limited — fetch the returned saos_url yourself with your own web tools instead of retrying this tool.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', 'title': 'get_caseArguments', 'required': ['saos_id'], 'properties': {'offset': {'type': 'integer', 'title': 'Offset', 'default': 0}, 'saos_id': {'type': 'integer', 'title': 'Saos Id'}, 'max_chars': {'type': 'integer', 'title': 'Max Chars', 'default': 6000}}}
Schéma de sortie
{'type': 'object', 'title': 'get_caseDictOutput', 'additionalProperties': True}
related_cases
List SAOS cases related to one statutory provision. Use after identifying a relevant provision. A related-case link is not proof of a legal rule: inspect the judgment with get_case before asserting its holding. Deterministic lookup by act address (e.g. WDU19740240141) and article key. Returns case number, court, date, relevance score when available, and a SAOS link per case; scored cases sort first. Newer data also carries citation context per case: mentions (how many times the article appears in the judgment text), mention_match ("exact" = found with a matching act marker; "ambiguous" = bare mention, possibly another act's article — discount it), and context (snippet around the mention). mentions=0 or a missing context means the link comes from SAOS metadata but the text scan could not confirm it — treat relevance as unverified rather than assuming the case is on point. If count is zero, it means this local provision-to-case link dataset has no rows; it is not an exhaustive SAOS or case-law search.
Lecture seule
Schéma d’entrée
{'type': 'object', 'title': 'related_casesArguments', 'required': ['address', 'article_key'], 'properties': {'limit': {'type': 'integer', 'title': 'Limit', 'default': 10}, 'address': {'type': 'string', 'title': 'Address'}, 'article_key': {'type': 'string', 'title': 'Article Key'}, 'paragraph_key': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'title': 'Paragraph Key', 'default': None}}}
Schéma de sortie
{'type': 'object', 'title': 'related_casesDictOutput', 'additionalProperties': True}
research_cases
Discover related-case candidates for a natural-language legal issue. This tool first searches statutes, then follows local provision-to-case links for several distinct provisions and deduplicates by SAOS ID. ``rerank=false`` is the inexpensive deterministic discovery stage. With ``rerank=true``, it fetches at most ``rerank_fetch_limit`` public SAOS excerpts and reranks them only when the server has explicitly configured a Cohere reranker. It never decides a holding: call ``get_case`` for every judgment used in an answer.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', 'title': 'research_casesArguments', 'required': ['query'], 'properties': {'query': {'type': 'string', 'title': 'Query'}, 'rerank': {'type': 'boolean', 'title': 'Rerank', 'default': False}, 'candidate_limit': {'type': 'integer', 'title': 'Candidate Limit', 'default': 40}, 'provision_limit': {'type': 'integer', 'title': 'Provision Limit', 'default': 5}, 'context_max_chars': {'type': 'integer', 'title': 'Context Max Chars', 'default': 450}, 'rerank_fetch_limit': {'type': 'integer', 'title': 'Rerank Fetch Limit', 'default': 75}, 'case_text_max_chars': {'type': 'integer', 'title': 'Case Text Max Chars', 'default': 6000}, 'cases_per_provision': {'type': 'integer', 'title': 'Cases Per Provision', 'default': 80}, 'rerank_result_limit': {'type': 'integer', 'title': 'Rerank Result Limit', 'default': 10}}}
Schéma de sortie
{'type': 'object', 'title': 'research_casesDictOutput', 'additionalProperties': True}
search_case_by_signature
Verify a cited case signature (sygnatura), e.g. "II CSK 448/14". Use before relying on a judgment cited by a user or another agent. Answers from a local index of all SAOS judgments first; only on a local miss does it query live SAOS. Read the verdict field: "confirmed" (matches listed with saos_id, court, date, type — different courts reuse signatures, so check the court), "not_found" (strong evidence the citation is fabricated or wrong), "outside_coverage" (administrative courts NSA/WSA are not in SAOS — verify in CBOSA instead), "unverified" (local miss and SAOS unreachable; do not treat as nonexistent). Optional court_type: COMMON, SUPREME, CONSTITUTIONAL_TRIBUNAL, NATIONAL_APPEAL_CHAMBER. has_text=false on a match means SAOS stores no text for it, so verify_quote cannot check quotes against that judgment.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', 'title': 'search_case_by_signatureArguments', 'required': ['signature'], 'properties': {'limit': {'type': 'integer', 'title': 'Limit', 'default': 10}, 'signature': {'type': 'string', 'title': 'Signature'}, 'court_type': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'title': 'Court Type', 'default': None}}}
Schéma de sortie
{'type': 'object', 'title': 'search_case_by_signatureDictOutput', 'additionalProperties': True}
search_law
Search current Polish statutes and return article-level hits. Start here for a natural-language legal issue or a direct citation. Use the user's own Polish wording, e.g. "kupiłem wadliwy towar od firmy jakie mam prawa". Do not add address, domain, article, act_type, or status filters unless the user explicitly supplied that restriction. Results are primary-source material, not legal advice.
Lecture seule
Schéma d’entrée
{'type': 'object', 'title': 'search_lawArguments', 'required': ['query'], 'properties': {'limit': {'type': 'integer', 'title': 'Limit', 'default': 10}, 'query': {'type': 'string', 'title': 'Query'}, 'domain': {'anyOf': [{'type': 'array', 'items': {'type': 'string'}}, {'type': 'null'}], 'title': 'Domain', 'default': None}, 'status': {'anyOf': [{'type': 'array', 'items': {'type': 'string'}}, {'type': 'null'}], 'title': 'Status', 'default': None}, 'address': {'anyOf': [{'type': 'array', 'items': {'type': 'string'}}, {'type': 'null'}], 'title': 'Address', 'default': None}, 'article': {'anyOf': [{'type': 'array', 'items': {'type': 'string'}}, {'type': 'null'}], 'title': 'Article', 'default': None}, 'act_type': {'anyOf': [{'type': 'array', 'items': {'type': 'string'}}, {'type': 'null'}], 'title': 'Act Type', 'default': None}, 'top_cases': {'type': 'integer', 'title': 'Top Cases', 'default': 3}, 'case_law_boost': {'type': 'number', 'title': 'Case Law Boost', 'default': 0.0}, 'retrieval_mode': {'anyOf': [{'type': 'string'}, {'type': 'null'}], 'title': 'Retrieval Mode', 'default': None}, 'candidate_multiplier': {'type': 'integer', 'title': 'Candidate Multiplier', 'default': 4}, 'include_non_in_force': {'type': 'boolean', 'title': 'Include Non In Force', 'default': False}}}
Schéma de sortie
{'type': 'object', 'title': 'search_lawDictOutput', 'additionalProperties': True}
verify_quote
Check whether a supplied quote appears in a SAOS judgment. Use only after resolving the judgment to a saos_id. This validates wording, not whether the quote supports a legal conclusion. Pass the saos_id (from search_case_by_signature or related_cases) and the fragment as quoted. One call replaces paging through the full text: verdict is "exact" (verbatim after normalizing whitespace, quote marks and dashes), "near_match" (best passage plus similarity score — compare it against the claim), or "not_found" (treat the quote as fabricated or misattributed). If ok=false with a fallback hint, fetch saos_url with your own web tools instead of retrying.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', 'title': 'verify_quoteArguments', 'required': ['saos_id', 'quote'], 'properties': {'quote': {'type': 'string', 'title': 'Quote'}, 'saos_id': {'type': 'integer', 'title': 'Saos Id'}, 'min_similarity': {'type': 'number', 'title': 'Min Similarity', 'default': 0.75}}}
Schéma de sortie
{'type': 'object', 'title': 'verify_quoteDictOutput', 'additionalProperties': True}
Modifié
verify_quote
1 October 2026 02:47
Modifié
search_case_by_signature
1 October 2026 02:47
Modifié
get_case
1 October 2026 02:47
Modifié
research_cases
1 October 2026 02:47
Ajouté
verify_quote
17 September 2026 12:45
Ajouté
search_case_by_signature
17 September 2026 12:45
Ajouté
get_case
17 September 2026 12:45
Ajouté
research_cases
17 September 2026 12:45
Ajouté
related_cases
17 September 2026 12:45
Ajouté
get_article
17 September 2026 12:45
Ajouté
search_law
17 September 2026 12:45