Skip to main content
Glama

Check & Vote: French and EU parliaments

Search bills, decrees, reports and amendments

search_texts
Read-onlyIdempotent

Search French and European legislation by keywords: bills (legislative files), decrees and ordinances published in the Journal officiel, and parliamentary reports. Use it FIRST whenever the user names a law, a topic or a decree and you need its identifier. Returns a page of results (kind, id, title, date, status). Open a BILL with get_bill and a DECREE with get_decree. Omit 'type' to search all three corpora; use type=BILL with jurisdiction=EU for European files. Amendments are NEVER in the default results: when a precise measure (a tax, a mechanism) appears in no title, search the amendments with type=AMENDMENT (alone, not mixed with another type), optionally with 'outcome', 'chamber' (NATIONAL_ASSEMBLY or SENATE; both by default) and the filing dates 'from'/'to'; an amendment row gives its number, article, fate, short summary, chamber and 'billId', and is opened with get_amendment. A bare amendment number (I-1358, 1-1358, 1358) as 'q' finds that amendment. 'q': every word is required; if nothing comes out, rephrase with legal vocabulary; for amendments 'or' and "quoted phrases" are accepted. 'government' (an id from list_governments) keeps only the bills filed and the decrees signed under that government and leaves reports out; 'excludeTreaties' then drops treaty ratification bills. 'author' (a person id from search_people) keeps only the bills, decrees, reports and amendments that person signed; 'authorRole' narrows it to AUTHOR (first signatory, rapporteur, decree signatory) or COSIGNATORY (bills and amendments only), ANY by default. 'authorGroup' (group ids from list_groups) keeps only the bills and amendments whose author belonged to one of those political groups on the filing date (decrees and reports are left out). With type=AMENDMENT, 'votedBy' (a person id) keeps only the amendments put to a roll-call vote in which that person voted, narrowed by 'votePosition' (FOR, AGAINST, ABSTENTION): an amendment decided by a show of hands has no individual vote and never matches. Titles are in French. Results are paginated: 'page' asks for the next ones.

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": "search_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch terms. Every word must be found; if nothing comes out, rephrase with legal vocabulary. 'or' and "quoted phrases" are accepted for amendments. With type=AMENDMENT, a bare amendment number (I-1358, 1-1358, I 1358, 1358) finds that amendment under any spelling.
toNoLatest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date.
fromNoEarliest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date.
pageNoPage number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size.
sizeNoItems per page (default 10, maximum 25).
sortNoSort criterion. Default: RELEVANCE with 'q', DATE without.
typeNoCorpora to search, comma-separated (BILL, DECREE, REPORT, AMENDMENT). Default: BILL, DECREE and REPORT, never AMENDMENT. AMENDMENT must be asked alone: mixed with another type, the request is refused (400).
orderNoSort direction. Default: the criterion's own.
authorNoIdentifier of a person (see /people): keeps only the texts and amendments this person signed, as 'authorRole' says. Applies to bills, decrees, reports and amendments. An unknown person is refused (400).
natureNoRestrict decrees to these natures, comma-separated. Does not apply to amendments.
statusNoRestrict bills to IN_PROGRESS or PROMULGATED. Does not apply to amendments.
chamberNoRestrict amendments to those tabled in this chamber (NATIONAL_ASSEMBLY or SENATE); default: both. Only with type=AMENDMENT; refused (400) otherwise.
outcomeNoRestrict amendments to this fate (PENDING means not yet discussed). Only with type=AMENDMENT; refused (400) otherwise.
votedByNoIdentifier of a person (see /people): keeps only the amendments put to a roll-call vote in which this person voted (as 'votePosition' says, any position otherwise). An amendment decided by a show of hands has no individual vote and never matches. Only with type=AMENDMENT, refused (400) otherwise. An unknown person is refused (400).
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.
authorRoleNoRole of 'author': AUTHOR (first signatory of a bill or amendment, rapporteur of a report, signatory of a decree), COSIGNATORY (a co-signer who has not withdrawn; bills and amendments only, reports and decrees have none) or ANY (default). No effect without 'author'.
governmentNoIdentifier of a government (see /governments). Keeps only the bills filed and the decrees and ordinances signed while it was in office. The government in office on a date is the last one appointed on or before it: a government that has resigned stays in office until its successor is appointed, and on the day of the handover the new one is in office. Unknown identifier: 400. A bill is dated by its earliest filing, in either chamber; a decree by its signature date. Restricts the search to bills and decrees: reports are left out.
authorGroupNoIdentifiers of political groups (see /groups), comma-separated: keeps only the bills and amendments whose author belonged to one of them on the filing date (several groups: any of them). For a bill, an author of one of its texts counts, on that text's filing date. For an amendment of the National Assembly, the group the source gives its author counts; otherwise the author's dated group membership must cover the filing date. Decrees and reports are left out. An unknown group is refused (400).
jurisdictionNoRestrict bills to FR or EU. EU excludes decrees and reports.
votePositionNoFOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'.
excludeTreatiesNotrue removes international treaty ratification bills (bills marked as such in either chamber). Applies to bills only. Does not apply to amendments.

