Skip to main content
Glama

Openfec Lookup Calendar

openfec_lookup_calendar
Read-onlyIdempotent

Look up FEC calendar events, filing deadlines, and election dates. Use to find upcoming filing windows for a committee, locate when a federal election occurred, or scope FEC events by date range and category.

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_lookup_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoevents = FEC calendar events. filing_deadlines = report due dates. election_dates = upcoming/past elections.events
pageNoPage number (1-indexed). Default 1.
stateNoTwo-letter state code (e.g., AZ, CA), in any case. Election dates mode.
officeNoOffice sought (H=House, S=Senate, P=President). Election dates mode.
categoryNoCalendar category ID. 20=Commission Meetings, 21=Reporting Deadlines, 22=Conferences and Outreach, 23=AOs and Rules, 24=Other, 25=Quarterly, 26=Monthly, 27=Pre and Post-Elections, 28=EC Periods, 29=IE Periods, 32=Open Meetings, 33=Conferences, 34=Roundtables, 36=Election Dates, 37=Federal Holidays, 38=FEA Periods, 39=Executive Sessions, 40=Public Hearings. Events mode only.
districtNoTwo-digit House district (e.g., "14", "07"); a single digit is zero-padded. Pair it with state — alone it matches that district number in every state. At-large races carry a blank district upstream, so a numbered district never matches them. Election dates mode.
max_dateNoLatest date (YYYY-MM-DD).
min_dateNoEarliest date (YYYY-MM-DD).
per_pageNoResults per page. Default 20, max 100.
descriptionNoFull-text event description search. Events mode.
report_typeNoReport type code (e.g. "Q1", "Q2"). Filing deadlines mode only.
report_yearNoReport year. Filing deadlines mode.
election_yearNoElection year. Election dates mode.

Output Schema

