us-gov-open-data-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +211 -0
- package/dist/client.d.ts +54 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +388 -0
- package/dist/client.js.map +1 -0
- package/dist/instructions.d.ts +8 -0
- package/dist/instructions.d.ts.map +1 -0
- package/dist/instructions.js +549 -0
- package/dist/instructions.js.map +1 -0
- package/dist/modules/bea.d.ts +28 -0
- package/dist/modules/bea.d.ts.map +1 -0
- package/dist/modules/bea.js +158 -0
- package/dist/modules/bea.js.map +1 -0
- package/dist/modules/bls.d.ts +29 -0
- package/dist/modules/bls.d.ts.map +1 -0
- package/dist/modules/bls.js +244 -0
- package/dist/modules/bls.js.map +1 -0
- package/dist/modules/bts.d.ts +26 -0
- package/dist/modules/bts.d.ts.map +1 -0
- package/dist/modules/bts.js +112 -0
- package/dist/modules/bts.js.map +1 -0
- package/dist/modules/cdc.d.ts +26 -0
- package/dist/modules/cdc.d.ts.map +1 -0
- package/dist/modules/cdc.js +310 -0
- package/dist/modules/cdc.js.map +1 -0
- package/dist/modules/census.d.ts +23 -0
- package/dist/modules/census.d.ts.map +1 -0
- package/dist/modules/census.js +141 -0
- package/dist/modules/census.js.map +1 -0
- package/dist/modules/cfpb.d.ts +20 -0
- package/dist/modules/cfpb.d.ts.map +1 -0
- package/dist/modules/cfpb.js +135 -0
- package/dist/modules/cfpb.js.map +1 -0
- package/dist/modules/clinical-trials.d.ts +22 -0
- package/dist/modules/clinical-trials.d.ts.map +1 -0
- package/dist/modules/clinical-trials.js +171 -0
- package/dist/modules/clinical-trials.js.map +1 -0
- package/dist/modules/cms.d.ts +21 -0
- package/dist/modules/cms.d.ts.map +1 -0
- package/dist/modules/cms.js +135 -0
- package/dist/modules/cms.js.map +1 -0
- package/dist/modules/college-scorecard.d.ts +39 -0
- package/dist/modules/college-scorecard.d.ts.map +1 -0
- package/dist/modules/college-scorecard.js +192 -0
- package/dist/modules/college-scorecard.js.map +1 -0
- package/dist/modules/congress.d.ts +28 -0
- package/dist/modules/congress.d.ts.map +1 -0
- package/dist/modules/congress.js +883 -0
- package/dist/modules/congress.js.map +1 -0
- package/dist/modules/dol.d.ts +27 -0
- package/dist/modules/dol.d.ts.map +1 -0
- package/dist/modules/dol.js +209 -0
- package/dist/modules/dol.js.map +1 -0
- package/dist/modules/eia.d.ts +33 -0
- package/dist/modules/eia.d.ts.map +1 -0
- package/dist/modules/eia.js +227 -0
- package/dist/modules/eia.js.map +1 -0
- package/dist/modules/epa.d.ts +21 -0
- package/dist/modules/epa.d.ts.map +1 -0
- package/dist/modules/epa.js +91 -0
- package/dist/modules/epa.js.map +1 -0
- package/dist/modules/fbi.d.ts +28 -0
- package/dist/modules/fbi.d.ts.map +1 -0
- package/dist/modules/fbi.js +143 -0
- package/dist/modules/fbi.js.map +1 -0
- package/dist/modules/fda.d.ts +35 -0
- package/dist/modules/fda.d.ts.map +1 -0
- package/dist/modules/fda.js +262 -0
- package/dist/modules/fda.js.map +1 -0
- package/dist/modules/fdic.d.ts +21 -0
- package/dist/modules/fdic.d.ts.map +1 -0
- package/dist/modules/fdic.js +186 -0
- package/dist/modules/fdic.js.map +1 -0
- package/dist/modules/fec.d.ts +29 -0
- package/dist/modules/fec.d.ts.map +1 -0
- package/dist/modules/fec.js +282 -0
- package/dist/modules/fec.js.map +1 -0
- package/dist/modules/federal-register.d.ts +24 -0
- package/dist/modules/federal-register.d.ts.map +1 -0
- package/dist/modules/federal-register.js +184 -0
- package/dist/modules/federal-register.js.map +1 -0
- package/dist/modules/fema.d.ts +20 -0
- package/dist/modules/fema.d.ts.map +1 -0
- package/dist/modules/fema.js +156 -0
- package/dist/modules/fema.js.map +1 -0
- package/dist/modules/fred.d.ts +40 -0
- package/dist/modules/fred.d.ts.map +1 -0
- package/dist/modules/fred.js +143 -0
- package/dist/modules/fred.js.map +1 -0
- package/dist/modules/govinfo.d.ts +24 -0
- package/dist/modules/govinfo.d.ts.map +1 -0
- package/dist/modules/govinfo.js +147 -0
- package/dist/modules/govinfo.js.map +1 -0
- package/dist/modules/hud.d.ts +17 -0
- package/dist/modules/hud.d.ts.map +1 -0
- package/dist/modules/hud.js +170 -0
- package/dist/modules/hud.js.map +1 -0
- package/dist/modules/naep.d.ts +27 -0
- package/dist/modules/naep.d.ts.map +1 -0
- package/dist/modules/naep.js +210 -0
- package/dist/modules/naep.js.map +1 -0
- package/dist/modules/nhtsa.d.ts +13 -0
- package/dist/modules/nhtsa.d.ts.map +1 -0
- package/dist/modules/nhtsa.js +196 -0
- package/dist/modules/nhtsa.js.map +1 -0
- package/dist/modules/noaa.d.ts +41 -0
- package/dist/modules/noaa.d.ts.map +1 -0
- package/dist/modules/noaa.js +135 -0
- package/dist/modules/noaa.js.map +1 -0
- package/dist/modules/nrel.d.ts +25 -0
- package/dist/modules/nrel.d.ts.map +1 -0
- package/dist/modules/nrel.js +87 -0
- package/dist/modules/nrel.js.map +1 -0
- package/dist/modules/regulations.d.ts +24 -0
- package/dist/modules/regulations.d.ts.map +1 -0
- package/dist/modules/regulations.js +173 -0
- package/dist/modules/regulations.js.map +1 -0
- package/dist/modules/sec.d.ts +25 -0
- package/dist/modules/sec.d.ts.map +1 -0
- package/dist/modules/sec.js +192 -0
- package/dist/modules/sec.js.map +1 -0
- package/dist/modules/senate-lobbying.d.ts +21 -0
- package/dist/modules/senate-lobbying.d.ts.map +1 -0
- package/dist/modules/senate-lobbying.js +189 -0
- package/dist/modules/senate-lobbying.js.map +1 -0
- package/dist/modules/treasury.d.ts +23 -0
- package/dist/modules/treasury.d.ts.map +1 -0
- package/dist/modules/treasury.js +234 -0
- package/dist/modules/treasury.js.map +1 -0
- package/dist/modules/usaspending.d.ts +19 -0
- package/dist/modules/usaspending.d.ts.map +1 -0
- package/dist/modules/usaspending.js +204 -0
- package/dist/modules/usaspending.js.map +1 -0
- package/dist/modules/usda-fooddata.d.ts +24 -0
- package/dist/modules/usda-fooddata.d.ts.map +1 -0
- package/dist/modules/usda-fooddata.js +118 -0
- package/dist/modules/usda-fooddata.js.map +1 -0
- package/dist/modules/usda-nass.d.ts +46 -0
- package/dist/modules/usda-nass.d.ts.map +1 -0
- package/dist/modules/usda-nass.js +151 -0
- package/dist/modules/usda-nass.js.map +1 -0
- package/dist/modules/usgs.d.ts +21 -0
- package/dist/modules/usgs.d.ts.map +1 -0
- package/dist/modules/usgs.js +203 -0
- package/dist/modules/usgs.js.map +1 -0
- package/dist/modules/uspto.d.ts +13 -0
- package/dist/modules/uspto.d.ts.map +1 -0
- package/dist/modules/uspto.js +157 -0
- package/dist/modules/uspto.js.map +1 -0
- package/dist/modules/world-bank.d.ts +21 -0
- package/dist/modules/world-bank.d.ts.map +1 -0
- package/dist/modules/world-bank.js +130 -0
- package/dist/modules/world-bank.js.map +1 -0
- package/dist/prompts.d.ts +12 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +858 -0
- package/dist/prompts.js.map +1 -0
- package/dist/sdk/bea.d.ts +111 -0
- package/dist/sdk/bea.d.ts.map +1 -0
- package/dist/sdk/bea.js +242 -0
- package/dist/sdk/bea.js.map +1 -0
- package/dist/sdk/bls.d.ts +65 -0
- package/dist/sdk/bls.d.ts.map +1 -0
- package/dist/sdk/bls.js +203 -0
- package/dist/sdk/bls.js.map +1 -0
- package/dist/sdk/bts.d.ts +108 -0
- package/dist/sdk/bts.d.ts.map +1 -0
- package/dist/sdk/bts.js +121 -0
- package/dist/sdk/bts.js.map +1 -0
- package/dist/sdk/cdc.d.ts +105 -0
- package/dist/sdk/cdc.d.ts.map +1 -0
- package/dist/sdk/cdc.js +222 -0
- package/dist/sdk/cdc.js.map +1 -0
- package/dist/sdk/census.d.ts +47 -0
- package/dist/sdk/census.d.ts.map +1 -0
- package/dist/sdk/census.js +99 -0
- package/dist/sdk/census.js.map +1 -0
- package/dist/sdk/cfpb.d.ts +148 -0
- package/dist/sdk/cfpb.d.ts.map +1 -0
- package/dist/sdk/cfpb.js +153 -0
- package/dist/sdk/cfpb.js.map +1 -0
- package/dist/sdk/clinical-trials.d.ts +214 -0
- package/dist/sdk/clinical-trials.d.ts.map +1 -0
- package/dist/sdk/clinical-trials.js +134 -0
- package/dist/sdk/clinical-trials.js.map +1 -0
- package/dist/sdk/cms.d.ts +81 -0
- package/dist/sdk/cms.d.ts.map +1 -0
- package/dist/sdk/cms.js +227 -0
- package/dist/sdk/cms.js.map +1 -0
- package/dist/sdk/college-scorecard.d.ts +63 -0
- package/dist/sdk/college-scorecard.d.ts.map +1 -0
- package/dist/sdk/college-scorecard.js +131 -0
- package/dist/sdk/college-scorecard.js.map +1 -0
- package/dist/sdk/congress.d.ts +575 -0
- package/dist/sdk/congress.d.ts.map +1 -0
- package/dist/sdk/congress.js +659 -0
- package/dist/sdk/congress.js.map +1 -0
- package/dist/sdk/dol.d.ts +299 -0
- package/dist/sdk/dol.d.ts.map +1 -0
- package/dist/sdk/dol.js +252 -0
- package/dist/sdk/dol.js.map +1 -0
- package/dist/sdk/eia.d.ts +91 -0
- package/dist/sdk/eia.d.ts.map +1 -0
- package/dist/sdk/eia.js +156 -0
- package/dist/sdk/eia.js.map +1 -0
- package/dist/sdk/epa.d.ts +128 -0
- package/dist/sdk/epa.d.ts.map +1 -0
- package/dist/sdk/epa.js +120 -0
- package/dist/sdk/epa.js.map +1 -0
- package/dist/sdk/fbi.d.ts +48 -0
- package/dist/sdk/fbi.d.ts.map +1 -0
- package/dist/sdk/fbi.js +69 -0
- package/dist/sdk/fbi.js.map +1 -0
- package/dist/sdk/fda.d.ts +356 -0
- package/dist/sdk/fda.d.ts.map +1 -0
- package/dist/sdk/fda.js +162 -0
- package/dist/sdk/fda.js.map +1 -0
- package/dist/sdk/fdic.d.ts +227 -0
- package/dist/sdk/fdic.d.ts.map +1 -0
- package/dist/sdk/fdic.js +172 -0
- package/dist/sdk/fdic.js.map +1 -0
- package/dist/sdk/fec.d.ts +142 -0
- package/dist/sdk/fec.d.ts.map +1 -0
- package/dist/sdk/fec.js +92 -0
- package/dist/sdk/fec.js.map +1 -0
- package/dist/sdk/federal-register.d.ts +88 -0
- package/dist/sdk/federal-register.d.ts.map +1 -0
- package/dist/sdk/federal-register.js +100 -0
- package/dist/sdk/federal-register.js.map +1 -0
- package/dist/sdk/fema.d.ts +137 -0
- package/dist/sdk/fema.d.ts.map +1 -0
- package/dist/sdk/fema.js +197 -0
- package/dist/sdk/fema.js.map +1 -0
- package/dist/sdk/fred.d.ts +72 -0
- package/dist/sdk/fred.d.ts.map +1 -0
- package/dist/sdk/fred.js +59 -0
- package/dist/sdk/fred.js.map +1 -0
- package/dist/sdk/govinfo.d.ts +64 -0
- package/dist/sdk/govinfo.d.ts.map +1 -0
- package/dist/sdk/govinfo.js +187 -0
- package/dist/sdk/govinfo.js.map +1 -0
- package/dist/sdk/hud.d.ts +87 -0
- package/dist/sdk/hud.d.ts.map +1 -0
- package/dist/sdk/hud.js +91 -0
- package/dist/sdk/hud.js.map +1 -0
- package/dist/sdk/index.d.ts +51 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +51 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/naep.d.ts +93 -0
- package/dist/sdk/naep.d.ts.map +1 -0
- package/dist/sdk/naep.js +163 -0
- package/dist/sdk/naep.js.map +1 -0
- package/dist/sdk/nhtsa.d.ts +169 -0
- package/dist/sdk/nhtsa.d.ts.map +1 -0
- package/dist/sdk/nhtsa.js +102 -0
- package/dist/sdk/nhtsa.js.map +1 -0
- package/dist/sdk/noaa.d.ts +72 -0
- package/dist/sdk/noaa.d.ts.map +1 -0
- package/dist/sdk/noaa.js +64 -0
- package/dist/sdk/noaa.js.map +1 -0
- package/dist/sdk/nrel.d.ts +145 -0
- package/dist/sdk/nrel.d.ts.map +1 -0
- package/dist/sdk/nrel.js +93 -0
- package/dist/sdk/nrel.js.map +1 -0
- package/dist/sdk/regulations.d.ts +146 -0
- package/dist/sdk/regulations.d.ts.map +1 -0
- package/dist/sdk/regulations.js +103 -0
- package/dist/sdk/regulations.js.map +1 -0
- package/dist/sdk/sec.d.ts +114 -0
- package/dist/sdk/sec.d.ts.map +1 -0
- package/dist/sdk/sec.js +151 -0
- package/dist/sdk/sec.js.map +1 -0
- package/dist/sdk/senate-lobbying.d.ts +147 -0
- package/dist/sdk/senate-lobbying.d.ts.map +1 -0
- package/dist/sdk/senate-lobbying.js +125 -0
- package/dist/sdk/senate-lobbying.js.map +1 -0
- package/dist/sdk/treasury.d.ts +59 -0
- package/dist/sdk/treasury.d.ts.map +1 -0
- package/dist/sdk/treasury.js +1397 -0
- package/dist/sdk/treasury.js.map +1 -0
- package/dist/sdk/usaspending.d.ts +126 -0
- package/dist/sdk/usaspending.d.ts.map +1 -0
- package/dist/sdk/usaspending.js +270 -0
- package/dist/sdk/usaspending.js.map +1 -0
- package/dist/sdk/usda-fooddata.d.ts +112 -0
- package/dist/sdk/usda-fooddata.d.ts.map +1 -0
- package/dist/sdk/usda-fooddata.js +80 -0
- package/dist/sdk/usda-fooddata.js.map +1 -0
- package/dist/sdk/usda-nass.d.ts +75 -0
- package/dist/sdk/usda-nass.d.ts.map +1 -0
- package/dist/sdk/usda-nass.js +83 -0
- package/dist/sdk/usda-nass.js.map +1 -0
- package/dist/sdk/usgs.d.ts +221 -0
- package/dist/sdk/usgs.d.ts.map +1 -0
- package/dist/sdk/usgs.js +182 -0
- package/dist/sdk/usgs.js.map +1 -0
- package/dist/sdk/uspto.d.ts +109 -0
- package/dist/sdk/uspto.d.ts.map +1 -0
- package/dist/sdk/uspto.js +286 -0
- package/dist/sdk/uspto.js.map +1 -0
- package/dist/sdk/world-bank.d.ts +78 -0
- package/dist/sdk/world-bank.d.ts.map +1 -0
- package/dist/sdk/world-bank.js +72 -0
- package/dist/sdk/world-bank.js.map +1 -0
- package/dist/server.d.ts +22 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +196 -0
- package/dist/server.js.map +1 -0
- package/package.json +113 -0
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-referencing guide — static expert knowledge about combining data across APIs.
|
|
3
|
+
*
|
|
4
|
+
* This is appended to the auto-generated per-module instructions in server.ts.
|
|
5
|
+
* It teaches the client how to enrich answers by pulling from multiple data sources.
|
|
6
|
+
*/
|
|
7
|
+
export const CROSS_REFERENCE_GUIDE = `
|
|
8
|
+
== CROSS-REFERENCING GUIDE ==
|
|
9
|
+
CRITICAL: Never answer a question using just one API when multiple can provide richer context.
|
|
10
|
+
Before responding, always ask: 'What other data sources would make this answer more complete?'
|
|
11
|
+
|
|
12
|
+
=== QUESTION-TYPE ROUTING ===
|
|
13
|
+
Detect the type of question and automatically pull from the right combination:
|
|
14
|
+
|
|
15
|
+
DEBT / DEFICIT:
|
|
16
|
+
Primary: Treasury (debt_to_penny) → get raw debt number
|
|
17
|
+
Enrich: FRED (GDP) → calculate debt-to-GDP ratio for context
|
|
18
|
+
Enrich: FRED (FYFSGDA188S) → deficit as % of GDP over time
|
|
19
|
+
Enrich: Treasury (avg_interest_rates) → cost of servicing the debt
|
|
20
|
+
Explain: Congress (congress_search_bills for 'debt ceiling', congress_recent_laws) → what legislation drove it
|
|
21
|
+
Explain: Congress (congress_house_votes, congress_senate_votes) → how each party voted on debt ceiling and budget bills
|
|
22
|
+
Compare: FRED (GDP, UNRATE) → was deficit spending during recession or expansion?
|
|
23
|
+
Compare: World Bank (GC.DOD.TOTL.GD.ZS) → how does U.S. debt-to-GDP compare internationally?
|
|
24
|
+
|
|
25
|
+
SPENDING / BUDGET:
|
|
26
|
+
Primary: USAspending (by_agency, by_award) → who got the money
|
|
27
|
+
Enrich: Treasury (MTS mts_table_1) → total receipts vs outlays
|
|
28
|
+
Enrich: Census (population) → convert to per-capita figures
|
|
29
|
+
Explain: Congress (congress_search_bills) → what authorized the spending
|
|
30
|
+
Explain: Congress (congress_house_votes, congress_senate_votes) → how each party voted on the appropriation
|
|
31
|
+
Explain: Federal Register → any executive orders that directed spending
|
|
32
|
+
Compare: USAspending (over_time) → is it trending up or down?
|
|
33
|
+
Context: USDA NASS → agriculture spending context (USDA is 5th largest agency)
|
|
34
|
+
Context: Senate Lobbying (lobbying_search) → who lobbied for the spending program
|
|
35
|
+
|
|
36
|
+
ECONOMIC CONDITIONS (GDP, jobs, inflation, rates):
|
|
37
|
+
Primary: FRED (GDP, UNRATE, CPIAUCSL, FEDFUNDS, PAYEMS) → the numbers
|
|
38
|
+
Enrich: FRED (multiple related series) → always show 3-5 related indicators together
|
|
39
|
+
Enrich: BLS (bls_cpi_breakdown) → show WHICH categories drive inflation (food, shelter, energy, medical)
|
|
40
|
+
Enrich: BLS (bls_employment_by_industry) → show WHICH sectors are adding/losing jobs
|
|
41
|
+
Enrich: BEA (bea_gdp_by_industry) → show WHICH industries drive GDP
|
|
42
|
+
Enrich: DOL (dol_ui_claims_national) → weekly unemployment insurance claims (leading indicator)
|
|
43
|
+
Context: Treasury (debt, revenue) → fiscal backdrop
|
|
44
|
+
Context: Congress (recent laws) → what legislation was active
|
|
45
|
+
Context: Federal Register (executive orders) → executive actions in effect
|
|
46
|
+
Context: Note which president/congress was in office with dates
|
|
47
|
+
Compare: World Bank (same indicators for peer nations) → is U.S. inflation/growth high or low vs peers?
|
|
48
|
+
|
|
49
|
+
STATE-LEVEL QUESTIONS:
|
|
50
|
+
Primary: Census (population, income, demographics)
|
|
51
|
+
Enrich: BEA (bea_gdp_by_state) → state GDP and growth rate
|
|
52
|
+
Enrich: BEA (bea_personal_income, state FIPS) → per-capita income by state
|
|
53
|
+
Enrich: BLS (bls_search_series state_employment + bls_series_data) → state unemployment and jobs
|
|
54
|
+
Enrich: USAspending (by_state) → federal dollars flowing to state
|
|
55
|
+
Enrich: FEC (search candidates by state) → political representation
|
|
56
|
+
Enrich: CDC (cdc_places_health) → county-level health indicators (obesity, diabetes, depression, food insecurity)
|
|
57
|
+
Enrich: NOAA (noaa_climate_data) → climate/weather patterns affecting the state
|
|
58
|
+
Enrich: HUD (hud_fair_market_rents) → rental costs and housing affordability
|
|
59
|
+
Enrich: FEMA (fema_disaster_declarations) → disaster history and federal aid
|
|
60
|
+
Enrich: CFPB (cfpb_complaint_aggregations state) → financial complaint volume in state
|
|
61
|
+
Enrich: FDIC (fdic_search_institutions) → banking institutions in the state
|
|
62
|
+
Enrich: DOL (dol_osha_inspections, dol_whd_enforcement) → workplace safety and wage enforcement in state
|
|
63
|
+
Enrich: DOL (dol_ui_claims_state) → unemployment insurance claims for the state
|
|
64
|
+
Calculate: Federal spending per capita = USAspending total / Census population
|
|
65
|
+
|
|
66
|
+
LEGISLATION / POLICY:
|
|
67
|
+
Primary: Congress (congress_bill_details, cosponsors, status) → what passed and how
|
|
68
|
+
Enrich: Congress (congress_house_votes) → House party-line vote breakdown (Congress.gov API for 118th+, clerk.house.gov XML 1990+)
|
|
69
|
+
Enrich: Congress (congress_senate_votes) → Senate party-line vote breakdown (senate.gov XML 101st/1989+)
|
|
70
|
+
Enrich: Congress (congress_bill_actions) → full legislative timeline (committee, floor, enrolled)
|
|
71
|
+
Enrich: Congress (congress_bill_amendments) → how the bill was modified during debate
|
|
72
|
+
Enrich: GovInfo (govinfo_bill_text) → full enrolled text of the law
|
|
73
|
+
Enrich: FRED (before/after indicators) → economic impact with 1yr pre and 1-3yr post data
|
|
74
|
+
Enrich: Treasury (debt, deficit before/after) → fiscal impact
|
|
75
|
+
Enrich: USAspending (spending trends before/after) → spending changes
|
|
76
|
+
Enrich: Federal Register (related executive orders) → implementation actions
|
|
77
|
+
Enrich: Senate Lobbying (lobbying_search) → who lobbied for/against the bill and how much they spent
|
|
78
|
+
Enrich: Regulations.gov (regulations_search_documents) → implementing regulations after the law passed
|
|
79
|
+
Always: Show party-line breakdown of votes vs economic outcome
|
|
80
|
+
Always: Compare House vote and Senate vote for the same bill to show bicameral alignment/divergence
|
|
81
|
+
|
|
82
|
+
ELECTIONS / CAMPAIGN FINANCE:
|
|
83
|
+
Primary: FEC (candidates, committees, financials) → who raised what
|
|
84
|
+
Enrich: Congress (congress_member_bills) → bills they sponsored/cosponsored while in office
|
|
85
|
+
Enrich: Congress (congress_house_votes, congress_senate_votes) → their voting record on key bills
|
|
86
|
+
Enrich: Congress (congress_bill_details) → did they cosponsor popular/unpopular legislation?
|
|
87
|
+
Enrich: USAspending (contracts to donors/donor companies) → follow the money
|
|
88
|
+
Enrich: Senate Lobbying (lobbying_search) → who lobbied on what issues and how much they spent
|
|
89
|
+
Enrich: Senate Lobbying (lobbying_contributions) → lobbyist campaign donations to politicians
|
|
90
|
+
Context: FRED (economic conditions during election cycle)
|
|
91
|
+
Context: Congress (congress_house_votes year=election_year) → how they voted in the election year
|
|
92
|
+
|
|
93
|
+
EXECUTIVE ACTIONS / REGULATIONS:
|
|
94
|
+
Primary: Federal Register (executive orders, rules) → what was signed
|
|
95
|
+
Enrich: Regulations.gov (regulations_search_documents) → proposed/final rules, supporting documents
|
|
96
|
+
Enrich: Regulations.gov (regulations_search_comments) → public comments on proposed rules
|
|
97
|
+
Enrich: Congress (congress_search_bills) → was Congress acting on this too?
|
|
98
|
+
Enrich: Congress (congress_house_votes, congress_senate_votes) → did Congress vote to override or support?
|
|
99
|
+
Enrich: Senate Lobbying (lobbying_search) → who lobbied for/against the action
|
|
100
|
+
Enrich: FRED (economic indicators) → conditions before/after the action
|
|
101
|
+
Enrich: USAspending → did spending patterns change after the order?
|
|
102
|
+
|
|
103
|
+
PRESIDENTIAL COMPARISON:
|
|
104
|
+
For EACH president: FRED (GDP, UNRATE, CPIAUCSL, FEDFUNDS, PAYEMS, SP500, M2SL) at start vs end of term
|
|
105
|
+
For EACH president: Treasury (debt at start vs end, deficit/GDP each year)
|
|
106
|
+
For EACH president: Congress (major laws signed, congress_recent_laws)
|
|
107
|
+
For EACH president: Congress (congress_house_votes, congress_senate_votes) → key votes under each president (e.g. ACA 2010 roll 165, Tax Cuts 2017)
|
|
108
|
+
For EACH president: Federal Register (count and nature of executive orders)
|
|
109
|
+
For EACH president: USAspending (usa_spending_over_time) → federal spending trajectory during term
|
|
110
|
+
Always: Note external factors (recessions, pandemics, wars) that affected outcomes
|
|
111
|
+
Always: Show both raw numbers and context-adjusted figures
|
|
112
|
+
Always: Note which party controlled House and Senate during each congress of the term
|
|
113
|
+
|
|
114
|
+
HEALTH / HEALTHCARE:
|
|
115
|
+
Primary: CDC (cdc_causes_of_death) → what Americans die from, by state/year
|
|
116
|
+
Primary: CDC (cdc_life_expectancy) → life expectancy trends by race/sex (through 2018)
|
|
117
|
+
Primary: CDC (cdc_mortality_rates) → quarterly death rates by cause and state (2020–present)
|
|
118
|
+
Primary: CDC (cdc_weekly_deaths) → most current weekly death surveillance (COVID, flu, pneumonia, total)
|
|
119
|
+
Enrich: ClinicalTrials (clinical_trials_search) → ongoing research for diseases/conditions
|
|
120
|
+
Enrich: ClinicalTrials (clinical_trials_stats) → drug development pipeline activity by disease
|
|
121
|
+
Enrich: USAspending (HHS spending) → how much is spent on healthcare
|
|
122
|
+
Enrich: BLS (bls_cpi_breakdown medical care) → healthcare cost inflation
|
|
123
|
+
Enrich: CDC (cdc_places_health) → county-level: obesity, diabetes, depression, smoking, food insecurity
|
|
124
|
+
Enrich: CDC (cdc_places_city) → city-level health indicators for cities with pop > 50K
|
|
125
|
+
Enrich: CDC (cdc_nutrition_obesity) → obesity, physical inactivity, fruit/vegetable consumption by state
|
|
126
|
+
Enrich: CDC (cdc_drug_overdose) → drug poisoning/overdose mortality by state (opioid crisis)
|
|
127
|
+
Enrich: CDC (cdc_disability) → disability prevalence by state and type
|
|
128
|
+
Enrich: CDC (cdc_birth_indicators) → birth rates, teen births, preterm, cesarean by race
|
|
129
|
+
Enrich: CDC (cdc_death_rates_historical) → 120+ years of death rates for major causes
|
|
130
|
+
Enrich: CMS (cms_hospitals) → hospital quality, mortality, readmissions, infections
|
|
131
|
+
Enrich: CMS (cms_nursing_homes) → nursing home quality and health citations
|
|
132
|
+
Compare: World Bank (SH.XPD.CHEX.PC.CD, SP.DYN.LE00.IN) → U.S. health spend and life expectancy vs other nations
|
|
133
|
+
Context: Census (demographics, aging population) → who needs the most care
|
|
134
|
+
Context: Congress (congress_search_bills for 'healthcare', 'ACA', 'Medicare') → health legislation
|
|
135
|
+
Context: Congress (congress_house_votes, congress_senate_votes) → how each party voted on health bills
|
|
136
|
+
Context: Senate Lobbying (lobbying_search for healthcare, pharmaceutical) → who lobbied on health policy
|
|
137
|
+
|
|
138
|
+
DRUG DEVELOPMENT / PHARMACEUTICAL:
|
|
139
|
+
Primary: ClinicalTrials (clinical_trials_search) → search trials by drug, condition, sponsor, phase
|
|
140
|
+
Primary: ClinicalTrials (clinical_trials_detail) → full protocol, eligibility, locations
|
|
141
|
+
Primary: ClinicalTrials (clinical_trials_stats) → pipeline activity by disease OR drug name (recruiting vs completed vs terminated)
|
|
142
|
+
Enrich: FDA (fda_approved_drugs) → FDA approval history, application number, active ingredients, marketing status
|
|
143
|
+
Enrich: FDA (fda_drug_events) → adverse event reports for approved drugs
|
|
144
|
+
Enrich: FDA (fda_drug_counts) → aggregate adverse event patterns (top reactions, top drugs)
|
|
145
|
+
Enrich: FDA (fda_drug_recalls) → drug recall enforcement reports by company, classification, reason
|
|
146
|
+
Enrich: CDC (cdc_causes_of_death, cdc_mortality_rates) → disease burden the drug targets
|
|
147
|
+
Enrich: SEC (sec_company_search, sec_company_financials) → pharma company financial performance
|
|
148
|
+
Enrich: Senate Lobbying (lobbying_search) → pharma lobbying spend (PhRMA, individual companies)
|
|
149
|
+
Enrich: Senate Lobbying (lobbying_lobbyists) → individual lobbyists working for the pharma company
|
|
150
|
+
Enrich: Senate Lobbying (lobbying_detail) → specific bills and issues the company lobbied on
|
|
151
|
+
Enrich: FEC (fec_search_committees, fec_committee_disbursements) → pharma PAC donations
|
|
152
|
+
Context: Congress (congress_search_bills for drug names or 'prescription drug') → legislation
|
|
153
|
+
Context: Federal Register (fr_search_rules, fr_document_detail) → FDA rulemaking and regulatory actions
|
|
154
|
+
Context: World Bank (SH.XPD.CHEX.PC.CD) → international drug pricing context
|
|
155
|
+
Always: Compare industry-sponsored vs NIH-sponsored trial counts for the same condition
|
|
156
|
+
Always: Use clinical_trials_stats with search_as_drug=true for drug names like 'semaglutide'
|
|
157
|
+
|
|
158
|
+
AGRICULTURE / FOOD PRICES:
|
|
159
|
+
Primary: USDA NASS (usda_crop_data, usda_prices) → production and farm-gate prices
|
|
160
|
+
Enrich: BLS (bls_cpi_breakdown food) → consumer food price inflation
|
|
161
|
+
Enrich: EIA (eia_petroleum) → energy costs affect farming and transport
|
|
162
|
+
Enrich: NOAA (noaa_climate_data) → weather impacts on crop yields
|
|
163
|
+
Enrich: FDA (fda_food_recalls) → food safety recalls and contamination
|
|
164
|
+
Enrich: FDA (fda_food_adverse_events) → illness/injury reports from foods and dietary supplements (CAERS)
|
|
165
|
+
Enrich: USDA FoodData (fooddata_search) → nutritional composition of foods
|
|
166
|
+
Context: USAspending (USDA agency spending) → farm subsidies and programs
|
|
167
|
+
Context: Census (rural population) → farming community demographics
|
|
168
|
+
|
|
169
|
+
NUTRITION / FOOD SCIENCE:
|
|
170
|
+
Primary: USDA FoodData (fooddata_search, fooddata_detail) → full nutrient breakdown for any food
|
|
171
|
+
Enrich: CDC (cdc_nutrition_obesity) → obesity and physical inactivity rates by state
|
|
172
|
+
Enrich: CDC (cdc_places_health FOODINSECU) → food insecurity at county level
|
|
173
|
+
Enrich: FDA (fda_food_recalls) → food safety issues
|
|
174
|
+
Enrich: FDA (fda_food_adverse_events) → adverse event reports from foods and supplements
|
|
175
|
+
Context: BLS (bls_cpi_breakdown food) → food price trends
|
|
176
|
+
|
|
177
|
+
INTERNATIONAL COMPARISON:
|
|
178
|
+
Primary: World Bank (wb_compare) → side-by-side indicator comparison
|
|
179
|
+
Enrich: FRED → U.S. baseline for the same metric
|
|
180
|
+
Enrich: Treasury → U.S. fiscal position
|
|
181
|
+
Context: Always compare like-for-like (GDP per capita, not total GDP, for size-different nations)
|
|
182
|
+
Context: Note data availability gaps (some countries lag 1-3 years)
|
|
183
|
+
|
|
184
|
+
FOOD SAFETY / RECALLS:
|
|
185
|
+
Primary: FDA (fda_food_recalls) → food recall enforcement reports by classification, firm, reason
|
|
186
|
+
Primary: FDA (fda_food_adverse_events) → CAERS adverse event reports from foods and dietary supplements
|
|
187
|
+
Enrich: USDA FoodData (fooddata_search) → nutritional composition of recalled/reported foods
|
|
188
|
+
Enrich: BLS (bls_cpi_breakdown food) → food price inflation context
|
|
189
|
+
Enrich: USDA NASS (usda_crop_data, usda_prices) → production data for affected commodities
|
|
190
|
+
Context: Congress (congress_search_bills for 'food safety', 'FDA') → food safety legislation
|
|
191
|
+
Context: Senate Lobbying (lobbying_search for food industry) → food industry lobbying
|
|
192
|
+
Context: Federal Register (fr_search_rules agency:FDA) → FDA rulemaking activity
|
|
193
|
+
|
|
194
|
+
DRUG SAFETY / RECALLS:
|
|
195
|
+
Primary: FDA (fda_drug_events) → adverse event reports (FAERS) — search by drug name
|
|
196
|
+
Primary: FDA (fda_drug_counts) → aggregate top reactions, top drugs by adverse event count
|
|
197
|
+
Primary: FDA (fda_drug_recalls) → drug recall enforcement reports by classification and company
|
|
198
|
+
Enrich: FDA (fda_approved_drugs) → FDA approval history, active ingredients, marketing status
|
|
199
|
+
Enrich: ClinicalTrials (clinical_trials_search) → ongoing trials for the same drug
|
|
200
|
+
Enrich: ClinicalTrials (clinical_trials_stats with search_as_drug=true) → pipeline activity for the drug
|
|
201
|
+
Enrich: Senate Lobbying (lobbying_search) → manufacturer lobbying spend
|
|
202
|
+
Enrich: Senate Lobbying (lobbying_lobbyists) → who lobbies for the manufacturer
|
|
203
|
+
Context: Congress (congress_search_bills for drug name or 'drug pricing') → legislation
|
|
204
|
+
Context: Federal Register (fr_search_rules) → FDA regulatory actions
|
|
205
|
+
Always: Note that high adverse event counts often correlate with high prescription volume
|
|
206
|
+
|
|
207
|
+
MEDICAL DEVICES / SAFETY:
|
|
208
|
+
Primary: FDA (fda_device_events) → medical device adverse event reports (MAUDE)
|
|
209
|
+
Primary: FDA (fda_device_recalls) → medical device recall reports with root causes
|
|
210
|
+
Enrich: CMS (cms_hospitals) → hospital quality where devices are used
|
|
211
|
+
Enrich: Senate Lobbying (lobbying_search for device manufacturer) → lobbying by device companies
|
|
212
|
+
Context: USPTO (uspto_search_patents) → patents for the device technology
|
|
213
|
+
Context: Congress (congress_search_bills for 'medical device', '510(k)') → device regulation bills
|
|
214
|
+
|
|
215
|
+
ENERGY / CLIMATE:
|
|
216
|
+
Primary: EIA (petroleum, electricity, natural gas prices and production)
|
|
217
|
+
Enrich: NREL (nrel_fuel_stations) → EV charging and alt fuel infrastructure by state
|
|
218
|
+
Enrich: NREL (nrel_utility_rates) → local electricity prices
|
|
219
|
+
Enrich: NREL (nrel_solar) → solar energy potential by location
|
|
220
|
+
Enrich: NOAA (noaa_climate_data) → temperature trends correlate with energy demand
|
|
221
|
+
Enrich: BLS (bls_cpi_breakdown energy) → energy's impact on consumer prices
|
|
222
|
+
Enrich: EPA (epa_air_quality) → pollution levels by state/county
|
|
223
|
+
Enrich: Federal Register → energy-related executive orders and regulations
|
|
224
|
+
Enrich: Congress (congress_search_bills for 'energy', 'climate', 'IRA') → energy legislation
|
|
225
|
+
Enrich: Congress (congress_house_votes, congress_senate_votes) → how each party voted on energy bills
|
|
226
|
+
Enrich: Senate Lobbying (lobbying_search for energy, oil, renewable) → energy industry lobbying
|
|
227
|
+
Compare: World Bank (EN.ATM.CO2E.PC) → U.S. emissions vs other nations
|
|
228
|
+
|
|
229
|
+
EDUCATION / LITERACY:
|
|
230
|
+
Primary: NAEP (naep_scores) → reading, math, science scores by state and grade
|
|
231
|
+
Primary: NAEP (naep_achievement_levels) → % Below Basic, Proficient, Advanced — the key literacy metric
|
|
232
|
+
Enrich: NAEP (naep_compare_years) → track COVID learning loss and recovery (2019 vs 2022 vs 2024)
|
|
233
|
+
Enrich: NAEP (naep_compare_groups) → racial/poverty achievement gaps by SDRACE and SLUNCH3
|
|
234
|
+
Enrich: NAEP (naep_compare_states) → which states score highest/lowest
|
|
235
|
+
Enrich: Census (population, poverty) → demographic context for achievement gaps
|
|
236
|
+
Enrich: CDC (cdc_places_health FOODINSECU) → food insecurity correlates with low test scores
|
|
237
|
+
Enrich: World Bank (SE.XPD.TOTL.GD.ZS) → U.S. education spending vs peers
|
|
238
|
+
Enrich: World Bank (SE.TER.CUAT.BA.ZS) → degree attainment rates over time
|
|
239
|
+
Context: USAspending (Dept of Education spending) → federal education funding
|
|
240
|
+
|
|
241
|
+
COLLEGE / HIGHER EDUCATION:
|
|
242
|
+
Primary: College Scorecard (scorecard_search) → tuition, graduation rates, earnings, debt by school
|
|
243
|
+
Enrich: College Scorecard (scorecard_top earnings) → which schools produce highest earners
|
|
244
|
+
Enrich: College Scorecard (scorecard_compare) → side-by-side school comparison
|
|
245
|
+
Enrich: FRED (SLOAS) → total student loan debt outstanding
|
|
246
|
+
Enrich: BLS (employment by education level) → unemployment rate by degree type
|
|
247
|
+
Enrich: Census (B15003 educational attainment) → degree attainment rates
|
|
248
|
+
Enrich: World Bank (SE.TER.CUAT.BA.ZS) → international degree comparison
|
|
249
|
+
Context: NAEP (naep_scores, naep_achievement_levels) → K-12 pipeline quality feeding into college
|
|
250
|
+
|
|
251
|
+
DISASTERS / EMERGENCY MANAGEMENT:
|
|
252
|
+
Primary: FEMA (fema_disaster_declarations) → declared disasters by type, state, year
|
|
253
|
+
Enrich: FEMA (fema_housing_assistance) → individual housing assistance amounts
|
|
254
|
+
Enrich: FEMA (fema_public_assistance) → public infrastructure grants
|
|
255
|
+
Enrich: USAspending (FEMA agency spending) → total federal disaster spending
|
|
256
|
+
Enrich: NOAA (noaa_climate_data) → weather events that triggered disasters
|
|
257
|
+
Enrich: USGS (usgs_earthquakes) → earthquake data correlating with FEMA declarations
|
|
258
|
+
Enrich: Census (population) → per-capita disaster spending
|
|
259
|
+
Context: Congress (congress_search_bills for 'disaster', 'FEMA') → disaster legislation
|
|
260
|
+
Context: Congress (congress_house_votes, congress_senate_votes) → how each party voted on disaster relief
|
|
261
|
+
Context: Federal Register (executive orders) → emergency declarations
|
|
262
|
+
|
|
263
|
+
EARTHQUAKES / SEISMIC / NATURAL HAZARDS:
|
|
264
|
+
Primary: USGS (usgs_earthquakes) → earthquake events by magnitude, location, date
|
|
265
|
+
Primary: USGS (usgs_significant) → significant recent earthquakes worldwide
|
|
266
|
+
Enrich: USGS (usgs_earthquake_count) → frequency statistics by region/magnitude
|
|
267
|
+
Enrich: FEMA (fema_disaster_declarations, incident_type='Earthquake') → federal disaster response
|
|
268
|
+
Enrich: FEMA (fema_housing_assistance, fema_public_assistance) → federal aid amounts
|
|
269
|
+
Enrich: USAspending (FEMA spending) → total federal disaster outlays
|
|
270
|
+
Enrich: Census (population) → affected population and per-capita aid
|
|
271
|
+
Context: NOAA (noaa_climate_data) → related weather events
|
|
272
|
+
Context: Congress (search bills for 'earthquake', 'seismic', 'building codes') → safety legislation
|
|
273
|
+
|
|
274
|
+
WATER RESOURCES / DROUGHT / FLOODING:
|
|
275
|
+
Primary: USGS (usgs_water_data) → real-time streamflow, water levels, temperature
|
|
276
|
+
Primary: USGS (usgs_daily_water_data) → historical daily averages for trend analysis
|
|
277
|
+
Primary: USGS (usgs_water_sites) → 13,000+ monitoring stations
|
|
278
|
+
Enrich: NOAA (noaa_climate_data) → precipitation and temperature data
|
|
279
|
+
Enrich: FEMA (fema_disaster_declarations, incident_type='Flood') → flood disaster declarations
|
|
280
|
+
Enrich: EPA (epa_facilities) → water quality compliance
|
|
281
|
+
Enrich: CDC (cdc_places_health) → health impacts in affected areas
|
|
282
|
+
Context: USDA NASS (usda_crop_data) → agricultural water impacts
|
|
283
|
+
Context: Congress (search bills for 'water', 'drought', 'infrastructure') → legislation
|
|
284
|
+
|
|
285
|
+
HOUSING / RENT / AFFORDABILITY:
|
|
286
|
+
Primary: HUD (hud_fair_market_rents) → HUD-determined fair rents by bedroom count
|
|
287
|
+
Primary: HUD (hud_income_limits) → income thresholds for housing programs
|
|
288
|
+
Enrich: FRED (USSTHPI) → FHFA House Price Index (national)
|
|
289
|
+
Enrich: Census (B25077 home values, B25064 median rent) → actual market rents and home values
|
|
290
|
+
Enrich: FRED (MORTGAGE30US, CSUSHPINSA) → mortgage rates and Case-Shiller home price index
|
|
291
|
+
Enrich: BEA (bea_personal_income) → state/metro income to compare against rents
|
|
292
|
+
Enrich: BLS (bls_cpi_breakdown shelter) → housing cost inflation
|
|
293
|
+
Context: USAspending (HUD agency spending) → federal housing assistance spending
|
|
294
|
+
Context: FEMA (fema_housing_assistance) → disaster-related housing aid
|
|
295
|
+
Context: Senate Lobbying (lobbying_search for real estate, housing) → who lobbied on housing policy
|
|
296
|
+
|
|
297
|
+
VEHICLE SAFETY / AUTO:
|
|
298
|
+
Primary: NHTSA (nhtsa_recalls) → safety recalls by make/model/year
|
|
299
|
+
Primary: NHTSA (nhtsa_complaints) → consumer safety complaints with crash/fire/injury stats
|
|
300
|
+
Enrich: NHTSA (nhtsa_safety_ratings) → NCAP 5-star crash test ratings (frontal, side, rollover) + safety tech
|
|
301
|
+
Enrich: NHTSA (nhtsa_decode_vin) → decode any VIN for full vehicle specs
|
|
302
|
+
Enrich: NHTSA (nhtsa_models) → list all makes and models
|
|
303
|
+
Context: NREL (nrel_fuel_stations) → EV charging infrastructure for electric vehicles
|
|
304
|
+
Context: EPA (epa_air_quality) → vehicle emissions and air quality
|
|
305
|
+
|
|
306
|
+
TRANSPORTATION / INFRASTRUCTURE:
|
|
307
|
+
Primary: BTS (bts_transport_stats) → monthly transportation indicators: airline traffic, on-time %, transit ridership, rail freight, truck tonnage, fuel prices, vehicle sales, safety fatalities, Transportation Services Index
|
|
308
|
+
Primary: BTS (bts_border_crossings) → vehicles, passengers, containers at U.S. ports of entry
|
|
309
|
+
Enrich: EIA (eia_petroleum) → fuel prices impact transportation costs
|
|
310
|
+
Enrich: BLS (bls_cpi_breakdown transportation) → transportation cost inflation
|
|
311
|
+
Enrich: USAspending (DOT agency spending) → federal infrastructure investment
|
|
312
|
+
Enrich: NHTSA (nhtsa_recalls, nhtsa_complaints, nhtsa_safety_ratings) → vehicle safety data and crash ratings
|
|
313
|
+
Enrich: NREL (nrel_fuel_stations) → EV and alt-fuel infrastructure
|
|
314
|
+
Enrich: EPA (epa_air_quality) → transportation emissions impact
|
|
315
|
+
Context: Congress (search bills for 'infrastructure', 'highway', 'FAA', 'transit') → legislation
|
|
316
|
+
Context: Senate Lobbying (lobbying_search for aviation, transportation, railroad) → industry lobbying
|
|
317
|
+
|
|
318
|
+
PATENTS / INNOVATION / TECHNOLOGY:
|
|
319
|
+
Primary: USPTO (uspto_search_patents) → search patents by keyword, assignee, inventor, CPC class
|
|
320
|
+
Enrich: USPTO (uspto_search_assignees) → top patent-holding companies in an area
|
|
321
|
+
Enrich: USPTO (uspto_search_inventors) → prolific inventors by name or location
|
|
322
|
+
Enrich: SEC (sec_company_search) → financial data for patent-holding companies
|
|
323
|
+
Context: USAspending (R&D agency spending) → federal research funding
|
|
324
|
+
Context: Census (population, education) → innovation ecosystem demographics
|
|
325
|
+
Context: World Bank (GB.XPD.RSDV.GD.ZS) → R&D spending as % of GDP internationally
|
|
326
|
+
|
|
327
|
+
HEALTHCARE FACILITIES / QUALITY:
|
|
328
|
+
Primary: CMS (cms_hospitals) → hospital quality ratings, readmissions, infections, mortality
|
|
329
|
+
Primary: CMS (cms_nursing_homes) → nursing home ratings, health citations, staffing
|
|
330
|
+
Enrich: FDA (fda_device_events) → medical device adverse events at facilities
|
|
331
|
+
Enrich: FDA (fda_device_recalls) → recalled medical devices
|
|
332
|
+
Enrich: CDC (cdc_places_health) → county-level health indicators where facilities operate
|
|
333
|
+
Enrich: Census (population, demographics) → who is served by these facilities
|
|
334
|
+
Enrich: USAspending (HHS/CMS spending) → Medicare/Medicaid spending
|
|
335
|
+
Enrich: BLS (bls_cpi_breakdown medical care) → healthcare cost inflation
|
|
336
|
+
|
|
337
|
+
BANKING / FINANCIAL REGULATION:
|
|
338
|
+
Primary: FDIC (fdic_search_institutions) → search FDIC-insured banks by state, assets, charter type
|
|
339
|
+
Primary: FDIC (fdic_failures) → bank failures since 1934 with costs and resolution types
|
|
340
|
+
Primary: FDIC (fdic_financials) → quarterly Call Report data (assets, deposits, income, ROA, ROE)
|
|
341
|
+
Enrich: CFPB (cfpb_search_complaints) → consumer complaints against financial companies
|
|
342
|
+
Enrich: CFPB (cfpb_complaint_aggregations) → complaint volume by company/product/state
|
|
343
|
+
Enrich: CFPB (cfpb_complaint_trends) → complaint trends over time for companies/products
|
|
344
|
+
Enrich: FDIC (fdic_deposits) → branch-level deposit data for market share analysis
|
|
345
|
+
Enrich: FDIC (fdic_history) → mergers, acquisitions, charter changes
|
|
346
|
+
Enrich: SEC (sec_company_search, sec_company_financials) → publicly traded bank financials
|
|
347
|
+
Enrich: FRED (FEDFUNDS, DGS10, MORTGAGE30US) → interest rate environment affecting banks
|
|
348
|
+
Enrich: Senate Lobbying (lobbying_search) → bank lobbying on financial regulation
|
|
349
|
+
Context: Congress (search bills for 'banking', 'Dodd-Frank', 'financial regulation') → relevant legislation
|
|
350
|
+
Context: Federal Register (fr_search_rules agency:CFPB or OCC or FDIC) → rulemaking activity
|
|
351
|
+
Context: Federal Register (fr_agencies) → list all agencies for filtering rule searches
|
|
352
|
+
Compare: FRED (TOTBKCR, BUSLOANS) → total bank credit and commercial lending trends
|
|
353
|
+
|
|
354
|
+
CONSUMER PROTECTION / FINANCIAL COMPLAINTS:
|
|
355
|
+
Primary: CFPB (cfpb_search_complaints) → individual complaints with narratives and company responses
|
|
356
|
+
Primary: CFPB (cfpb_complaint_aggregations) → complaint counts by company, product, state, issue
|
|
357
|
+
Primary: CFPB (cfpb_complaint_trends) → complaint volume trends over time
|
|
358
|
+
Enrich: CFPB (cfpb_suggest_company) → find exact company name for complaint searches
|
|
359
|
+
Enrich: FDIC (fdic_search_institutions) → bank details for complained-about institutions
|
|
360
|
+
Enrich: SEC (sec_company_search) → financial data for complained-about companies
|
|
361
|
+
Enrich: FEC (fec_search_candidates) → political donations by financial company executives
|
|
362
|
+
Enrich: Senate Lobbying (lobbying_search) → lobbying by complained-about companies
|
|
363
|
+
Context: Congress (search bills for 'consumer protection', 'CFPB') → related legislation
|
|
364
|
+
Context: Federal Register (fr_search_rules agency:CFPB) → CFPB rulemaking
|
|
365
|
+
Context: Federal Register (fr_document_detail) → full detail on specific regulatory documents
|
|
366
|
+
|
|
367
|
+
WORKPLACE SAFETY / LABOR:
|
|
368
|
+
Primary: DOL (dol_osha_inspections) → OSHA workplace inspections by state, company, industry
|
|
369
|
+
Primary: DOL (dol_osha_violations) → violations found: type (Serious/Willful/Repeat), penalties, standards cited
|
|
370
|
+
Primary: DOL (dol_osha_accidents) → accident/fatality investigations with event descriptions
|
|
371
|
+
Primary: DOL (dol_osha_accident_injuries) → injury demographics and severity from accidents
|
|
372
|
+
Enrich: DOL (dol_whd_enforcement) → wage theft cases: back wages, FLSA/FMLA violations, penalties
|
|
373
|
+
Enrich: BLS (bls_employment_by_industry) → employment levels in inspected industries
|
|
374
|
+
Enrich: BLS (bls_search_series + bls_series_data) → workplace injury/illness rates (BLS survey)
|
|
375
|
+
Enrich: Census (population) → per-capita violation/injury rates
|
|
376
|
+
Context: Congress (congress_search_bills for 'OSHA', 'workplace safety', 'worker protection') → safety legislation
|
|
377
|
+
Context: Congress (congress_house_votes, congress_senate_votes) → how each party voted on labor/safety bills
|
|
378
|
+
Context: Federal Register (fr_search_rules agency:OSHA) → OSHA rulemaking
|
|
379
|
+
Context: Senate Lobbying (lobbying_search for OSHA or workplace safety) → who lobbied on safety regulations
|
|
380
|
+
Context: USAspending (DOL agency spending) → OSHA enforcement budget
|
|
381
|
+
|
|
382
|
+
UNEMPLOYMENT / LABOR MARKET:
|
|
383
|
+
Primary: DOL (dol_ui_claims_national) → weekly initial and continued unemployment claims
|
|
384
|
+
Primary: DOL (dol_ui_claims_state) → state-level weekly UI claims
|
|
385
|
+
Enrich: FRED (UNRATE, PAYEMS, ICSA, CCSA) → unemployment rate, payrolls, claims from FRED
|
|
386
|
+
Enrich: BLS (bls_employment_by_industry) → which industries are adding/losing jobs
|
|
387
|
+
Enrich: BEA (bea_personal_income) → income trends alongside employment
|
|
388
|
+
Enrich: FEMA (fema_disaster_declarations) → disasters causing employment disruption
|
|
389
|
+
Context: Congress (search bills for 'unemployment', 'jobs', 'workforce') → jobs legislation
|
|
390
|
+
Context: Federal Register (executive orders) → executive actions affecting employment
|
|
391
|
+
|
|
392
|
+
DEREGULATION IMPACT:
|
|
393
|
+
Primary: CFPB (cfpb_complaint_trends) → did complaints rise/fall after regulatory changes?
|
|
394
|
+
Primary: DOL (dol_osha_inspections) → did inspection frequency change after deregulation?
|
|
395
|
+
Primary: FDIC (fdic_failures) → did bank failure rate change?
|
|
396
|
+
Enrich: DOL (dol_osha_violations, dol_osha_accidents) → violation/accident trends after policy changes
|
|
397
|
+
Enrich: CFPB (cfpb_complaint_aggregations by company) → which companies saw complaint changes
|
|
398
|
+
Enrich: DOL (dol_whd_enforcement) → wage theft enforcement trends
|
|
399
|
+
Enrich: EPA (epa_facilities, epa_air_quality) → environmental compliance after deregulation
|
|
400
|
+
Enrich: Federal Register (fr_executive_orders, fr_search_rules) → what was deregulated and when
|
|
401
|
+
Enrich: Congress (congress_search_bills) → legislative rollbacks
|
|
402
|
+
Enrich: Congress (congress_house_votes, congress_senate_votes) → how each party voted on the deregulation
|
|
403
|
+
Enrich: Senate Lobbying (lobbying_search) → who lobbied for/against the regulation
|
|
404
|
+
Context: FRED (economic indicators) → economic conditions alongside regulatory changes
|
|
405
|
+
|
|
406
|
+
CONFLICT OF INTEREST / ACCOUNTABILITY / CORRUPTION / MONEY IN POLITICS:
|
|
407
|
+
This is an investigative workflow. When users ask about conflicts of interest, corruption, whether politicians are bought, money in politics, PAC influence, or "who benefits" from legislation, follow this systematic pipeline:
|
|
408
|
+
|
|
409
|
+
Step 1 — Identify the politician:
|
|
410
|
+
FEC (fec_search_candidates) → get candidate ID, state, party, office
|
|
411
|
+
Congress (congress_member_details or congress_search_members) → get BioGuide ID, committee assignments
|
|
412
|
+
|
|
413
|
+
Step 2 — Follow their money (CAMPAIGN FINANCE):
|
|
414
|
+
FEC (fec_candidate_financials) → total raised, PAC money, PAC percentage across ALL election cycles
|
|
415
|
+
FEC (fec_search_committees with committee_type="Q") → find named industry PACs (search by company name: "Wells Fargo", "Pfizer", "Goldman Sachs", etc.)
|
|
416
|
+
FEC (fec_committee_disbursements with recipient_name) → CRITICAL: get exact, dated, dollar-amount disbursements from each named PAC to the politician. Search multiple cycles (election year ± 1 cycle). This is the direct money trail.
|
|
417
|
+
Senate Lobbying (lobbying_contributions) → lobbyist campaign donations
|
|
418
|
+
|
|
419
|
+
Step 3 — Follow the lobbying:
|
|
420
|
+
Senate Lobbying (lobbying_search) → search by industry trade group ("American Bankers Association", "PhRMA") and by individual companies. Get annual lobbying spend for 3+ years around the vote.
|
|
421
|
+
Senate Lobbying (lobbying_detail) → specific bills listed in lobbying filings
|
|
422
|
+
Senate Lobbying (lobbying_lobbyists) → individual lobbyists working for the company/industry
|
|
423
|
+
|
|
424
|
+
Step 4 — Find the vote:
|
|
425
|
+
Congress (congress_search_bills) → find the bill by keyword or number
|
|
426
|
+
Congress (congress_bill_details) → sponsor, cosponsors, committees, status
|
|
427
|
+
Congress (congress_senate_votes or congress_house_votes) → party-line breakdown
|
|
428
|
+
Congress (congress_bill_actions) → full timeline from introduction to signing
|
|
429
|
+
|
|
430
|
+
Step 5 — Measure the outcome:
|
|
431
|
+
FDIC (fdic_failures) → if banking: did deregulated banks fail? What was the cost?
|
|
432
|
+
FRED (economic indicators before/after) → did the policy have measurable economic effects?
|
|
433
|
+
BLS (bls_cpi_breakdown) → if consumer prices: did prices rise/fall after the vote?
|
|
434
|
+
World Bank (wb_compare) → international comparison of outcomes (e.g., drug prices, health spending)
|
|
435
|
+
USAspending → did federal spending change after the legislation?
|
|
436
|
+
CFPB (cfpb_complaint_trends) → did consumer complaints change?
|
|
437
|
+
CDC (cdc_causes_of_death, cdc_mortality_rates) → if health-related: did health outcomes change?
|
|
438
|
+
|
|
439
|
+
Step 6 — Who benefited from the aftermath:
|
|
440
|
+
Senate Lobbying (lobbying_search) → did the benefiting companies increase lobbying after?
|
|
441
|
+
SEC (sec_company_search, sec_company_financials) → did benefiting companies' financials improve?
|
|
442
|
+
FEC (fec_committee_disbursements) → did PAC donations continue/increase after favorable vote?
|
|
443
|
+
|
|
444
|
+
Always: Present the full chain: Money In → Vote → Outcome → Who Benefited
|
|
445
|
+
Always: Show both "why it looks suspicious" and "why it might be OK" — present both interpretations
|
|
446
|
+
Always: Note that correlation does not prove causation
|
|
447
|
+
Always: Quantify with ratios — lobbying spend vs. public cost, PAC money vs. policy benefit
|
|
448
|
+
|
|
449
|
+
KEY PAC LOOKUP TECHNIQUE:
|
|
450
|
+
To find which PACs gave to a politician, you must work backwards from the industry:
|
|
451
|
+
1. Identify the relevant industry (banking, pharma, energy, tech, etc.)
|
|
452
|
+
2. Search for each major company's PAC: fec_search_committees(name="Company Name", committee_type="Q")
|
|
453
|
+
3. Get the committee_id for each PAC found
|
|
454
|
+
4. Query disbursements: fec_committee_disbursements(committee_id, cycle, recipient_name="Senator Last Name")
|
|
455
|
+
5. Try multiple cycles — the politician's election year AND the surrounding cycles
|
|
456
|
+
6. Common industry PACs to check:
|
|
457
|
+
Banking: ABA BankPAC (C00004275), Wells Fargo (C00034595), Citigroup (C00008474), Goldman Sachs (C00350744), Bank of America (C00364778), JPMorgan (C00104299)
|
|
458
|
+
Pharma: Pfizer (C00016683), Merck (C00097485), PhRMA trade group (search "PhRMA")
|
|
459
|
+
Energy: Search by company name (ExxonMobil, Chevron, etc.)
|
|
460
|
+
Tech: Search by company name (Google, Meta, Amazon, etc.)
|
|
461
|
+
Defense: Search by company name (Lockheed Martin, Raytheon, Boeing, etc.)
|
|
462
|
+
|
|
463
|
+
INVESTIGATIVE / FOLLOW THE MONEY / WHO BENEFITS:
|
|
464
|
+
This applies when users ask questions like "who benefits from X", "follow the money", "is X corrupt", "show me the money trail", "who lobbied for X", "did donors influence the vote":
|
|
465
|
+
|
|
466
|
+
For a SPECIFIC BILL:
|
|
467
|
+
Congress (congress_bill_details) → sponsor and cosponsors
|
|
468
|
+
For EACH sponsor/cosponsor of interest:
|
|
469
|
+
FEC (fec_candidate_financials) → PAC money percentage
|
|
470
|
+
FEC (fec_search_committees + fec_committee_disbursements) → named PAC donations from benefiting industry
|
|
471
|
+
Senate Lobbying (lobbying_search by industry) → total lobbying spend around the bill
|
|
472
|
+
Congress (congress_senate_votes or congress_house_votes) → who voted which way, party breakdown
|
|
473
|
+
Then measure outcomes (see Step 5 above)
|
|
474
|
+
|
|
475
|
+
For a SPECIFIC INDUSTRY:
|
|
476
|
+
Senate Lobbying (lobbying_search) → total annual lobbying spend, trending over time
|
|
477
|
+
FEC (fec_search_committees, committee_type="Q") → find all industry PACs
|
|
478
|
+
FEC (fec_committee_disbursements) → where did each PAC send money?
|
|
479
|
+
Congress (congress_search_bills) → what bills did they lobby on?
|
|
480
|
+
Congress (votes) → how did recipients vote on those bills?
|
|
481
|
+
Regulations.gov (regulations_search_documents) → what rules affect this industry?
|
|
482
|
+
|
|
483
|
+
For a SPECIFIC POLITICIAN:
|
|
484
|
+
FEC (fec_candidate_financials) → all cycles, PAC dependency trend
|
|
485
|
+
FEC (fec_committee_disbursements from top industry PACs) → direct money trail
|
|
486
|
+
Congress (congress_member_bills) → what did they sponsor?
|
|
487
|
+
Congress (votes) → how did they vote on industry-relevant bills?
|
|
488
|
+
Senate Lobbying (lobbying_search) → who lobbied them (by their committee assignments)?
|
|
489
|
+
Senate Lobbying (lobbying_contributions) → lobbyist donations to them
|
|
490
|
+
|
|
491
|
+
=== ENRICHMENT RULES ===
|
|
492
|
+
These rules apply to EVERY response, regardless of question type:
|
|
493
|
+
|
|
494
|
+
1. ALWAYS ADD CONTEXT TO RAW NUMBERS:
|
|
495
|
+
- Debt → also show debt-to-GDP ratio (debt / FRED GDP)
|
|
496
|
+
- Spending → also show per-capita (spending / Census population)
|
|
497
|
+
- Dollar amounts over time → note inflation (adjust using FRED CPIAUCSL if comparing years)
|
|
498
|
+
- Any federal number → note which president and congress were in office
|
|
499
|
+
- U.S. metrics → consider showing international comparison via World Bank
|
|
500
|
+
|
|
501
|
+
2. ALWAYS SHOW TRENDS, NOT JUST SNAPSHOTS:
|
|
502
|
+
- If asked about 'current' anything, also show the trajectory (last 3-5 data points minimum)
|
|
503
|
+
- If asked about a specific year, also show the year before and after for comparison
|
|
504
|
+
|
|
505
|
+
3. CORRELATION IS NOT CAUSATION:
|
|
506
|
+
- NEVER say a policy 'caused' an economic outcome
|
|
507
|
+
- Say 'coincided with' or 'occurred during', NOT 'caused' or 'led to'
|
|
508
|
+
- ALWAYS list confounding factors: global events, Fed policy, prior actions, seasonal patterns
|
|
509
|
+
|
|
510
|
+
4. BE OBJECTIVE — NO EDITORIALIZING:
|
|
511
|
+
- Use neutral language: 'declined 21%' not 'collapsed', 'increased' not 'surged'
|
|
512
|
+
- Do NOT characterize policies as 'wins' or 'failures'
|
|
513
|
+
- Present both interpretations when data is ambiguous
|
|
514
|
+
|
|
515
|
+
5. QUANTIFY SIGNIFICANCE WITH DATA, NOT ADJECTIVES:
|
|
516
|
+
- Instead of 'a massive drop', say 'a decline of X%, the largest since [date] when it was Y%'
|
|
517
|
+
- Provide the historical range so the user can judge significance themselves
|
|
518
|
+
|
|
519
|
+
6. CITE YOUR SOURCES EXPLICITLY:
|
|
520
|
+
- For every number, state which API and series/endpoint it came from
|
|
521
|
+
- Distinguish between raw data and calculated/derived figures
|
|
522
|
+
|
|
523
|
+
7. PROVIDE MULTIPLE PERSPECTIVES:
|
|
524
|
+
- GDP can grow while median wages stagnate (show both)
|
|
525
|
+
- Unemployment can be low while labor participation is also low (show both)
|
|
526
|
+
- U.S. can rank #1 in total spending but poorly per-capita — show both
|
|
527
|
+
|
|
528
|
+
8. PROACTIVELY CONNECT DOTS (but label connections as correlations):
|
|
529
|
+
- If a bill passed, check what happened to related FRED series 1-3 years later
|
|
530
|
+
- If a bill passed, pull congress_house_votes AND congress_senate_votes to show the party-line breakdown
|
|
531
|
+
- If spending spiked, search Congress for the authorizing law AND the vote that approved it
|
|
532
|
+
- If an indicator moved sharply, check Federal Register for executive orders nearby
|
|
533
|
+
- If health outcomes differ by state, check CDC (cdc_places_health, cdc_nutrition_obesity, cdc_drug_overdose) + Census demographics
|
|
534
|
+
- If food prices spike, check USDA NASS crop production + NOAA weather events
|
|
535
|
+
- If a regulation was proposed, check lobbying_search for who lobbied on it AND regulations_search_comments for public input
|
|
536
|
+
- If a member voted a certain way, check FEC for their top donors (fec_candidate_financials) and lobbying_contributions to find potential connections
|
|
537
|
+
- ALWAYS trace the direct money trail: use fec_search_committees(name, committee_type='Q') to find industry PAC IDs, then fec_committee_disbursements(committee_id, recipient_name) to get exact dollar amounts, dates, and descriptions of PAC-to-candidate payments
|
|
538
|
+
- When investigating a bill's sponsor: find PACs from the industry that benefits, then query disbursements to the sponsor AND key cosponsors for the 2 cycles surrounding the bill
|
|
539
|
+
- Build a chronological timeline: PAC donation dates → bill introduction → lobbying spend spikes → vote date → outcomes (failures, price changes, etc.)
|
|
540
|
+
|
|
541
|
+
9. FOR CONFLICT OF INTEREST INVESTIGATIONS — ALWAYS PULL ALL 5 LAYERS:
|
|
542
|
+
Layer 1 — DIRECT MONEY: fec_committee_disbursements from named industry PACs to the politician (not just aggregate PAC totals)
|
|
543
|
+
Layer 2 — LOBBYING: lobbying_search for the industry trade group AND individual companies, with annual spend for 3+ years
|
|
544
|
+
Layer 3 — THE VOTE: senate_votes or house_votes with full party-line breakdown
|
|
545
|
+
Layer 4 — THE OUTCOME: measurable consequences (FDIC failures, price indices, complaint trends, health outcomes)
|
|
546
|
+
Layer 5 — WHO BENEFITED: did the industry's lobbying increase after? did a competitor acquire assets cheaply?
|
|
547
|
+
Present all 5 layers together to show the full pipeline from money → influence → policy → public impact
|
|
548
|
+
`;
|
|
549
|
+
//# sourceMappingURL=instructions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructions.js","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6hBpC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BEA MCP module — tools + metadata. Delegates all API calls to sdk/bea.
|
|
3
|
+
*
|
|
4
|
+
* Tools return raw JSON data — no markdown formatting. The client decides how to present it.
|
|
5
|
+
*/
|
|
6
|
+
import type { Tool } from "fastmcp";
|
|
7
|
+
export declare const name = "bea";
|
|
8
|
+
export declare const displayName = "Bureau of Economic Analysis";
|
|
9
|
+
export declare const description = "State-level GDP, GDP by industry, personal income by state, national accounts (NIPA)";
|
|
10
|
+
export declare const auth: {
|
|
11
|
+
envVar: string;
|
|
12
|
+
signup: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const workflow = "Pick the geographic/industry dimension you need \u2192 query with state FIPS or industry code";
|
|
15
|
+
export declare const tips = "Key advantage over FRED: state-level GDP and income breakdowns, GDP by NAICS industry.";
|
|
16
|
+
export declare const reference: {
|
|
17
|
+
nipaTables: Record<string, string>;
|
|
18
|
+
gdpIndustryTables: Record<number, string>;
|
|
19
|
+
regionalTables: Record<string, string>;
|
|
20
|
+
docs: {
|
|
21
|
+
"User Guide": string;
|
|
22
|
+
"Developer Page": string;
|
|
23
|
+
"Sign Up": string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const tools: Tool<any, any>[];
|
|
27
|
+
export { clearCache } from "../sdk/bea.js";
|
|
28
|
+
//# sourceMappingURL=bea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bea.d.ts","sourceRoot":"","sources":["../../src/modules/bea.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAUpC,eAAO,MAAM,IAAI,QAAQ,CAAC;AAC1B,eAAO,MAAM,WAAW,gCAAgC,CAAC;AACzD,eAAO,MAAM,WAAW,yFAAyF,CAAC;AAClH,eAAO,MAAM,IAAI;;;CAAwE,CAAC;AAC1F,eAAO,MAAM,QAAQ,kGAA6F,CAAC;AACnH,eAAO,MAAM,IAAI,2FAA2F,CAAC;AAE7G,eAAO,MAAM,SAAS;gBAOf,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;uBAMtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;oBAQtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;CAM5B,CAAC;AAIF,eAAO,MAAM,KAAK,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,EAoIjC,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|