Skip to main content
Glama

get_legislation

Read-onlyIdempotent

Retrieve one act by CELEX ID, Lex-Ray ID, nickname, or uk-/eu- prefix. 'meta' is the bibliographic record (titles, dates, Official Journal reference, EuroVoc concepts, amendments and relationships to other acts) and needs no credentials. 'data' adds the parsed legal content — recitals, articles, annexes, definitions — and 'full' adds the rendered HTML. Every level carries web_url, the act's Lex-Ray page, and a currency block: the day the answer was computed for, the commencement state on that day, and which version of the act is in force. Every answer also carries pending_amendments: proposals that propose to amend this act, each labelled in_flight / concluded / unknown, stamped with the reading date it was resolved against. These are PROPOSED, not enacted — never quote one as law.

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": {
      "celex_id": "<celex_id>"
    },
    "name": "get_legislation"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoLevel of detail: 'meta' (titles, dates, OJ reference, classifications)meta
celex_idYesThe CELEX ID, Lex-Ray ID, nickname, or jurisdiction-prefixed nickname (e.g., '32016R0679', 'FCA-TS-s140', 'gdpr', 'uk-gdpr')
fetch_if_missingNoLive fetch fallback: false only for this caller; unknown acts return structured not_found without an outbound EUR-Lex fetch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses that 'meta' requires no credentials, that every level returns web_url and a currency block (computation day, commencement state, version in force), and it explains the pending_amendments block with its in_flight/concluded/unknown labels plus an explicit warning never to quote a proposal as law. That is substantive behavioral context an agent cannot get from the annotations.

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?

Front-loaded with the retrieval contract and identifier forms, then the detail tiers, then the return-shape caveats. The pending_amendments warning is emphatic but earns its space; the running em-dash clauses make it denser than it needs to be.

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 does the heavy lifting of describing the return payload (web_url, currency block, pending_amendments) and even covers the not_found path via the fetch_if_missing semantics. The only real gap is the detail-level mismatch, which leaves the agent unsure which tiers are actually callable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description describes 'data' and 'full' detail levels that the schema's `detail` enum does not permit (only 'meta' is allowed). An agent following the description could pass detail="data" and fail validation, which is actively misleading rather than merely redundant.

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 opens with a precise verb+resource pair ('Retrieve one act') and enumerates the accepted identifier forms (CELEX ID, Lex-Ray ID, nickname, uk-/eu- prefix), so an agent knows exactly what the tool returns. It does not name or contrast the siblings (search_instruments, get_timeline, get_changes), leaving the lookup-vs-search distinction to be inferred.

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 gives clear operational context: 'meta' needs no credentials, and the detail tiers are explained in terms of what each adds. It stops short of explicit when-to-use routing (e.g. 'use search_instruments first if you don't have an ID') or when-not-to-use exclusions.

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.

Resources