Nalegalu MCP
Server Details
Semantic search over Polish law and case law, citing the exact in-force article.
- Status
- Healthy
- Uptime
- 99.9% over 36 days
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- nalegaluorg/nalegalu
- GitHub Stars
- 4
TDQS
Scored across 7 tools
Each tool targets a distinct step in the legal-research workflow: statutes vs judgments, lookup vs discovery vs verification. The closest pair (related_cases and research_cases) is clearly separated by provision-keyed vs natural-language discovery. No two tools would plausibly be selected for the same task.
Most names follow a verb_noun snake_case pattern (get_article, get_case, search_law, verify_quote, search_case_by_signature). research_cases fits the pattern, but related_cases is a noun phrase without a verb, a minor deviation. The convention is otherwise consistent and readable.
Seven tools cover the full statute and case-law research loop without redundancy. Each tool has a distinct responsibility and none feels like filler. This is well within the ideal 3–15 range.
The set covers statute search/retrieval, case citation verification, related-case discovery, judgment retrieval, and quote validation — a coherent end-to-end pipeline. The main gap is the absence of a free-text/keyword SAOS case search, since case access is keyed by provision or signature. Agents can still work around this via research_cases, so the gap is minor.
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 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?
Beyond the readOnlyHint annotation, the description reveals essential behaviors: paging with has_more and offset=next_offset, bounded text excerpts, and fallback to fetching saos_url when ok=false. These details are not captured in annotations and meaningfully inform agent behavior.
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 three sentences, front-loaded with purpose, and every sentence carries essential operational detail (source restriction, paging, fallback). There is no filler or redundancy.
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 that an output schema exists to document return values, the description covers all necessary contextual nuances: ID provenance, pagination, excerpt bounds, and graceful handling of SAOS unavailability. It is sufficient for an agent to invoke the tool correctly without further assumptions.
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?
With 0% schema description coverage, the description must add parameter meaning. It explains saos_id (must come from related_cases or search_case_by_signature) and offset (used for paging), but max_chars is not mentioned at all. This partial coverage is adequate but leaves a clear gap for one of the three parameters.
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 clearly states the tool's function: 'Fetch one SAOS court judgment (metadata + bounded text excerpt)'. The verb 'Fetch' and resource 'SAOS court judgment' are specific, and the bounded excerpt detail distinguishes it from sibling tools like get_article (articles) and search_case_by_signature (search results).
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 guidance is given: 'Use only with a saos_id returned by related_cases or search_case_by_signature'. This narrows usage to a specific workflow. It also provides paging instructions and a fallback action when SAOS is unavailable, fully addressing when and how to use the tool.
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?
Goes far beyond the read-only annotation by disclosing the internal refinement first search of then follow provision-to-case links then deduplicate by SAOS ID. Also reveals exact runtime behavior for rerank=false versus rerank=true, including satellite conditions such as Cohere reorderer config and the rerank_fetch_limit cap. This is strong behavioral transparency.
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?
Every sentence carries unique and decision-relevant information, and the opening line front-loads the primary purpose. The three-block structure moves cleanly from what to how to important cautions, with no purely ornamental text.
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 an output schema present, the description does not need to detail return values. It covers the discovery pipeline, rerank behavior, and behavioral limits. Slightly less complete for the full parameter matrix, but overall sufficient for an agent to invoke the tool with reasonable expectations.
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 parameter coverage is 0%, so the description must be nearly alone in explaining the 9 params. It meaningfully explains rerank, rerank_fetch_limit, and implicitly provision_limit via 'several provisions', but leaves candidate_limit, context_max_chars, case_text_max_chars, cases_per_provision, and rerank_result_limit undocumented. The star-heavy parameter semantics only partially compensates.
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 action and object: 'Discover related-case candidates for a natural-language legal issue'. It goes beyond the name by describing the discovery scope and clarifies that the tool does not decide holdings, which separates it from judgment-deciding tools like get_case.
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?
Provides clear situational guidance: this is a discovery stage, rerank=false is the inexpensive deterministic path, and successors should call get_case for any judgment used in an answer. It does not explicitly contrast itself with the sibling related_cases tool, so the guidance is not complete across all alternatives.
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 readOnlyHint: it discloses the local-first then live SAOS query behavior, explains the meaning of each verdict value, and highlights the implication of has_text=false for quote verification. This is rich, non-obvious behavior that directly affects interpretation of results.
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 dense yet compact, front-loaded with the purpose and example, then organized around verdict semantics and caveats. Every sentence adds needed information; there is no filler or redundancy.
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 and existence of an output schema, the description fully covers input expectations, output interpretation, edge cases (outside coverage, SAOS unreachable), and limitations (has_text=false). It leaves no significant question unanswered about when and how to use the tool.
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 descriptions for parameters, but the description compensates by giving a concrete example for signature and enumerating the accepted court_type values. It does not explicitly explain limit, but its role as a result count is inferable from the name and default, making the gap minor.
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 a specific verb-resource pair, 'Verify a cited case signature', and provides an example format ('II CSK 448/14'). It clearly distinguishes itself from siblings like verify_quote and search_law by focusing on signature verification rather than quote checking or legal search.
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 states when to use the tool ('Use before relying on a judgment cited by a user or another agent') and provides decision rules for each verdict state, including directing users to CBOSA for administrative courts and warning against treating 'unverified' as nonexistent. It also references the sibling tool verify_quote in the context of has_text=false, effectively covering alternatives.
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?
Beyond readOnlyHint and destructiveHint, the description discloses the exact verdict types ('exact', 'near_match', 'not_found'), the normalization behavior, and the fallback hint logic. This gives the agent a clear picture of what to expect without contradicting annotations.
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, front-loaded, and every sentence earns its place—purpose, usage prerequisites, verdicts, and failure handling. No fluff or redundancy.
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?
For a tool with an output schema and moderate complexity, the description covers what it does, when to use it, how to use it, expected verdicts, and fallback behavior. It is complete enough for an agent to invoke correctly without further context.
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 explains two parameters directly: 'Pass the saos_id... and the fragment as quoted.' It also implies the role of min_similarity via 'near_match (best passage plus similarity score)'. However, it doesn't explicitly explain how min_similarity is used or how to set it, which is a minor 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?
The description clearly states the tool's purpose: 'Check whether a supplied quote appears in a SAOS judgment.' It specifies the resource (SAOS judgment) and the action (verify quote), and distinguishes it from siblings by focusing on verification rather than retrieval or search.
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 guidance is provided: 'Use only after resolving the judgment to a saos_id' and 'Pass the saos_id (from search_case_by_signature or related_cases)'. It also tells when not to retry: 'If ok=false with a fallback hint, fetch saos_url with your own web tools instead of retrying.' This clearly defines usage context and alternatives.
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 law: search statutes (ISAP), court rulings, verify citations. Free tier + paid plans + x402.
Polish law via Ansvar Gateway. Cited, OAuth + paid tier.
Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.
Latvian law search: in-force statutes, verbatim articles, verified Q&A. Anonymous, read-only.
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.44 npmApache 2.0
- AlicenseAqualityCmaintenanceVerifies 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
- AlicenseAqualityCmaintenanceEnables 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.1321MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.