Skip to main content
Glama

Check & Vote: French and EU parliaments

Read one version of a bill's text

get_text
Read-onlyIdempotent

Read one version of the text of a bill (filed text, committee text, adopted text...): its wording ('fullText'), explanatory memorandum, summaries and the versions it can be compared with (see compare_texts). Use it when the user asks what a bill SAYS. The wording of a law is long: it is returned in windows of 12000 characters; 'contentWindow.nextOffset' gives the 'contentOffset' to read on.

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": {
      "textId": "<textId>"
    },
    "name": "get_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textIdYesText identifier: a 'textId' of get_bill ('texts') or of get_vote.
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 'fullText' to return (default 12000, maximum 30000).
contentOffsetNoIndex of the first character of 'fullText' to return. Use the 'nextOffset' of the previous answer's 'contentWindow' to read on.

Output Schema

NameRequiredDescriptionDefault
idNoIdentifier.
titleNoTitle.
billIdNoIdentifier of the bill.
numberNoNumber of the text.
pdfUrlNoURL of the PDF at the source.
relatedNoCalls that naturally follow this one, with identifiers already filled: the operation, the MCP tool that makes it (null when none) and the path to call.
authorIdNoIdentifier of the author in the people registry.
fullTextNoThe full text.
billTitleNoTitle of the bill.
roleLabelNoRole of the text within the bill (French).
sourceUrlNoURL of the source.
truncatedNoPresent when this answer was shortened to stay short: says what was cut and how to get the rest.
typeLabelNoKind of text (French).
authorNameNoName of the author or filer.
filingDateNoFiling date.
legislatureNoLegislature.
longSummaryNoLong summary.
natureLabelNoNature of the text (French).
pdfAvailableNoTrue when a PDF is held for the text.
shortSummaryNoShort summary.
contentWindowNoWhich part of the long text field is returned: field, offset, returned, total, nextOffset (absent at the end).
cosignatoriesNoCo-signers.
adoptionStatusNoAdoption status, in the source's words (French).
fullTextFromOcrNoTrue when 'fullText' came from optical character recognition (may contain errors).
fullTextFromPdfNoTrue when 'fullText' was extracted from the PDF.
publicationDateNoPublication date.
presentationHtmlNoPresentation of the text, as HTML.
authorIsRapporteurNoTrue when the filer is the rapporteur of a committee.
comparableVersionsNoOther versions of the same bill this text can be compared with.
automaticTranslationNoTrue when title, summaries or text are machine translations.
explanatoryMemorandumNoExplanatory memorandum.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / $defs / RelatedCall
      Added value: +{
      +  "description": "A call that naturally follows the one that returned it.",
      +  "properties": {
      +    "description": {
      +      "description": "What this call returns.",
      +      "type": "string"
      +    },
      +    "href": {
      +      "description": "Path to call, identifiers filled.",
      +      "type": "string"
      +    },
      +    "operation": {
      +      "description": "operationId of the call, as in the OpenAPI.",
      +      "type": "string"
      +    },
      +    "tool": {
      +      "description": "Name of the MCP tool that makes this call; null when no tool does.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / Text / properties / related
      Added value: +{
      +  "description": "Calls that naturally follow this one, with identifiers already filled: the operation, the MCP tool that makes it (null when none) and the path to call.",
      +  "items": {
      +    "$ref": "#/$defs/RelatedCall"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / related
      Added value: +{
      +  "description": "Calls that naturally follow this one, with identifiers already filled: the operation, the MCP tool that makes it (null when none) and the path to call.",
      +  "items": {
      +    "$ref": "#/$defs/RelatedCall"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive call, so the description's contribution is the windowing behavior: text is returned in 12000-character chunks and contentWindow.nextOffset feeds the next contentOffset. That tells the agent to expect partial content and how to continue, a real behavioral trait beyond 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?

Three sentences, front-loaded with purpose then usage then pagination, with no filler. The pagination sentence partly duplicates the schema's contentOffset description, which is the only minor redundancy.

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?

An output schema exists, so return shape need not be described, and the description still covers the key operational caveat (long documents, windowed reads) plus the sibling relationship. Nothing needed to invoke the tool correctly is missing.

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 coverage is 100%, including the contentChars/contentOffset descriptions and the language enum, so the baseline is 3. The description restates the offset-chaining flow but adds nothing on language, the maximum window size, or when to use a non-default language.

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?

'Read one version of the text of a bill' gives a specific verb and resource, then enumerates what the payload contains (wording, explanatory memorandum, summaries, comparable versions). The pointer to compare_texts distinguishes it from the sibling that handles comparisons.

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?

'Use it when the user asks what a bill SAYS' is an explicit use condition, and the compare_texts reference routes the comparison case elsewhere. No explicit exclusions are stated, but the when-to-use condition is clear enough to select the tool.

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