Skip to main content
Glama

Openfec Search Legal

openfec_search_legal
Read-onlyIdempotent

Search FEC legal documents: advisory opinions, enforcement cases (MURs), alternative dispute resolutions, and administrative fines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoDocument type filter. Omit to search all types. admin_fines is slow without a query or respondent filter.
queryNoFull-text search across legal documents.
from_hitNoOffset for pagination (0-indexed). Default 0.
max_dateNoLatest date (YYYY-MM-DD) for the date_kind selected. Requires type and date_kind.
min_dateNoEarliest date (YYYY-MM-DD) for the date_kind selected. Requires type and date_kind.
ao_numberNoSpecific advisory opinion number (e.g. "2024-01").
date_kindNoWhich 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.
respondentNoRespondent name (enforcement cases).
case_numberNoSpecific MUR or ADR case number.
hits_returnedNoResults per page. Default 20, max 200.
max_penalty_amountNoMaximum penalty amount in dollars. Filters enforcement cases (murs, adrs) only — other document types are returned unfiltered by it.
min_penalty_amountNoMinimum penalty amount in dollars. Filters enforcement cases (murs, adrs) only — other document types are returned unfiltered by it.
statutory_citationNoU.S.C. citation (e.g. "52 U.S.C. 30106").
regulatory_citationNoCFR citation (e.g. "11 CFR 112.4").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoGuidance when no legal documents matched — echoes filters and suggests how to broaden.
resultsNoLegal document result set spanning advisory opinions, MURs, ADRs, admin fines, and statutes.
totalCountNoTotal matching legal documents across all types.
total_countNoTotal matching documents across all types.
retrievalHintNoHow to recover the material trimmed out of these results. Present whenever any result was returned, because every result is trimmed.
search_criteriaNoEcho 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.

TDQS

B3.3/5.0
Behavior2/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered, but the description adds zero behavioral context on top of that. It discloses nothing about pagination defaults, type-specific filter behavior (e.g. penalty params filtering only enforcement cases), or conditional parameter relationships. The description neither contradicts nor meaningfully extends 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?

A single sentence, front-loaded with the verb and resource, then a colon-separated list of document types—zero wasted words. The structure is efficient, though the brevity trades away the behavioral and usage guidance that a 14-parameter tool would benefit from; it is concise rather than merely under-specified.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a high-complexity tool—14 parameters, no required fields, conditional requirements (min_date/max_date require both type and date_kind), and type-specific behaviors (statutes cannot be date-filtered; penalty amounts only filter murs/adrs). The description omits all of this. The rich schema compensates substantially and an output schema exists, but for a tool this complex the one-line description does not adequately preview the conditional logic an agent must navigate.

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 description coverage is 100% with detailed per-parameter notes (notably the date_kind enum's per-type documentation and the conditional 'admin_fines is slow' caveat), so the baseline of 3 applies. The description itself adds no parameter-level meaning, but the schema fully compensates, so no penalty is warranted.

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?

The description states a specific verb ('Search') and resource ('FEC legal documents') and enumerates the document categories (advisory opinions, MURs, ADRs, administrative fines), clearly delimiting its scope. This separates it cleanly from the sibling search tools (candidates, committees, contributions, expenditures, filings), which operate on entirely different content domains.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The document-type list implies when to use this tool (for legal/advisory/enforcement documents) versus the candidate/committee/expenditure search siblings, but there is no explicit when/when-not guidance or named alternatives. Some operational guidance exists in the schema (e.g. 'admin_fines is slow without a query or respondent filter'), but the description itself carries none of it.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a clearly distinct FEC resource or action, and even closely related tools are explicitly differentiated. Independent versus coordinated expenditures and legal search versus legal document retrieval are described in enough detail that an agent should not misselect.

Naming Consistency5/5

All tools share the openfec_ prefix and follow a predictable verb_noun snake_case pattern: get for direct retrieval, lookup for calendar/election lookups, and search for queryable datasets. The naming is highly consistent across the full tool set.

Tool Count5/5

Twelve tools is well-scoped for a campaign-finance data server covering candidates, committees, money flows, filings, legal documents, calendar, and elections. Each tool represents a meaningful slice of the domain without unnecessary overlap or bloat.

Completeness4/5

The tool surface covers core FEC workflows thoroughly: candidates, committees, contributions, disbursements, independent and coordinated expenditures, filings, legal documents, calendar, and elections. The only notable gaps are specialized FEC categories such as electioneering communications and communication costs, which are not exposed.