lexml_search
Search the LexML legislative SRU repository using CQL queries or structured filters to retrieve legal documents.
Instructions
Search the LexML SRU acervo.
Args: query: CQL query string (e.g. 'dc.title any "constituição"') start_record: First record position (default 1) maximum_records: Max records to return (default 10, max 100) record_schema: Record schema (default 'dc', allowed: dc, oai_dc) filters: Structured filters {title, terms[], document_type, authority, date_from, date_to}. Mutually exclusive with query. When provided, generates safe CQL.
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": "lexml_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| filters | No | ||
| start_record | No | ||
| record_schema | No | dc | |
| maximum_records | No |