Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POLISH_LAW_REFNoBranch used for HTTP mode.main
POLISH_LAW_REPONoRepository (owner/name) used for HTTP mode.MikolajKondej/polish-law
POLISH_LAW_KINDSNoComma-separated kinds for HTTP mode.unified
POLISH_LAW_DATA_DIRNoPath to a local clone of polish-law. If set, the server reads data from the local clone instead of over HTTP, enabling faster full-text search across all acts.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Search and read Polish statutes (teksty ujednolicone) from the public polish-law data repository. Start with search_acts to find an act id such as DU/1992/86, then get_provision for a citation like 'art. 1 ust. 2', or get_act_text to read a whole act in pages. Tekst ujednolicony (consolidated text): current but unofficial, prepared by the Chancellery of the Sejm and read automatically from PDF files by polish-law-toolkit; errors are expected. It has no official force: always check the text published in Dziennik Ustaw (Journal of Laws). / Tekst ujednolicony jest aktualny, ale nieurzędowy; odczytano go automatycznie z PDF-ów, więc mogą w nim być błędy. Zawsze sprawdź Dziennik Ustaw. Always tell the user that the text is unofficial and may contain reading errors.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_kindsA

List the kinds of text available (e.g. 'unified' = consolidated texts) and how many acts each holds.

search_actsA

Find acts by words in their title or address (diacritics ignored), e.g. 'podatek dochodowy osob prawnych' or 'Dz.U. 1992'. Returns ids to pass to the other tools. Titles only: to search inside provisions use search_provisions.

get_actA

Metadata of one act: title, dates, what the consolidated text is based on, source PDF, versions seen. act_id is an ELI id such as DU/1992/86 (or an address such as 'Dz.U. 1992 nr 21 poz. 86').

get_act_textA

Read an act as Markdown, in pages. Statutes are long: use next_offset from the answer to continue, or prefer get_provision when you know the citation.

get_provisionB

One provision of an act by citation, e.g. 'art. 15', 'art. 1 ust. 3 pkt 1' or 'art. 24aa ust. 2'. With include_children (default) the sub-units (ustępy, punkty, litery) come too, in reading order.

search_provisionsA

Find provisions containing ALL the given words (diacritics ignored). With act_id it searches that act. Without it, it searches every act of the kind, which works only when the server reads a local clone of the data (POLISH_LAW_DATA_DIR); otherwise give an act_id (find it with search_acts).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 6 tools

Disambiguation5/5

Each tool has a clearly distinct target: list_kinds (corpus summary), search_acts (title lookup) vs search_provisions (content lookup), get_act (metadata) vs get_act_text (full paginated text) vs get_provision (single citation). The overlap between get_act_text and get_provision is explicitly resolved by the description's guidance to prefer get_provision when a citation is known.

Naming Consistency5/5

Uniform snake_case verb_noun pattern throughout (list_kinds, search_acts, get_act, get_act_text, get_provision, search_provisions). The two verbs (list/get/search) map predictably onto summary/metadata vs. retrieval vs. lookup semantics.

Tool Count5/5

Six tools is well within the ideal range and each earns its place: corpus overview, two search axes, metadata, bulk text, and single-provision retrieval. Nothing redundant and nothing feels missing at the count level.

Completeness4/5

The read-only retrieval lifecycle (discover kinds -> search acts -> act metadata -> text -> provision -> search inside provisions) is fully covered with no dead ends. Minor gaps remain: no table-of-contents/structure endpoint for long acts, no way to retrieve historical/specific versions despite metadata mentioning versions seen, and search_provisions is crippled without a local data clone.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues