Skip to main content
Glama

Merit — Ukrainian Law & Registers

Search Ukrainian Legislation

ua_law__search
Read-onlyIdempotent

Search Ukrainian legislation by free text and/or metadata filters.

One entry per matching document, carrying the nreg get_document_toc takes. Never text.

in_force_on_date keeps only acts the portal's own commencement and repeal events put in force that day, dropping any act with no such event recorded. total counts what it kept; total_relation: 'gte' marks a floor.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ua_law__search"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoFree text over document titles.
limitNo
topicNoTopic id; see list_dict_values.
offsetNo
statusNoStatus id; see list_dict_values.
type_idNoType id; see list_dict_values.
in_scopeNoOnly legislation the corpus treats as in scope.
in_force_on_dateNoIn force on this day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds real behavior: results omit full text ('Never text'), each hit carries an `nreg` usable as a handoff key, `in_force_on_date` drops acts with no commencement/repeal event, and `total_relation: 'gte'` signals a floor count. Pagination behavior is the main omission.

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 purpose then return shape then filter caveats; no filler sentences. The telegraphic style ('Never text.', backticked identifiers) is dense but every line carries information, though the terseness borders on cryptic for a first-time reader.

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, no-required-param search with no output schema, the description covers result cardinality, the key field, filter caveats and total semantics. It stops short of describing limit/offset paging behavior or ordering, a minor gap given the schema defaults.

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 75%, so most params are self-documented plus pointer to list_dict_values. The description still adds genuine semantics beyond the schema for `in_force_on_date` (portal commencement/repeal events, dropping unrecorded acts) and for the total/total_relation result fields, which the schema does not explain.

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: 'Search Ukrainian legislation by free text and/or metadata filters.' It also clarifies the unit of return ('One entry per matching document') which separates it from the sibling ua_law__search_units, but never names that sibling explicitly.

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

Usage Guidelines3/5

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

'by free text and/or metadata filters' implies the calling context, and the mention of `nreg` for `get_document_toc` hints at the follow-up step. However there is no explicit when-to-use vs ua_law__search_units or ua_law__get_document, and no stated exclusions.

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.