Skip to main content
Glama

Search Legislation

search_legislation

Search Latvia’s statutes, acts, codes, and regulations via Likumi.lv and European/International legal registries; filter by enactment year and result limit.

Instructions

Search Latvia (LV) national legislation (statutes, acts, codes, regulations) via Likumi.lv Official Legislation Portal (Latvijas Vēstnesis) and European/International legal registries.

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

Input Schema

NameRequiredDescriptionDefault
yearNoOptional enactment year filter.
limitNoMaximum number of results to return.
queryYesKeywords or statute title/number to search in Latvia legislation.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does add useful provenance by naming the underlying portals, which tells the agent results are authoritative official sources. However, it does not state that the operation is read-only, whether there are rate limits, or how results are ranked, so behavioral coverage remains partial.

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?

A single front-loaded sentence with the resource and scope stated first. The parenthetical '(Latvijas Vēstnesis)' and the dual portal list add length without much decision value, but nothing is wasted outright.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the three parameters are simple. Still, the description leaves ambiguity about whether the tool covers only Latvian law or also EU/international instruments, and offers no guidance on how to phrase a query, which matters for a legal search tool.

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%, so query, year, and limit are already documented in the schema; the description adds no extra meaning such as query syntax, wildcard behavior, or how the year filter interacts with statute numbers. Baseline 3 applies when the schema does the heavy lifting.

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?

The description names a specific verb (Search) and resource (Latvia national legislation: statutes, acts, codes, regulations), which clearly separates it from case-law siblings like search_case_law and search_tiered_court_decisions. It stops short of explicitly naming a sibling or stating a boundary, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

It says where the search runs (Likumi.lv, European/International registries) but gives no when-to-use guidance, no exclusions, and no pointer to alternatives such as search_case_law for court decisions or verify_citation for checking a reference. The agent must infer routing from the resource noun alone.

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