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

Картка акта і редакції

get_act_card
Read-onlyIdempotent

Retrieve a Ukrainian legal act's card—title, validity status, details, current edition date, future editions, and revision history—before deciding whether a norm is in force.

Instructions

Повертає картку документа: назву, статус (чинний / втратив чинність / не набрав чинності), реквізити, дату поточної редакції, майбутні редакції та історію редакцій з підставами. Використовуй перед будь-яким висновком щодо чинності норми.

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_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
nregYesКод документа nreg (напр. 1315-18, 254к/96-вр, 1178-2022-п) або посилання zakon.rada.gov.ua

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the safety and repeatability profile is covered. The description adds the useful behavioral detail that the response reports status as one of three enumerated states and includes future editions plus edition history with grounds, which tells the agent what to expect. It does not cover failure behavior for an unresolvable nreg or any latency/auth constraints, so it adds context but not rich disclosure.

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?

Two sentences, both front-loaded: the first densely enumerates the returned fields, the second states the call-ordering rule. Nothing is redundant with the title and no filler is present.

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?

With only one required parameter and no output schema, the description carries the burden of describing the return payload, and it does so by listing every field including the three status values and the grounds attached to edition history. Minor gaps remain: it does not say what happens on an invalid or ambiguous nreg, and 'реквізити' is left unexpanded.

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 description coverage is 100% and the single nreg parameter already documents accepted formats with three concrete examples and the alternative URL form. The description adds no syntax, normalization, or resolution guidance beyond that, so the baseline of 3 applies — the schema does all the work here.

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?

The description opens with a specific verb and resource ('Повертає картку документа') and then enumerates exactly what that card contains: name, status, requisites, current-edition date, future editions, and edition history with grounds. This enumeration implicitly but clearly separates it from siblings like get_act_text (full text) and check_act_editions (edition check), so an agent can pick it without opening the 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?

It gives an explicit usage trigger: 'Використовуй перед будь-яким висновком щодо чинності норми' — call this before drawing any conclusion about whether a norm is in force. That is concrete sequencing guidance, but there is no when-not condition and no sibling is named as an alternative for adjacent tasks (e.g. retrieving text).

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