Skip to main content
Glama

Read EU legislative text (compatible)

fetch
Read-onlyIdempotent

Use this to open and cite an EU legislative provision found by search. Simple retrieval of one provision's text by its cite anchor id (e.g. "psd-2 Art 97"), with citation metadata. A provision longer than the response ceiling arrives in part, with metadata.complete false and a metadata.next_cursor that get_provision continues. Accepts only ids this service minted — free-text citations belong to resolve_citation. get_provision returns more: paging, applicability and typed warnings.

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": {
      "id": "<id>"
    },
    "name": "fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAn id from search, or a cite anchor such as "psd-2 Art 97" or "psd-2 Recital 12", or an instrument id such as "psd-2". An optional version qualifier, e.g. "psr (com-2023-367) Art 105", retains its edition and refuses unserved text.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
textYesThe legal text selected from the provision. Full referenced note bodies travel separately in metadata.source_notes; notes do not alter legal block counts or content_hash.
titleYes
metadataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / metadata / properties / cites
      Added value: +{
      +  "description": "What the returned text cites in other acts, in source order, one entry per target. phrase is the text's own wording before the citation. outcome says what this service can open: served (open returns the cited provision), parent_served (open returns a parent; find cited_limb in it), act_only (the text names only the act; get_instrument shows coverage, not what any article says), not_served or not_held (nothing here opens it; check it at source_url or the official text), or unresolved. Open a target when its wording could change the answer. An empty list means no citation was extracted from this text, not that nothing outside this corpus is relevant.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "as_written": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "occurrences": {
      +        "type": "number"
      +      },
      +      "outcome": {
      +        "enum": [
      +          "served",
      +          "parent_served",
      +          "act_only",
      +          "not_served",
      +          "not_held",
      +          "unresolved"
      +        ],
      +        "type": "string"
      +      },
      +      "phrase": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "as_written",
      +      "phrase",
      +      "outcome"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / metadata / properties / pointers_omitted
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Entries left out of cites and terms_used by the size limit. Request a paragraph or point to see them.",
      +  "properties": {
      +    "cites": {
      +      "type": "number"
      +    },
      +    "terms_used": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "cites",
      +    "terms_used"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / metadata / properties / terms_used
      Added value: +{
      +  "description": "The instrument's own defined terms in the returned text that lead somewhere, each with its definition's cite. leads_to lists the provisions the definition refers to, already followed. includes lists categories defined as kinds of this term, and kind_of the categories this term is a kind of, so a provision that applies to those applies to it too; both are read from the definitions, nearest first. An entry with a condition is a category made by a scope article, and the link holds only when the condition, quoted from its cite, is met; for names which of the term's categories an entry concerns. A term absent here may still be defined: get_defined_term returns any definition.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "cite": {
      +        "type": "string"
      +      },
      +      "includes": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cite": {
      +              "type": "string"
      +            },
      +            "condition": {
      +              "type": "string"
      +            },
      +            "term": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "term",
      +            "cite"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "kind_of": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "cite": {
      +              "type": "string"
      +            },
      +            "condition": {
      +              "type": "string"
      +            },
      +            "for": {
      +              "type": "string"
      +            },
      +            "term": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "term",
      +            "cite"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "leads_to": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "term": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "term",
      +      "cite"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / metadata / properties / source_notes / description
      Previous value: -"Null means unverified/unsupported coverage or an older release; consult the typed warning. Not an empty note inventory. Legal content_hash and block counts exclude this attachment. The verified note scope is DMD articles and recitals. Introductory citations are not an MCP provision kind: their notes remain on the website and exports, not attached to articles."New value: +"Null means unverified/unsupported coverage or an older release; consult the typed warning. Not an empty note inventory. Legal content_hash and block counts exclude this attachment. The verified note scope is DMD articles and recitals. Introductory citations are not an MCP provision kind: their notes remain on the website's reading pages, not attached to articles."
  3. Changed1 schema field changed
    • changedOutput schema / properties / metadata / properties / source_notes / description
      Previous value: -"Null means unverified/unsupported coverage or an older release; consult the typed warning. Not an empty note inventory. Legal content_hash and block counts exclude this attachment."New value: +"Null means unverified/unsupported coverage or an older release; consult the typed warning. Not an empty note inventory. Legal content_hash and block counts exclude this attachment. The verified note scope is DMD articles and recitals. Introductory citations are not an MCP provision kind: their notes remain on the website and exports, not attached to articles."
  4. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"An id from search, or a cite anchor such as \"psd-2 Art 97\" or \"psd-2 Recital 12\", or an instrument id such as \"psd-2\"."New value: +"An id from search, or a cite anchor such as \"psd-2 Art 97\" or \"psd-2 Recital 12\", or an instrument id such as \"psd-2\". An optional version qualifier, e.g. \"psr (com-2023-367) Art 105\", retains its edition and refuses unserved text."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world and non-destructive, and the description still adds real behavior: truncation past the response ceiling, metadata.complete=false, a metadata.next_cursor that get_provision continues, and the rule that only service-minted ids are accepted. It also discloses that a version qualifier retains its edition and refuses unserved text.

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?

Three sentences, front-loaded with the action and the id form, then truncation behavior, then the sibling comparison. Dense and mostly waste-free, though the sibling references in the final sentence are packed tightly enough to slow reading.

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 single-parameter read tool with an output schema, this is fully specified: what it reads, which ids are valid, what happens on truncation, and how it differs from the two nearest siblings. Nothing an agent needs to call it correctly is missing.

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, but the description adds a constraint not stated in the schema: only ids this service minted are valid, with free-text citations routed elsewhere. The version-qualifier caveat is partly duplicated from the schema, which keeps this from a 5.

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: 'open and cite an EU legislative provision', retrieved by cite anchor id. It explicitly distinguishes itself from get_provision ('returns more: paging, applicability and typed warnings') and from resolve_citation ('free-text citations belong to resolve_citation'), so an agent can pick it without opening a 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 the entry condition ('a provision found by search'), an explicit exclusion with the alternative named ('free-text citations belong to resolve_citation'), and the upgrade path ('get_provision returns more') with the specific features that justify switching. When-to-use and when-not-to-use are both covered.

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