Nalegalu MCP
Server Details
Semantic search over Polish law and case law, citing the exact in-force article.
- Status
- Healthy
- Uptime
- 100.0% over 57 days
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- nalegaluorg/nalegalu
- GitHub Stars
- 4
TDQS
Scored across 7 tools
Most tools have clearly distinct roles: statute lookup (search_law/get_article) vs case retrieval (get_case), signature verification, and quote checking. The main overlap is between related_cases (provision-driven deterministic lookup) and research_cases (issue-driven discovery), which both return related SAOS candidates, though the descriptions differentiate their inputs and workflow stages.
Consistent snake_case with predictable verb_noun forms (get_article, get_case, search_law, search_case_by_signature, verify_quote, research_cases). The only deviation is 'related_cases', which lacks a verb prefix and breaks the get_/search_/research_ pattern.
Seven tools is well-scoped for a legal research server, with each tool earning its place across statute search, case discovery, case retrieval, and verification. No redundancy or padding.
The surface covers the core research lifecycle: find statutes, fetch article text, discover/link cases, retrieve judgments, verify signatures and quotes, including graceful fallbacks for SAOS unavailability. Notable held-out gap is administrative court coverage (NSA/WSA via CBOSA, explicitly flagged as outside_coverage), which limits completeness for that jurisdiction.
Available Tools
7 toolsget_articleARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | ||
| article_key | Yes | ||
| paragraph_key | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true and destructiveHint=false, signaling safe read operations. The description adds behavioral context by noting the lookup is deterministic and that users must have a trusted source for parameters. This goes beyond the annotations, though it stops short of explaining error handling or return edge cases.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and front-loaded, with the core purpose stated in the first sentence. Subsequent sentences add necessary detail about usage and parameters without any filler. Every line earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (3 params, output schema present) and read-only nature, the description fully covers purpose, usage, and all parameter semantics. It also explains relationships to sibling tools, addressing the context in which the tool should be invoked. The output schema handles return-value details.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides zero description coverage, so the description must compensate—and it does thoroughly. It explains the address with an example (WDU19740240141), the article key with formats ('133' or 'Art. 133.'), and the optional paragraph key ('1' or '§ 1.'), including its narrowing purpose.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description begins with a specific verb and resource: 'Fetch the exact text of one article (or paragraph) of a Polish legal act.' This clearly distinguishes it from sibling tools like search_law, which searches, or get_case, which fetches cases.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly instructs when to use the tool: 'Use after search_law or another trusted source supplied the address and article key; never guess them.' This is direct usage guidance that also serves as a safety check, and it differentiates the tool from search_law.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_caseARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | ||
| saos_id | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/openWorld/non-destructive, but the description goes further: long judgments are paged, responses may return ok=false with a fallback hint when SAOS is unavailable or rate-limited, and the correct recovery is an out-of-band fetch of saos_url. This is exactly the failure-mode and rate-limit context annotations cannot express.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the one-line purpose, then the precondition, then paging, then the failure path — each sentence adds distinct operational value with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return-value documentation is unnecessary; the description covers the invocation prerequisite, pagination loop, and degraded-mode behavior. An agent has everything needed to call this correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must carry all three params. It clarifies offset semantics indirectly ('call again with offset=next_offset') and hints at max_chars via 'bounded text excerpt', but never defines saos_id's meaning and leaves max_chars' unit/default behavior to the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Fetch one SAOS court judgment') plus the payload shape ('metadata + bounded text excerpt'). It is immediately distinguishable from siblings like related_cases, research_cases, and search_case_by_signature, which are named as ID sources rather than as alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit precondition: 'Use only with a saos_id returned by related_cases, research_cases, or search_case_by_signature.' It also states the when-not case — do not retry on rate-limiting/unavailability, fetch saos_url instead — and gives the paging procedure with has_more/next_offset.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
research_casesARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| rerank | No | ||
| candidate_limit | No | ||
| provision_limit | No | ||
| context_max_chars | No | ||
| rerank_fetch_limit | No | ||
| case_text_max_chars | No | ||
| cases_per_provision | No | ||
| rerank_result_limit | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the safety profile (readOnly, non-destructive, open-world), and the description adds real behavioral depth beyond them: the statute-then-provision-link search flow, deduplication by SAOS ID, the conditional dependency on server-side Cohere configuration, and the cap on fetched excerpts. That is meaningfully more than the annotations disclose.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core purpose, then layered caveats in an efficient order (pipeline, stage choice, reranker condition, follow-up). The embedded indentation and backtick formatting are artifacts of source docs but the prose itself is tight.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists so return values need not be described, and the pipeline/caveats are well covered. However, for a 9-parameter tool with 0% schema description coverage, six tuning knobs remain unexplained, leaving an agent without guidance on how to shape result size or cost.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% across 9 parameters, so the description carries the full burden. It explains 'rerank' and 'rerank_fetch_limit' clearly, but leaves candidate_limit, provision_limit, context_max_chars, case_text_max_chars, cases_per_provision, and rerank_result_limit entirely undefined in both places.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Discover related-case candidates') plus the input type (natural-language legal issue), and sketches the internal pipeline. It does not, however, distinguish itself from the sibling tool 'related_cases', which an agent could easily confuse it with.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives explicit stage selection guidance (rerank=false is the inexpensive discovery stage; rerank=true reranks only when a Cohere reranker is configured) and a clear follow-up directive to call get_case for every judgment used. No explicit when-not-to-use rule against 'related_cases' or 'search_case_by_signature', so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_case_by_signatureARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| signature | Yes | ||
| court_type | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Goes well beyond the readOnly/openWorld annotations: discloses the local-index-first-then-live-SAXS lookup order, the exact verdict semantics (confirmed/not_found/outside_coverage/unverified) with interpretation guidance, the warning that courts reuse signatures, and the has_text implication for verify_quote.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loads the core purpose and the example, and every block of text carries actionable content. It is dense and slightly list-like, but no sentence is filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, yet the description still pre-empts the most decision-critical return field (verdict), which is exactly what an agent needs to interpret results and route to alternatives like CBOSA or verify_quote.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description must compensate; it supplies an example signature format and enumerates the court_type values (COMMON, SUPREME, CONSTITUTIONAL_TRIBUNAL, NATIONAL_APPEAL_CHAMBER) that the schema only types as a bare string. The 'limit' parameter remains unexplained, so it is not fully compensating.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Verify a cited case signature') with a concrete example, and its verification role is clearly distinct from siblings like get_case, research_cases, and verify_quote.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly says when to use it ('before relying on a judgment cited by a user or another agent') and gives a when-not/alternative route ('administrative courts NSA/WSA are not in SAOS — verify in CBOSA instead').
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_lawARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| domain | No | ||
| status | No | ||
| address | No | ||
| article | No | ||
| act_type | No | ||
| top_cases | No | ||
| case_law_boost | No | ||
| retrieval_mode | No | ||
| candidate_multiplier | No | ||
| include_non_in_force | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the annotations (readOnlyHint=true, destructiveHint=false), the description adds useful context: 'Results are primary-source material, not legal advice' and 'current Polish statutes,' clarifying scope and limitations. It does not describe pagination or rate limits, but the annotations cover safety traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and front-loaded. Each sentence earns its place: purpose, when to use, example, filter guidance, and disclaimer. No redundant filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 12 parameters and no schema descriptions, the description covers the common path well but leaves many tuning parameters unexplained. The output schema exists, so return structure is available, but the description alone is not enough to fully understand all 12 parameters.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It explains the query parameter with a Polish example and clarifies when not to use the filter parameters (address, domain, etc.). However, advanced parameters like retrieval_mode, case_law_boost, and candidate_multiplier remain undocumented, leaving gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with 'Search current Polish statutes and return article-level hits,' which uses a specific verb, resource, and output granularity. This clearly distinguishes it from sibling tools like get_article, get_case, and search_case_by_signature, which target specific documents or case searches.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly says 'Start here' for natural-language issues or direct citations, and instructs not to add domain, address, article, act_type, or status filters unless the user provided them. This gives strong when/when-not guidance, though it does not name alternative tools explicitly, keeping it from a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
verify_quoteARead-onlyInspect
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.
| Name | Required | Description | Default |
|---|---|---|---|
| quote | Yes | ||
| saos_id | Yes | ||
| min_similarity | No |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations cover the safety profile (readOnly, non-destructive, openWorld), and the description goes well beyond them: it enumerates the three verdict states with their meanings, explains the normalization rules behind 'exact', and instructs what to do on ok=false with a fallback hint. This is unusually rich behavioral disclosure.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core purpose, then prerequisites, then verdict semantics, then fallback behavior — a sensible order with no filler. It is a little dense across five sentences for a three-parameter tool, but every clause conveys actionable information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
An output schema exists, so return structure need not be documented, yet the description still explains the verdict vocabulary and the ok/fallback-hint protocol. Combined with the prerequisite and normalization notes, an agent has everything needed to call it correctly and interpret the result.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description carries the burden. It documents saos_id (integer id sourced from search_case_by_signature or related_cases), quote formatting ('as quoted', with whitespace/quote-mark/dash normalization), and implies the similarity score that min_similarity controls. min_similarity itself is never named or explained, which is the one gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: 'Check whether a supplied quote appears in a SAOS judgment.' It also articulates scope precisely — 'validates wording, not whether the quote supports a legal conclusion' — which distinguishes it from research/argument-oriented siblings. An agent can tell it apart from get_case or search_case_by_signature without opening any schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives an explicit precondition ('Use only after resolving the judgment to a saos_id'), names where the saos_id comes from (search_case_by_signature or related_cases), and states what the tool is not for. It also handles the failure path: retry versus falling back to saos_url with the agent's own web tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
- Added
research_cases
1 tool update
- Removed
health
1 tool update
- Changed
search_law1 field changed- added
Input schema / properties / retrieval_modeAdded value: +{ + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "title": "Retrieval Mode" +}
7 tool updates
- First observed
get_article - First observed
get_case - First observed
health - First observed
related_cases - First observed
search_case_by_signature - First observed
search_law - First observed
verify_quote
Related MCP Connectors
Polish and EU law: statutes, rulings, UODO/UOKiK/KNF, EU regulations, citation checks. Free tier.
Polish law from Dziennik Ustaw: full text of statutes, daily in-force status, wording by date.
1Polish law via Ansvar Gateway. Cited, OAuth + paid tier.
Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic search over Polish court judgments and legislative acts via MCP. Allows LLMs to retrieve legal documents using natural language queries.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to search and retrieve Polish statutes, provisions, and EU law cross-references with verified citations, supporting legal research and compliance checks.33 npmApache 2.0
- AlicenseAqualityAmaintenanceVerifies legal citations by fetching the exact, in-force wording of cited articles from official PL and EU legal sources, preventing hallucination by returning verbatim text.25Apache 2.0
- AlicenseAqualityBmaintenanceEnables AI-powered legal research and analysis of Polish legal acts from the Sejm API. Provides comprehensive search, document retrieval, metadata analysis, and content access for legal documents from Dziennik Ustaw and Monitor Polski.1322MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.