Skip to main content
Glama

Fi Law Get

fi_law_get
Read-onlyIdempotent

Fetch one Finnish act or decree (consolidated text) by id from fi_law_search, in the Finnish citation form "number/year" such as "1050/2018" (Data Protection Act); "2018/1050" is accepted too. Returns title, type, in-force status and entry-into-force date, the amending acts, citation and the text. Pass section (e.g. "6", "36 a" for 36 a section , or "6:1" for chapter 6 section 1 in acts that number sections per chapter) for one section only; without it the text is capped at max_chars with a contents list. Text is in Finnish (or Swedish with lang="swe") exactly as Finlex publishes it.

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": {
      "id": "1050/2018",
      "section": "6"
    },
    "name": "fi_law_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAct id as "number/year", e.g. "1050/2018"
langNofin (default) or swe
sectionNoSection number, e.g. "6" or "36 a"; in acts that restart numbering per chapter use chapter:section, e.g. "6:1"
max_charsNoCap on returned text when no section is given (default 20000, max 100000)

Output Schema

NameRequiredDescriptionDefault
idNo
urlNo
hintNo
langNo
noteNo
textNo
typeNo
foundNo
titleNo
sourceNo
statusNo
repealsNo
sectionNo
versionNo
contentsNo
truncatedNo
amendmentsNo
data_as_ofNo
valid_fromNo
total_charsNo
valid_untilNo
empty_reasonNo
section_countNo
section_titleNo
text_producedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses key behavior: returned fields, Finnish or Swedish text exactly as Finlex publishes it, section-limited versus capped whole-text retrieval, and the contents list when no section is requested.

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?

The description is dense and front-loaded, with every sentence contributing relevant retrieval or parameter guidance. There is minor awkwardness in the section examples, but the structure remains clear and appropriately sized for the tool's complexity.

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?

Given the tool's complexity, four parameters, and existing output schema, the description covers the essential retrieval model, citation formats, section behavior, language handling, truncation, and returned content. An agent has enough context to invoke it correctly.

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 already 100%, so the baseline is 3. The description adds useful meaning beyond the schema, notably that the reversed citation form "2018/1050" is accepted, that section retrieves only one section, and that max_chars applies when no section is passed.

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 states a specific verb and resource: fetch one Finnish act or decree (consolidated text) by id. It also clearly distinguishes the tool from fi_law_search by framing this as retrieval by id rather than search.

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?

The description explains that the id comes from fi_law_search and describes when to use section versus whole-act retrieval, including truncation behavior when no section is given. It does not explicitly state when not to use the tool or name alternatives beyond fi_law_search.

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.