Skip to main content
Glama

Check & Vote: French and EU parliaments

Read the official text of a European act

get_eu_official_text
Read-onlyIdempotent

Official EU legislative text. With 'billId' alone: lists the official versions of a European bill (proposal, Parliament position, adopted act) with the languages each exists in (empty for French bills). With 'textId': reads that version as XHTML in the requested 'language' (with a fallback language, stated in the answer), in windows of 12000 characters ('contentWindow.nextOffset' gives the 'contentOffset' to read on). Give exactly one of 'billId' and 'textId'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_eu_official_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeNoItems per page (default 25, maximum 25).
billIdNoIdentifier of a European bill (jurisdiction EU). Give it alone to LIST its official text versions.
textIdNoIdentifier of one official version, from the list this tool returns for a billId. Give it to READ that version.
languageNoLanguage of the content, ISO 639-1 code of one of the 24 languages of the European Union. Default: fr, the language of the sources. Other languages exist for European texts only, when a translation exists.
contentCharsNoNumber of characters of 'xhtml' to return (default 12000, maximum 30000).
contentOffsetNoIndex of the first character of 'xhtml' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on.

Output Schema

NameRequiredDescriptionDefault
xhtmlNoThe text, as XHTML.
textIdNoIdentifier of the text.
fallbackNoTrue when the requested language was not available and a fallback language was served.
eurLexUrlNoURL of the document on EUR-Lex.
truncatedNoPresent when this answer was shortened to stay short: says what was cut and how to get the rest.
contentWindowNoWhich part of the long text field is returned: field, offset, returned, total, nextOffset (absent at the end).
servedLanguageNoISO 639-1 language actually served.
requestedLanguageNoISO 639-1 language requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish the safe read-only, idempotent profile, and the description adds substantive behavior beyond them: 12000-character read windows with an offset-chaining protocol, a language fallback that is stated in the answer, and the quirk that language lists are empty for French bills.

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?

Two dense sentences with the resource statement front-loaded, followed by each mode in turn and the constraint last. No filler, and every clause carries operational information.

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 seven-parameter, dual-mode tool with an output schema, this is complete: mode selection, windowing, offset continuation, and language fallback are all covered, and return values are left to the output schema. 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 field-level documentation is already handled and the baseline is 3. The description earns a bump by adding the mutual-exclusivity constraint on 'billId' and 'textId' and by explaining how 'contentOffset' relates to the previous answer, none of which the schema encodes.

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 names a specific resource (official EU legislative text) and splits the tool into two clearly stated modes: listing versions with 'billId' alone, and reading a version as XHTML with 'textId'. An agent can tell which mode it needs without opening the schema.

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 states the exact selection condition between the two modes ('Give exactly one of billId and textId') and explains the follow-on read pattern via 'contentWindow.nextOffset'. It does not route the agent against siblings such as get_text for non-EU texts, which is the only real gap.

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