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

Пошук нормативно-правових актів

search_acts
Read-onlyIdempotent

Search Ukraine’s official legislation database by title words, act number, adoption date, or year; returns the nreg document code, status, details, and current edition date for further retrieval.

Instructions

Шукає акти в базі «Законодавство України» за словами назви, номером (1315-VII, 1178-2022-п), датою прийняття (05.06.2014) або роком. Повертає код документа nreg, статус, реквізити й дату поточної редакції. nreg потрібен для решти інструментів. Перший пошук завантажує офіційний перелік документів (~50 МБ) і може тривати до хвилини.

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": {
      "query": "<query>"
    },
    "name": "search_acts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoСкільки результатів повернути (типово 10)
queryYesСлова з назви та/або номер акта, напр. «про стандартизацію», «1315-VII», «Цивільний кодекс»
in_force_onlyNoЛише чинні акти

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses the return payload fields and a costly cold-start behavior: the first search loads an official document list (~50 MB) and can take up to a minute. That latency warning is exactly the kind of operational context annotations cannot convey and directly affects how an agent should sequence calls.

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 short sentences, zero filler: capability first, then return values, then the routing hint, then the performance caveat. The most decision-relevant facts (what it searches, nreg dependency) are front-loaded.

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?

With no output schema present, the description carries the burden of describing return values and does so (nreg, status, requisites, current-version date). Combined with the cold-start latency note and the nreg dependency, an agent has everything needed to call this correctly and plan around it.

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

Parameters3/5

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

Schema coverage is 100%, so query, limit and in_force_only are already documented with examples, which sets the baseline at 3. The description does add that query also accepts an adoption date (05.06.2014) or a bare year, which the schema does not mention, but it says nothing extra about limit or in_force_only.

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 (акти в базі «Законодавство України») and enumerates the searchable dimensions: title words, number formats, adoption date, year. It also names what is returned (nreg, status, requisites, current-version date), letting an agent distinguish it from get_act_text or get_act_card at a glance.

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 sentence «nreg потрібен для решти інструментів» clearly positions this as the entry point before the other tools, which is real routing guidance. It stops short of naming an explicit alternative or a when-not condition (e.g., when to prefer list_recent_updates or search by exact number vs title), so it is clear but not exhaustive.

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