NameRequiredDescriptionDefault
modeNoQuery mode as the server resolved it. Each mode reads a different FEC dataset with its own row shape — calendar events, report due dates, or election dates — so read this rather than inferring the dataset from the fields present.
errorNoPresent when the call failed. Absent on success.
noticeNoGuidance when the response carries no calendar entries: how to broaden a search that matched nothing, or which requested position ran out when entries did match.
resultsNoCalendar result set; events, filing deadlines, or election dates depending on mode.
paginationNoPage-based pagination metadata.
totalCountNoTotal matching calendar entries before pagination.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / district / description
      Previous value: -"Two-digit House district (e.g., \"14\", \"07\"); a single digit is zero-padded. Pair it with state — alone it matches that district number in every state. At-large races carry no district upstream, so a district filter never matches them. Election dates mode."New value: +"Two-digit House district (e.g., \"14\", \"07\"); a single digit is zero-padded. Pair it with state — alone it matches that district number in every state. At-large races carry a blank district upstream, so a numbered district never matches them. Election dates mode."
    • changedInput schema / properties / state / description
      Previous value: -"Two-letter state code (e.g., AZ, CA). Primarily for election_dates mode."New value: +"Two-letter state code (e.g., AZ, CA), in any case. Election dates mode."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `inputs_not_applicable_to_mode`: A filter belonging to a different calendar mode was supplied, which the chosen mode cannot apply. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `inputs_not_applicable_to_mode`: A filter belonging to a different calendar mode was supplied, which the chosen mode cannot apply. `invalid_district`: district is neither digits (after an optional leading - that excludes the district) nor spaces, so no election date carries it. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "inputs_not_applicable_to_mode"
      -]New value: +[
      +  "inputs_not_applicable_to_mode",
      +  "invalid_district"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / district
      Added value: +{
      +  "description": "Two-digit House district (e.g., \"14\", \"07\"); a single digit is zero-padded. Pair it with state — alone it matches that district number in every state. At-large races carry no district upstream, so a district filter never matches them. Election dates mode.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when no calendar entries matched — echoes filters and suggests how to broaden."New value: +"Guidance when the response carries no calendar entries: how to broaden a search that matched nothing, or which requested position ran out when entries did match."
    • addedOutput schema / properties / pagination / properties / count_is_approximate
      Added value: +{
      +  "description": "True when OpenFEC reports this count as an estimate rather than a tally, which it does on its highest-volume datasets. Absent means the count is a tally. An estimated count — and the pages derived from it — can be off by a wide margin; treat it as an order of magnitude, not a figure to quote.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `inputs_not_applicable_to_mode`: A filter belonging to a different calendar mode was supplied, which the chosen mode cannot apply Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `inputs_not_applicable_to_mode`: A filter belonging to a different calendar mode was supplied, which the chosen mode cannot apply. Other values are possible when a failure originates below the handler."
  5. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "results",
      +      "mode",
      +      "pagination",
      +      "search_criteria",
      +      "totalCount"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `inputs_not_applicable_to_mode`: A filter belonging to a different calendar mode was supplied, which the chosen mode cannot apply Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "inputs_not_applicable_to_mode"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "results",
      -  "mode",
      -  "pagination",
      -  "search_criteria",
      -  "totalCount"
      -]
  6. Changed3 schema fields changed
    • addedOutput schema / properties / mode
      Added value: +{
      +  "description": "Query mode as the server resolved it. Each mode reads a different FEC dataset with its own row shape — calendar events, report due dates, or election dates — so read this rather than inferring the dataset from the fields present.",
      +  "enum": [
      +    "events",
      +    "filing_deadlines",
      +    "election_dates"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / search_criteria / description
      Previous value: -"Echo of the search filters that produced this result set. Populated when results are empty to help diagnose why nothing matched."New value: +"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."
    • changedOutput schema / required
      Previous value: -[
      -  "results",
      -  "pagination",
      -  "totalCount"
      -]New value: +[
      +  "results",
      +  "mode",
      +  "pagination",
      +  "search_criteria",
      +  "totalCount"
      +]
  7. Changed3 schema fields changed
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Guidance when no calendar entries matched — echoes filters and suggests how to broaden.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Total matching calendar entries before pagination.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results",
      -  "pagination"
      -]New value: +[
      +  "results",
      +  "pagination",
      +  "totalCount"
      +]
  8. Changed6 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Calendar category ID for events mode. Common values: \"32\" (reporting deadlines), \"33\" (election dates), \"34\" (quarterly filings). Events mode only."New value: +"Calendar category ID. 20=Commission Meetings, 21=Reporting Deadlines, 22=Conferences and Outreach, 23=AOs and Rules, 24=Other, 25=Quarterly, 26=Monthly, 27=Pre and Post-Elections, 28=EC Periods, 29=IE Periods, 32=Open Meetings, 33=Conferences, 34=Roundtables, 36=Election Dates, 37=Federal Holidays, 38=FEA Periods, 39=Executive Sessions, 40=Public Hearings. Events mode only."
    • addedInput schema / properties / category / enum
      Added value: +[
      +  "20",
      +  "21",
      +  "22",
      +  "23",
      +  "24",
      +  "25",
      +  "26",
      +  "27",
      +  "28",
      +  "29",
      +  "32",
      +  "33",
      +  "34",
      +  "36",
      +  "37",
      +  "38",
      +  "39",
      +  "40"
      +]
    • changedOutput schema / properties / pagination / properties / page / description
      Previous value: -"Current page number."New value: +"Current page number (1-indexed)."
    • changedOutput schema / properties / pagination / properties / pages / description
      Previous value: -"Total pages available."New value: +"Total number of pages."
    • changedOutput schema / properties / results / description
      Previous value: -"Calendar records — events, filing deadlines, or election dates depending on mode."New value: +"Calendar result set; events, filing deadlines, or election dates depending on mode."
    • changedOutput schema / properties / results / items / description
      Previous value: -"A calendar record (event, filing deadline, or election date depending on mode)."New value: +"Event record (mode=events), filing deadline record (mode=filing_deadlines), or election date record (mode=election_dates)."
  9. Changed1 schema field changed
    • addedOutput schema / properties / results / items / description
      Added value: +"A calendar record (event, filing deadline, or election date depending on mode)."
  10. Changed4 schema fields changed
    • addedOutput schema / properties / results / items / properties
      Added value: +{}
    • removedOutput schema / properties / results / items / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / search_criteria / properties
      Added value: +{}
    • removedOutput schema / properties / search_criteria / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
  11. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered by structured data rather than the prose. The description adds no behavioral detail beyond that — nothing about pagination limits (per_page max 100), result ordering, or empty-result behavior — so it sits at the minimum-viable level given annotation coverage.

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?

Two sentences, no filler, with the resource list front-loaded ahead of the usage examples. It could be slightly tighter, but every clause carries information about either capability or use case.

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

Completeness4/5

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

For a 13-parameter, three-mode lookup tool this is reasonably complete: the description establishes the three modes and an output schema exists to cover return values. The main residual gap is that it does not warn that most parameters are mode-scoped, leaving the agent to discover that from the per-property schema text.

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%, so every one of the 13 parameters, including the mode-specific scoping hints for state, office, category, and report_year, is already documented in the schema. The description's phrases like 'date range and category' merely gesture at parameters the schema explains far better, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and three named resources (FEC calendar events, filing deadlines, election dates), which maps directly onto the three-way 'mode' enum. It is clear what the tool returns, but it never distinguishes itself from the sibling openfec_lookup_elections, which an agent could easily confuse with the 'election_dates' mode here.

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

Usage Guidelines4/5

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

Three concrete use cases are given ('find upcoming filing windows for a committee', 'locate when a federal election occurred', 'scope FEC events by date range and category'), each implying which mode to pick. No exclusions or negative guidance are offered, and no alternative tool is named for the election-lookup overlap.

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.