Skip to main content
Glama
ua-legislation-mcp
by Rmonakov

Текст акта (стаття, пошук, зміст)

get_act_text
Read-onlyIdempotent

Retrieve official Ukrainian legislation text for the current or a specified edition, with options to get an outline, a single article, or search matches with context.

Instructions

Повертає офіційний текст акта в поточній або вказаній редакції. Для довгих актів використовуй article (одна стаття), find (пошук фрагмента з контекстом і назвою статті) або outline (зміст: розділи, глави, статті). Без цих параметрів текст видається частинами по max_chars символів (параметр offset — для продовження). Кожна відповідь містить дату редакції і посилання на неї — наводь їх у результаті.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nreg": "<nreg>"
    },
    "name": "get_act_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
findNoФрагмент тексту для пошуку в акті
nregYesКод документа nreg або посилання zakon.rada.gov.ua (можна з /edРРРРММДД)
offsetNoЗ якого символу продовжити вивід
articleNoНомер статті: «23», «23-1», «23¹»
editionNoДата редакції: РРРРММДД або ДД.ММ.РРРР. Без неї — поточна редакція
outlineNoПовернути зміст (розділи, глави, статті) замість тексту
max_charsNoМаксимум символів у відповіді (типово 30000)
context_linesNoСкільки рядків контексту показувати навколо збігу find (типово 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world access, so the safety profile is covered. The description adds genuinely new behavior: default output is truncated into max_chars chunks with offset continuation, and every response carries the edition date and a link that the caller should surface. Return-shape specifics beyond that (structure of the JSON, error cases) are not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences, zero padding: purpose first, then mode routing, then chunking behavior, then the output citation requirement. Each sentence carries distinct, actionable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no output schema, the description covers the mode selection, pagination mechanics, and what metadata accompanies the text. It leaves out response structure detail and edge cases such as invalid article numbers or a missing edition, which keeps it from being fully complete.

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 the baseline is 3, but the description adds meaning the schema does not: it frames article/find/outline as mutually exclusive retrieval modes, explains that find returns the matching fragment plus the article title, and that offset exists to continue a chunked response. It does not clarify interaction rules between find and context_lines or between article and edition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: "Повертає офіційний текст акта в поточній або вказаній редакції," plus the three access modes. It is clear what the tool returns, but it never names the neighbouring get_act_card/check_act_editions tools to draw the boundary explicitly.

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?

Gives concrete routing advice inside the tool: for long acts use article for a single article, find for fragment search with context, outline for the table of contents. It also explains the fallback when none of those are supplied (chunked text via max_chars/offset). It stops short of saying when to prefer this over get_act_card or search_acts.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.