Skip to main content
Glama

Pl Law Get

pl_law_get
Read-onlyIdempotent

Fetch one Polish act by id from pl_law_search (e.g. "DU/1974/141" for the Labour Code, or "Dz.U. 1974 poz. 141"). Returns title, type, in-force status (inForce and the Sejm status), citation, announcement/promulgation/entry-into-force dates, issuing bodies, related acts (amending acts, consolidated-text notices, legal basis) and the text. Default text is the Sejm's up-to-date consolidated text when one exists (informational, not authentic), else the text as published; text_kind says which. Pass article (e.g. "22" or "10a"; "section 2" for a regulation) for one article or paragraph only. Without article the text is capped at max_chars; use offset to read on.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "DU/1974/141",
      "article": "22"
    },
    "name": "pl_law_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAct id such as "DU/1974/141", "DU/2024/1", "MP/2023/10", or a citation "Dz.U. 1974 poz. 141"
offsetNoCharacter offset into the text to continue a capped read (default 0)
articleNoArticle number, e.g. "10" or "10a" (returns that article only)
max_charsNoCap on returned text when no article is given (default 20000, max 100000)
text_kindNo"consolidated" (up-to-date unofficial text, default when it exists) or "published" (text as promulgated)

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
textNo
typeNo
foundNo
titleNo
sourceNo
statusNo
articleNo
citationNo
in_forceNo
keywordsNo
pdf_textNo
announcedNo
html_textNo
issued_byNo
text_kindNo
amended_byNo
data_as_ofNo
legal_basisNo
promulgatedNo
empty_reasonNo
authorised_byNo
repealed_actsNo
text_kind_noteNo
entry_into_forceNo
consolidated_text_noticesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds substantive behavior: which text is chosen by default (Sejm consolidated, explicitly flagged as informational and not authentic) versus as-published, and how text_kind reports the choice. It also discloses truncation at max_chars and how to continue via offset, which is exactly the kind of operational detail annotations cannot convey.

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 action, id examples, and the sibling reference, then moves through return fields, text-selection semantics, and pagination in a logical order with no filler. The enumeration of return fields is somewhat redundant given an output schema exists, which is the only thing keeping it from a 5.

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?

For a five-parameter read tool with full schema coverage, annotations, and an output schema, the description covers everything an agent needs: id format, article scoping, text source semantics, and continuation after truncation. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description goes further: it clarifies the consolidated-vs-published default rule for text_kind, names 'section 2' as the article form for regulations (a case the schema omits), and pairs max_chars with offset as a single read-on mechanism. That is real added meaning rather than restatement.

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 ('Fetch one Polish act by id') and ties the id to the sibling that produces it ('from pl_law_search'), with concrete id examples. An agent can distinguish this single-record fetch from pl_law_search without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description establishes the search-then-fetch workflow by naming pl_law_search as the source of the id, and explains the article-vs-full-text choice plus the offset continuation path. It stops short of an explicit 'do not use this to search' exclusion, but the retrieval context is unambiguous.

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.