Openfec Search Legal
openfec_search_legalSearch FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, administrative fines, and statutes. The citation, penalty, respondent, ao_number, and case_number filters each apply to only some document types; with type omitted, the search returns only the types every one of them applies to. A page carries every result upstream returns, up to hits_returned of each document type searched; the next page starts at from_hit + hits_returned.
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": "openfec_search_legal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Document type filter. Omit to search every type the other filters apply to — all five when only query is given. admin_fines can be slow without a query. | |
| query | No | Full-text search across legal documents. | |
| from_hit | No | Offset for pagination (0-indexed), counted within each document type rather than across them. Default 0. The next page starts at from_hit + hits_returned; a type that returned fewer than hits_returned has no more. The search index serves a 10,000-result window, so from_hit plus hits_returned must be 10,000 or less — the ceiling here assumes hits_returned of 1. | |
| max_date | No | Latest date (YYYY-MM-DD) for the date_kind selected. Requires type and date_kind. | |
| min_date | No | Earliest date (YYYY-MM-DD) for the date_kind selected. Requires type and date_kind. | |
| ao_number | No | Specific advisory opinion number (e.g. "2024-01"). Applies to advisory_opinions only: rejected with any other type, and with type omitted only advisory opinions are returned. | |
| date_kind | No | Which date min_date/max_date bound. Each document type records its own dates, so this must be one the chosen type has: type=advisory_opinions → issue_date (opinion issued), request_date (request received), document_date; type=murs or adrs → open_date (case opened), close_date (case closed), document_date; type=admin_fines → rtb_date (reason-to-believe finding), fd_date (final determination). type=statutes cannot be date-filtered. Required whenever min_date or max_date is given, together with type. | |
| respondent | No | Respondent name. Applies to enforcement cases (murs, adrs) only: rejected with any other type, and with type omitted only MURs and ADRs are returned. | |
| case_number | No | Specific MUR, ADR, or administrative fine case number (e.g. "8343"). Applies to murs, adrs, and admin_fines: rejected with advisory_opinions or statutes, and with type omitted only those three types are returned. | |
| hits_returned | No | Results per page, applied per document type: a search covering several types returns up to this many of each. Default 20, max 200. Bounded together with from_hit by the 10,000-result window. | |
| max_penalty_amount | No | Maximum penalty amount in dollars. Applies to murs, adrs, and admin_fines (an administrative fine matches on its reason-to-believe or final-determination amount): rejected with advisory_opinions or statutes, and with type omitted only those three types are returned. | |
| min_penalty_amount | No | Minimum penalty amount in dollars. Applies to murs, adrs, and admin_fines (an administrative fine matches on its reason-to-believe or final-determination amount): rejected with advisory_opinions or statutes, and with type omitted only those three types are returned. | |
| statutory_citation | No | U.S.C. citation in the form "<title> U.S.C. <section>" (e.g. "52 U.S.C. 30104"; "USC", "§", and a suffix such as "30104(g)" are accepted — a bare "30104" is rejected as invalid_citation). One citation per value: "52 U.S.C. 30104, 52 U.S.C. 30118" is rejected, since only the first would be applied. Given with regulatory_citation, matches a document that cites either one. On murs and adrs it cannot be combined with case_number, respondent, a penalty bound, or an open_date or close_date bound, which the search index would ignore. Applies to advisory_opinions, murs, and adrs: rejected with admin_fines or statutes, and with type omitted only those three types are returned. | |
| regulatory_citation | No | CFR citation in the form "<title> CFR <part>.<section>" (e.g. "11 CFR 110.1"; "C.F.R.", "§", and a suffix such as "110.1(b)" are accepted — a bare "110.1" is rejected as invalid_citation). One citation per value: "11 CFR 110.1; 11 CFR 110.2" is rejected, since only the first would be applied. Given with statutory_citation, matches a document that cites either one. On murs and adrs it cannot be combined with case_number, respondent, a penalty bound, or an open_date or close_date bound, which the search index would ignore. Applies to advisory_opinions, murs, and adrs: rejected with admin_fines or statutes, and with type omitted only those three types are returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance on an empty page: how to broaden a search that matched nothing, or that from_hit ran past the end when documents did match. | |
| results | No | Legal document result set spanning advisory opinions, MURs, ADRs, admin fines, and statutes — only the types searched. Grouped by type in upstream order. | |
| totalCount | No | Total matching legal documents across the document types searched. | |
| total_count | No | Total matching documents across the types searched: the requested type, or with type omitted, every type the supplied filters apply to. | |
| retrievalHint | No | How to recover the material trimmed out of these results. Present whenever any result was returned, because every result is trimmed. | |
| search_criteria | No | Echo of the search filters this call applied, as the server parsed them, minus paging arguments. Always present — compare it against what you sent to confirm every filter was honoured. |