Output Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0.
sizeNoNumber of items requested per page.
itemsNoThe rows of this page.
truncatedNoPresent when this answer was shortened to stay short: says what was cut and how to get the rest.
totalItemsNoTotal number matching. Capped when 'q' is present.
translatedQueryNoThe query as actually searched, when it was translated to French; null otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / authorGroup
      Added value: +{
      +  "description": "Identifiers of political groups (see /groups), comma-separated: keeps only the bills and amendments whose author belonged to one of them on the filing date (several groups: any of them). For a bill, an author of one of its texts counts, on that text's filing date. For an amendment of the National Assembly, the group the source gives its author counts; otherwise the author's dated group membership must cover the filing date. Decrees and reports are left out. An unknown group is refused (400).",
      +  "items": {
      +    "format": "int64",
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / votePosition
      Added value: +{
      +  "description": "FOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'.",
      +  "enum": [
      +    "FOR",
      +    "AGAINST",
      +    "ABSTENTION"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / votedBy
      Added value: +{
      +  "description": "Identifier of a person (see /people): keeps only the amendments put to a roll-call vote in which this person voted (as 'votePosition' says, any position otherwise). An amendment decided by a show of hands has no individual vote and never matches. Only with type=AMENDMENT, refused (400) otherwise. An unknown person is refused (400).",
      +  "format": "int64",
      +  "type": "integer"
      +}
  2. 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 readOnly/idempotent/non-destructive, and the description goes well beyond them: default corpora, the hard rule that AMENDMENT cannot be mixed with other types, sort defaults, French-language titles, and pagination ('page' asks for the next ones). It also discloses side effects of filters that an agent could not guess, e.g. 'government' drops reports and 'authorGroup' drops decrees and reports.

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 purpose, the 'use it first' rule, and the return shape before the filter detail, which is the right ordering. It is a single dense block covering 21 parameters, so it reads as a wall of text and repeats a few schema facts (chamber values, authorRole semantics), but nearly every clause carries decision-relevant 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 21-parameter, 9-enum search tool with an output schema, the description supplies what the schema cannot: corpus defaults, the amendment-only constraint, result shape (kind, id, title, date, status), pagination advice, and which sibling opens each result kind. Return values are correctly left to the output schema.

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; the description earns above that by explaining cross-parameter interactions the schema documents only locally: government + excludeTreaties, authorRole depending on author, votedBy narrowed by votePosition with show-of-hands amendments never matching, and a bare amendment number as 'q'. It does not restate every parameter (nature, status, sort are left to the schema), which is appropriate.

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 (search) plus the exact corpora covered (bills/legislative files, decrees and ordinances in the Journal officiel, parliamentary reports) and the axes (French and European legislation, keywords). It also distinguishes itself from siblings by naming get_bill and get_decree as the follow-up calls, so an agent knows this is the entry-point lookup tool rather than a fetch tool.

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 explicit when-to-use ('Use it FIRST whenever the user names a law, a topic or a decree and you need its identifier') and explicit when-not behavior for the hardest case: amendments are never in default results and must be searched alone with type=AMENDMENT when a precise measure appears in no title. It names the alternative tools for opening results and states the fallback ('if nothing comes out, rephrase with legal vocabulary').

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