Skip to main content
Glama

Fi Law Search

fi_law_search
Read-onlyIdempotent

Search Finnish national legislation (Finlex: acts and decrees, consolidated text) by a word from the title, e.g. "tietosuoja" or "tyosopimuslaki" (Finnish) or "dataskydd" with lang="swe" (Swedish). By default only acts in force today; set in_force_only=false to include repealed ones. Optional year_from / year_to narrow by year of enactment. Returns up to 10 matches with id ("1050/2018" = number/year), title, in-force status, entry-into-force date and link. If there are more than 10, narrow with year_from / year_to or a longer title word. Pair with fi_law_get for the text.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the text: fin (Finnish, default) or swe (Swedish)
queryYesWord(s) from the title, e.g. "tietosuoja" (case-insensitive, matched inside the title)
year_toNoLatest year of enactment, e.g. 2020
year_fromNoEarliest year of enactment, e.g. 2000
in_force_onlyNoOnly acts in force today (default true)

Output Schema

NameRequiredDescriptionDefault
hintNo
langNo
countNo
queryNo
sourceNo
resultsNo
data_as_ofNo
empty_reasonNo
in_force_onlyNo
more_possibleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description adds traits beyond them: a default in-force filter, a hard 10-result cap, the id format "1050/2018" = number/year, and the fields returned. It doesn't cover anything like rate limits or matching edge cases, but the behavioral picture is substantially enriched.

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?

Front-loads the resource and query form, then moves through defaults, filters, return shape, overflow handling and the sibling handoff in that order. Every sentence carries operational information; nothing is repeated from the schema verbatim.

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?

For a 5-parameter read-only search with an output schema and full annotations, the description covers scope, defaults, result limits, overflow mitigation and next step. An agent has everything needed to call it correctly and interpret the response.

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; the description still adds meaning by pairing lang with a concrete Swedish query example, framing year_from/year_to as narrowing by year of enactment, and spelling out that in_force_only=false includes repealed acts.

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 (search) and resource (Finnish national legislation, Finlex acts and decrees, consolidated text), and names the sibling it hands off to: "Pair with fi_law_get for the text." An agent can distinguish it from fi_law_get without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use context (title-word search, Finnish or Swedish via lang="swe"), states the default in-force filter and how to override it, and prescribes the remedy when results exceed 10 (narrow with year_from/year_to or a longer title word). The handoff to fi_law_get closes the loop.

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.