Skip to main content
Glama

finland-law-mcp-server

Search Finnish Court Decisions

filaw_search_decisions
Read-only

Find KKO, KHO, TT, or MAO decisions by exact Finlex keyword, diary number, year, or publication change date. Results start with the oldest matches. Pass a result URI to filaw_get_decision to read it.

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": {
      "court": "<court>"
    },
    "name": "filaw_search_decisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoDefaults to precedent for KKO and KHO or decision for TT and MAO. The summary archive is available only for KHO.
courtYesSupreme Court (KKO), Supreme Administrative Court (KHO), Labour Court (TT), or Market Court (MAO).
limitNoMaximum rows to return. Values above 10 are clamped to 10.
cursorNoContinuation from the preceding page of the same search.
keywordNoExact Finlex keyword label. The first page also tries initial capitalization if there are no matches.
end_yearNoLast document year, inclusive.
languageNoSource expression language.
start_yearNoFirst document year, inclusive.
diary_numberNoExact published diary number, for example S2022/77.
published_sinceNoPublication or change cutoff as an ISO 8601 timestamp with a timezone.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
itemsNoMatching decisions in Finlex list order.
limitNoApplied page size.
sourceNoSource and license attribution.
noticesNoPage-size adjustments, search recovery or source coverage notices when relevant.
next_cursorNoContinue the same search after the last listed expression.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description nonetheless adds a genuinely non-obvious behavioral trait — that results are returned oldest-first, which directly affects pagination expectations — and discloses that matches carry URIs consumable by filaw_get_decision. It omits the limit-clamping-to-10 and KHO-only summary archive behaviors, but those live in the schema.

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?

Three short sentences, front-loaded with purpose and capability, then ordering behavior, then the hand-off to the read tool. No filler, no restatement of annotations.

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 an output schema present, the description needn't explain return fields, and it correctly omits them. It covers purpose, ordering, and the follow-up call for a 10-parameter tool. A minor gap remains in not flagging the 10-row result cap or cursor-based paging at the description level, though the schema covers both.

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% and every parameter is documented in the input schema, so the schema carries the semantic load. The description restates the filter concepts and reinforces the "exact" keyword matching constraint, but adds no format or interaction detail beyond what the schema already provides. Baseline 3 is appropriate.

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 ("Find ... decisions") plus the four court series and the four supported lookup keys (keyword, diary number, year, publication change date). The resource type alone separates it from the statute and government-proposal search siblings, and the closing sentence makes the search/fetch split with filaw_get_decision explicit.

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?

Gives clear context for when to use this tool (searching decisions) and an explicit next step: pass a result URI to filaw_get_decision to read the full text. It stops short of exclusions or filter-selection advice — nothing says when to prefer keyword over diary_number, or how to resume with the cursor.

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.