Search bills, decrees, reports and amendments
search_textsSearch 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
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search 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. | |
| to | No | Latest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date. | |
| from | No | Earliest date (inclusive), ISO yyyy-MM-dd. For amendments, the filing date. | |
| page | No | Page number, starting at 0. Ask for the next page when 'totalItems' is larger than (page + 1) * size. | |
| size | No | Items per page (default 10, maximum 25). | |
| sort | No | Sort criterion. Default: RELEVANCE with 'q', DATE without. | |
| type | No | Corpora 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). | |
| order | No | Sort direction. Default: the criterion's own. | |
| author | No | Identifier 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). | |
| nature | No | Restrict decrees to these natures, comma-separated. Does not apply to amendments. | |
| status | No | Restrict bills to IN_PROGRESS or PROMULGATED. Does not apply to amendments. | |
| chamber | No | Restrict amendments to those tabled in this chamber (NATIONAL_ASSEMBLY or SENATE); default: both. Only with type=AMENDMENT; refused (400) otherwise. | |
| outcome | No | Restrict amendments to this fate (PENDING means not yet discussed). Only with type=AMENDMENT; refused (400) otherwise. | |
| votedBy | No | 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). | |
| language | No | Language 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. | |
| authorRole | No | Role 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'. | |
| government | No | Identifier 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. | |
| authorGroup | No | 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). | |
| jurisdiction | No | Restrict bills to FR or EU. EU excludes decrees and reports. | |
| votePosition | No | FOR, AGAINST or ABSTENTION: the position taken by 'votedBy'. Refused (400) without 'votedBy'. | |
| excludeTreaties | No | true removes international treaty ratification bills (bills marked as such in either chamber). Applies to bills only. Does not apply to amendments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 0. | |
| size | No | Number of items requested per page. | |
| items | No | The rows of this page. | |
| truncated | No | Present when this answer was shortened to stay short: says what was cut and how to get the rest. | |
| totalItems | No | Total number matching. Capped when 'q' is present. | |
| translatedQuery | No | The query as actually searched, when it was translated to French; null otherwise. |