/** * @fileoverview Pre-aggregated committee financial totals — one committee's * per-cycle summary, or a ranked search across every committee of one entity * type. Answers "how much has this committee raised?" in a single call instead * of paginating Schedule A. * @module mcp-server/tools/definitions/get-committee-totals.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const getCommitteeTotals: import("@cyanheads/mcp-ts-core").ToolDefinition>; committee_id: z.ZodOptional; entity_type: z.ZodOptional>; cycle: z.ZodOptional; committee_state: z.ZodOptional; committee_type: z.ZodOptional; committee_designation: z.ZodOptional; organization_type: z.ZodOptional; min_receipts: z.ZodOptional; max_receipts: z.ZodOptional; min_disbursements: z.ZodOptional; max_disbursements: z.ZodOptional; sort: z.ZodOptional>; page: z.ZodDefault; per_page: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ results: z.ZodArray>; mode: z.ZodEnum<{ by_entity_type: "by_entity_type"; single: "single"; }>; pagination: z.ZodObject<{ page: z.ZodNumber; pages: z.ZodNumber; count: z.ZodNumber; per_page: z.ZodNumber; }, z.core.$strip>; search_criteria: z.ZodObject<{}, z.core.$loose>; }, z.core.$strip>, readonly [{ readonly reason: "committee_id_required_for_single_mode"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Mode single invoked without a committee_id"; readonly recovery: "Pass the committee_id whose totals you want (find one with openfec_search_committees), or switch to mode by_entity_type with an entity_type to search across committees."; }, { readonly reason: "entity_type_required_for_group_mode"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Mode by_entity_type invoked without an entity_type"; readonly recovery: "Pass an entity_type of presidential, pac, party, pac-party, house-senate, or ie-only, or switch to mode single with a committee_id."; }, { readonly reason: "inputs_not_applicable_to_mode"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "A grouped-search filter (entity_type, committee_state, committee_type, committee_designation, organization_type, or a receipts/disbursements bound) was supplied alongside mode single, which cannot apply it"; readonly recovery: "Re-run with mode \"by_entity_type\" to filter across committees by state, type, designation, or a financial threshold, or drop the named inputs to keep the single-committee lookup. Mode single accepts only committee_id, cycle, sort, mode, page, per_page."; }, { readonly reason: "committee_totals_not_found"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "Single-committee lookup matched no totals row — the committee_id does not exist, it filed nothing in the requested cycle, or it has never filed a financial report at all"; readonly recovery: "Drop the cycle filter to see every cycle the committee has on record, and verify the committee_id with openfec_search_committees; a committee that files no financial report has no totals at any cycle, so read its filings with openfec_search_filings instead."; }], { readonly totalCount: z.ZodNumber; readonly notice: z.ZodOptional; }>; //# sourceMappingURL=get-committee-totals.tool.d.ts.map