Skip to main content
Glama

Search Romanian legislation

search_legislation
Read-onlyIdempotent

Finds Romanian normative acts on legislatie.just.ro by citation or title words: 'Legea 31/1990', 'OUG 195/2002', 'HG 1/2016', 'Codul fiscal', 'Codul muncii', or words from the title. Ranked so the main act comes first (codes and laws before decrees/orders). Returns act ids for get_legal_act / get_legal_article. Costs 1 credit; not billed if nothing matches. Source: legislatie.just.ro (Ministry of Justice); informational, consolidated forms are unofficial, only Monitorul Oficial text is authentic.

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": {
      "q": "<q>"
    },
    "name": "search_legislation"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesCitation or title words, e.g. 'Legea 31/1990' or 'Codul fiscal'
typeNoAct type filter, e.g. LEGE, ORDONANTA DE URGENTA, HOTARARE, ORDIN
yearNoYear of the act, four digits, e.g. 1990
limitNoMax hits to return, 1 to 50. Default 10
numberNoAct number within that year, e.g. 31 for Legea 31/1990

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit / description
      Added value: +"Max hits to return, 1 to 50. Default 10"
    • addedInput schema / properties / number / description
      Added value: +"Act number within that year, e.g. 31 for Legea 31/1990"
    • addedInput schema / properties / year / description
      Added value: +"Year of the act, four digits, e.g. 1990"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and non-destructive, yet the description adds real context beyond them: relevance ranking (codes and laws before decrees/orders), a 1-credit cost with no charge on zero matches, the upstream source, and a caveat that consolidated forms are unofficial versus Monitorul Oficial. Those billing and authenticity details are exactly the behavior an agent cannot get from the structured fields.

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?

One dense paragraph with the core purpose front-loaded, followed by ranking, downstream usage, cost, and provenance in descending order of importance. Every clause carries information an agent needs; nothing is filler.

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 no output schema, the description tells the agent what comes back (act ids) and enough ranking and billing context to call it confidently. Minor gaps remain around result shape, hit counts, or pagination beyond the limit parameter.

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 each parameter is already documented, and the baseline of 3 applies. The description's citation examples hint at how 'Legea 31/1990' decomposes into q/year/number, but it never explicitly explains that mapping or the type filter values.

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?

Specific verb ("Finds") plus a precise resource (Romanian normative acts on legislatie.just.ro) with concrete citation examples ('Legea 31/1990', 'Codul fiscal'). It also distinguishes itself from siblings by stating it returns act ids that feed get_legal_act / get_legal_article.

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?

It makes the search-then-fetch workflow clear by naming get_legal_act / get_legal_article as the consumers of the returned ids, which implies this is the entry point when the act id is unknown. It stops short of an explicit "use this when you don't already have an id" statement or any exclusion for lookup_company-style sibling tools.

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.