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
package/dist/prompts.js
ADDED
|
@@ -0,0 +1,858 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-cutting analysis prompts — reusable multi-API investigation templates.
|
|
3
|
+
*
|
|
4
|
+
* These prompts span multiple modules and provide step-by-step instructions
|
|
5
|
+
* for common research patterns. Each returns a detailed plan telling the client
|
|
6
|
+
* which tools to call and in what order.
|
|
7
|
+
*
|
|
8
|
+
* Users invoke these from the MCP prompt picker (e.g. "/" menu in VS Code).
|
|
9
|
+
*/
|
|
10
|
+
export const analysisPrompts = [
|
|
11
|
+
// ─── Economic & Fiscal ─────────────────────────────────────────────
|
|
12
|
+
{
|
|
13
|
+
name: "compare_presidents",
|
|
14
|
+
description: "Compare the economic performance of two or more presidents using identical metrics.",
|
|
15
|
+
arguments: [
|
|
16
|
+
{ name: "presidents", description: "Comma-separated names (e.g. 'Obama, Trump, Biden')", required: true },
|
|
17
|
+
],
|
|
18
|
+
load: async ({ presidents }) => `Compare the economic performance of: ${presidents}\n\n` +
|
|
19
|
+
"For EACH president, pull these FRED series at inauguration month vs departure month:\n" +
|
|
20
|
+
"- GDP (quarterly)\n- UNRATE (unemployment)\n- PAYEMS (jobs)\n- CPIAUCSL (inflation)\n" +
|
|
21
|
+
"- FEDFUNDS (Fed rate)\n- SP500 (S&P 500)\n\n" +
|
|
22
|
+
"Also pull:\n" +
|
|
23
|
+
"- Treasury debt_to_penny at start and end of each term\n" +
|
|
24
|
+
"- congress_recent_laws for major legislation signed by each\n" +
|
|
25
|
+
"- fr_executive_orders count per president\n\n" +
|
|
26
|
+
"Present side-by-side with context on what each inherited, Congressional control, " +
|
|
27
|
+
"and major external shocks. Do NOT declare winners — let the data speak.",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "fiscal_snapshot",
|
|
31
|
+
description: "Current state of U.S. government finances: debt, deficit, revenue, spending, interest costs.",
|
|
32
|
+
load: async () => "Pull a comprehensive fiscal snapshot:\n\n" +
|
|
33
|
+
"1. Treasury query_fiscal_data with debt_to_penny — latest national debt\n" +
|
|
34
|
+
"2. Treasury query_fiscal_data with mts_table_1 — latest Monthly Treasury Statement (revenue vs outlays)\n" +
|
|
35
|
+
"3. Treasury query_fiscal_data with avg_interest_rates — cost of servicing the debt\n" +
|
|
36
|
+
"4. FRED FYFSGDA188S — deficit as % of GDP\n" +
|
|
37
|
+
"5. FRED GDP — current GDP for debt-to-GDP ratio\n" +
|
|
38
|
+
"6. usa_spending_by_agency — top 10 agencies by spending\n" +
|
|
39
|
+
"7. wb_compare (US vs DE, GB, JP) GC.DOD.TOTL.GD.ZS — international debt comparison\n\n" +
|
|
40
|
+
"Calculate: debt-to-GDP ratio, interest-to-revenue ratio, deficit per capita (using Census population). " +
|
|
41
|
+
"Show trends over the last 5 years. Note which president and Congress were in office for each period.",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "cost_of_living",
|
|
45
|
+
description: "Analyze the current cost of living: inflation breakdown, housing, gas, food, medical, and wages.",
|
|
46
|
+
arguments: [
|
|
47
|
+
{ name: "state", description: "Optional state to focus on (e.g. 'CA', 'TX')", required: false },
|
|
48
|
+
],
|
|
49
|
+
load: async ({ state }) => `Analyze current cost of living${state ? ` with focus on ${state}` : ""}:\n\n` +
|
|
50
|
+
"INFLATION BREAKDOWN:\n" +
|
|
51
|
+
"- bls_cpi_breakdown for all components with YoY change\n" +
|
|
52
|
+
"- fred_series_data CPIAUCSL for headline trend (last 3 years)\n\n" +
|
|
53
|
+
"HOUSING:\n" +
|
|
54
|
+
"- fred_series_data MORTGAGE30US for current mortgage rates\n" +
|
|
55
|
+
(state ? `- hud_fair_market_rents for ${state} counties\n` : "") +
|
|
56
|
+
"- fred_series_data CSUSHPINSA for home price index trend\n\n" +
|
|
57
|
+
"ENERGY:\n" +
|
|
58
|
+
"- fred_series_data GASREGW for current gas prices\n" +
|
|
59
|
+
(state ? `- eia_electricity for ${state} electricity prices\n` : "") +
|
|
60
|
+
"- fred_series_data DCOILWTICO for crude oil trend\n\n" +
|
|
61
|
+
"WAGES vs PRICES:\n" +
|
|
62
|
+
"- bls_employment_by_industry for wage data\n" +
|
|
63
|
+
"- fred_series_data LES1252881600Q for real median weekly earnings\n\n" +
|
|
64
|
+
"FOOD:\n" +
|
|
65
|
+
"- bls_cpi_breakdown food component detail\n" +
|
|
66
|
+
(state ? `- cdc_nutrition_obesity for ${state} food access data\n` : "") +
|
|
67
|
+
"\nCompare wage growth to inflation. Are workers keeping up? " +
|
|
68
|
+
"Show which categories are rising fastest and which are easing.",
|
|
69
|
+
},
|
|
70
|
+
// ─── Money in Politics ─────────────────────────────────────────────
|
|
71
|
+
{
|
|
72
|
+
name: "follow_the_money",
|
|
73
|
+
description: "Trace the lobbying and campaign finance pipeline for a specific bill or industry.",
|
|
74
|
+
arguments: [
|
|
75
|
+
{ name: "topic", description: "A bill number (e.g. 'S.2155') or industry (e.g. 'pharmaceutical')", required: true },
|
|
76
|
+
],
|
|
77
|
+
load: async ({ topic }) => `Follow the money for: ${topic}\n\n` +
|
|
78
|
+
"Step 1 — FIND THE LEGISLATION:\n" +
|
|
79
|
+
"- congress_bill_details to get sponsor, cosponsors, committee\n" +
|
|
80
|
+
"- congress_senate_votes or congress_house_votes for party-line breakdown\n\n" +
|
|
81
|
+
"Step 2 — TRACE THE MONEY IN:\n" +
|
|
82
|
+
"- fec_candidate_financials for sponsor's PAC dependency\n" +
|
|
83
|
+
"- fec_search_committees (committee_type='Q') to find industry PACs\n" +
|
|
84
|
+
"- fec_committee_disbursements to trace named PAC → candidate payments\n" +
|
|
85
|
+
"- lobbying_search for trade group + individual company lobbying spend (3+ years)\n\n" +
|
|
86
|
+
"Step 3 — MEASURE THE OUTCOME:\n" +
|
|
87
|
+
"- FRED series for economic indicators before/after\n" +
|
|
88
|
+
"- fdic_failures if banking, bls_cpi_breakdown if consumer prices\n" +
|
|
89
|
+
"- wb_compare for international comparison\n\n" +
|
|
90
|
+
"Present the full pipeline: Money In → Vote → Outcome → Who Benefited. " +
|
|
91
|
+
"Show both interpretations. Note correlation ≠ causation.",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "industry_influence",
|
|
95
|
+
description: "Map an industry's full influence: lobbying spend, PAC money to both parties, and policy outcomes.",
|
|
96
|
+
arguments: [
|
|
97
|
+
{ name: "industry", description: "Industry name (e.g. 'banking', 'pharmaceutical', 'oil and gas', 'tech')", required: true },
|
|
98
|
+
{ name: "trade_group", description: "Primary trade group name (e.g. 'American Bankers Association', 'PhRMA', 'American Petroleum Institute')", required: false },
|
|
99
|
+
],
|
|
100
|
+
load: async ({ industry, trade_group }) => `Map the influence of the ${industry} industry${trade_group ? ` (trade group: ${trade_group})` : ""}:\n\n` +
|
|
101
|
+
"LOBBYING (3-year trend):\n" +
|
|
102
|
+
`- lobbying_search for ${trade_group || "the main trade group"} — filing_year 2023, 2024, 2025\n` +
|
|
103
|
+
"- lobbying_search for top 3 individual companies in the industry\n" +
|
|
104
|
+
"- Note total spend, issue areas, and year-over-year trend\n\n" +
|
|
105
|
+
"PAC MONEY (to BOTH parties):\n" +
|
|
106
|
+
"- fec_search_committees (committee_type='Q') for industry PACs\n" +
|
|
107
|
+
"- fec_committee_disbursements for each PAC — show recipients from both D and R\n" +
|
|
108
|
+
"- Focus on members of relevant oversight committees\n\n" +
|
|
109
|
+
"POLICY OUTCOMES:\n" +
|
|
110
|
+
"- congress_bill_details for recent legislation affecting this industry\n" +
|
|
111
|
+
"- congress_senate_votes or congress_house_votes for key votes\n" +
|
|
112
|
+
"- Relevant FRED/BLS/World Bank data showing measurable impact\n\n" +
|
|
113
|
+
"Show the bipartisan nature of industry influence. Present both the case that " +
|
|
114
|
+
"this represents corruption and the case that it represents legitimate advocacy.",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "politician_profile",
|
|
118
|
+
description: "Build a complete financial and legislative profile of a politician.",
|
|
119
|
+
arguments: [
|
|
120
|
+
{ name: "name", description: "Politician's name (e.g. 'Mike Crapo', 'Cory Booker')", required: true },
|
|
121
|
+
{ name: "state", description: "State (e.g. 'ID', 'NJ')", required: false },
|
|
122
|
+
],
|
|
123
|
+
load: async ({ name: _name, state }) => {
|
|
124
|
+
const name = _name ?? "";
|
|
125
|
+
return `Build a financial and legislative profile of ${name}${state ? ` (${state})` : ""}:\n\n` +
|
|
126
|
+
"IDENTITY:\n" +
|
|
127
|
+
`- congress_search_members to find their BioGuide ID, party, chamber, committees\n` +
|
|
128
|
+
`- congress_member_details for full biography and committee assignments\n\n` +
|
|
129
|
+
"CAMPAIGN FINANCE:\n" +
|
|
130
|
+
`- fec_search_candidates for candidate ID\n` +
|
|
131
|
+
`- fec_candidate_financials for ALL cycles — track PAC dependency over time\n` +
|
|
132
|
+
`- Identify which cycles had highest PAC %, and whether it's trending up or down\n\n` +
|
|
133
|
+
"WHO FUNDS THEM:\n" +
|
|
134
|
+
`- fec_search_committees (committee_type='Q') for PACs in industries their committees oversee\n` +
|
|
135
|
+
`- fec_committee_disbursements from those PACs with recipient_name='${name.split(" ").pop()}'\n\n` +
|
|
136
|
+
"LEGISLATIVE RECORD:\n" +
|
|
137
|
+
`- congress_member_bills for bills they sponsored\n` +
|
|
138
|
+
`- congress_senate_votes or congress_house_votes for key votes in their committee areas\n\n` +
|
|
139
|
+
`- lobbying_contributions for lobbyist donations to them\n\n` +
|
|
140
|
+
"Present factually. Show both the 'suspicious' and 'legitimate' interpretations for any patterns.";
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
// ─── State & Regional ──────────────────────────────────────────────
|
|
144
|
+
{
|
|
145
|
+
name: "state_deep_dive",
|
|
146
|
+
description: "Comprehensive profile of a U.S. state using 10+ data sources.",
|
|
147
|
+
arguments: [
|
|
148
|
+
{ name: "state", description: "State name or abbreviation (e.g. 'California' or 'CA')", required: true },
|
|
149
|
+
],
|
|
150
|
+
load: async ({ state }) => `Build a comprehensive profile of ${state}:\n\n` +
|
|
151
|
+
"DEMOGRAPHICS: census_population for population and demographics\n" +
|
|
152
|
+
"ECONOMY: bea_gdp_by_state + bea_personal_income for state GDP and income\n" +
|
|
153
|
+
"JOBS: bls_employment_by_industry for employment by sector\n" +
|
|
154
|
+
"FEDERAL $: usa_spending_by_state for federal dollars flowing to the state\n" +
|
|
155
|
+
"HEALTH: cdc_places_health for county-level health indicators\n" +
|
|
156
|
+
"HOUSING: hud_fair_market_rents for rental costs\n" +
|
|
157
|
+
"ENERGY: eia_state_energy or eia_electricity for energy profile\n" +
|
|
158
|
+
"EDUCATION: naep_compare_states for K-12 scores vs national avg\n" +
|
|
159
|
+
"BANKING: cfpb_complaint_aggregations filtered by state\n" +
|
|
160
|
+
"DISASTERS: fema_disaster_declarations for disaster history\n" +
|
|
161
|
+
"SAFETY: dol_osha_inspections for workplace safety in the state\n" +
|
|
162
|
+
"CRIME: fbi_crime_by_state for crime statistics\n\n" +
|
|
163
|
+
"Calculate per-capita figures where possible. " +
|
|
164
|
+
"Present a cohesive narrative with data from all available sources.",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: "compare_states",
|
|
168
|
+
description: "Side-by-side comparison of two states across economic, health, education, and quality-of-life metrics.",
|
|
169
|
+
arguments: [
|
|
170
|
+
{ name: "state1", description: "First state (e.g. 'TX')", required: true },
|
|
171
|
+
{ name: "state2", description: "Second state (e.g. 'CA')", required: true },
|
|
172
|
+
],
|
|
173
|
+
load: async ({ state1, state2 }) => `Compare ${state1} vs ${state2} side-by-side:\n\n` +
|
|
174
|
+
"For EACH state, pull:\n" +
|
|
175
|
+
"- census_population — population, growth rate\n" +
|
|
176
|
+
"- bea_gdp_by_state — GDP and GDP per capita\n" +
|
|
177
|
+
"- bea_personal_income — median income\n" +
|
|
178
|
+
"- hud_fair_market_rents — housing costs (2BR benchmark)\n" +
|
|
179
|
+
"- cdc_places_health — obesity, diabetes, depression, smoking rates\n" +
|
|
180
|
+
"- naep_compare_states — 4th/8th grade reading and math scores\n" +
|
|
181
|
+
"- fbi_crime_by_state — violent and property crime rates\n" +
|
|
182
|
+
"- eia_electricity — electricity prices\n" +
|
|
183
|
+
"- fema_disaster_declarations — disaster frequency\n" +
|
|
184
|
+
"- usa_spending_by_state — federal dollars received\n\n" +
|
|
185
|
+
"Present in a comparison table. Calculate per-capita for spending and GDP. " +
|
|
186
|
+
"Note where each state excels and where it lags. Be objective — neither state is 'better' overall.",
|
|
187
|
+
},
|
|
188
|
+
// ─── Health & Safety ───────────────────────────────────────────────
|
|
189
|
+
{
|
|
190
|
+
name: "health_dashboard",
|
|
191
|
+
description: "National or state health dashboard: leading causes of death, life expectancy, obesity, drug overdose, healthcare spending.",
|
|
192
|
+
arguments: [
|
|
193
|
+
{ name: "state", description: "Optional state focus (e.g. 'Ohio', 'WV'). Omit for national.", required: false },
|
|
194
|
+
],
|
|
195
|
+
load: async ({ state }) => `Build a health dashboard${state ? ` for ${state}` : " (national)"}:\n\n` +
|
|
196
|
+
"MORTALITY:\n" +
|
|
197
|
+
`- cdc_causes_of_death${state ? ` for ${state}` : ""} — top 10 causes\n` +
|
|
198
|
+
"- cdc_mortality_rates — recent quarterly death rates by cause\n" +
|
|
199
|
+
"- cdc_life_expectancy — life expectancy trends (through 2018)\n" +
|
|
200
|
+
"- cdc_drug_overdose — overdose mortality trends\n\n" +
|
|
201
|
+
"CHRONIC DISEASE:\n" +
|
|
202
|
+
`- cdc_places_health${state ? ` for ${state} counties` : ""} — obesity, diabetes, depression, smoking\n` +
|
|
203
|
+
"- cdc_nutrition_obesity — physical inactivity, fruit/vegetable consumption\n\n" +
|
|
204
|
+
"HEALTHCARE ACCESS:\n" +
|
|
205
|
+
"- bls_cpi_breakdown medical care component — healthcare inflation\n" +
|
|
206
|
+
"- wb_compare (US, DE, GB, JP, CA, AU) SH.XPD.CHEX.PC.CD — spending per capita\n" +
|
|
207
|
+
"- wb_compare same countries SP.DYN.LE00.IN — life expectancy comparison\n\n" +
|
|
208
|
+
"HOSPITAL QUALITY:\n" +
|
|
209
|
+
`- cms_hospitals${state ? ` in ${state}` : ""} — mortality, readmissions, patient experience\n\n` +
|
|
210
|
+
"Tell the story: what are Americans dying of, how does it compare internationally, " +
|
|
211
|
+
"and is the trend getting better or worse?",
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: "workplace_safety",
|
|
215
|
+
description: "Investigate workplace safety for a company, industry, or state using OSHA data.",
|
|
216
|
+
arguments: [
|
|
217
|
+
{ name: "target", description: "Company name, SIC code, or state abbreviation (e.g. 'Amazon', 'TX', 'construction')", required: true },
|
|
218
|
+
],
|
|
219
|
+
load: async ({ target }) => `Investigate workplace safety for: ${target}\n\n` +
|
|
220
|
+
"INSPECTIONS:\n" +
|
|
221
|
+
`- dol_osha_inspections — search for inspections matching ${target}\n` +
|
|
222
|
+
"- Note inspection type (planned, complaint, accident), open/close dates\n\n" +
|
|
223
|
+
"VIOLATIONS:\n" +
|
|
224
|
+
`- dol_osha_violations — violations found, types (Serious, Willful, Repeat), penalties\n\n` +
|
|
225
|
+
"ACCIDENTS:\n" +
|
|
226
|
+
`- dol_osha_accidents — accident investigations with descriptions\n` +
|
|
227
|
+
`- dol_osha_accident_injuries — injury details, demographics, severity\n\n` +
|
|
228
|
+
"WAGE THEFT:\n" +
|
|
229
|
+
`- dol_whd_enforcement — Fair Labor Standards Act violations, back wages owed\n\n` +
|
|
230
|
+
"CONTEXT:\n" +
|
|
231
|
+
"- bls_employment_by_industry for industry employment levels\n" +
|
|
232
|
+
"- Compare violation rates to industry averages where possible\n\n" +
|
|
233
|
+
"Present the safety record factually. Note both the violations and context " +
|
|
234
|
+
"(industry norms, company size, outcome of contested citations).",
|
|
235
|
+
},
|
|
236
|
+
// ─── Education ─────────────────────────────────────────────────────
|
|
237
|
+
{
|
|
238
|
+
name: "education_report_card",
|
|
239
|
+
description: "Education quality assessment: NAEP scores, achievement gaps, college outcomes, and spending.",
|
|
240
|
+
arguments: [
|
|
241
|
+
{ name: "state", description: "Optional state focus. Omit for national.", required: false },
|
|
242
|
+
],
|
|
243
|
+
load: async ({ state }) => `Education report card${state ? ` for ${state}` : " (national)"}:\n\n` +
|
|
244
|
+
"K-12 PERFORMANCE:\n" +
|
|
245
|
+
`- naep_scores for reading and math, grades 4 and 8${state ? `, jurisdiction ${state}` : ""}\n` +
|
|
246
|
+
"- naep_achievement_levels — % at Below Basic, Basic, Proficient, Advanced\n" +
|
|
247
|
+
"- naep_compare_years for 2019 vs 2022 vs latest — COVID learning loss and recovery\n\n" +
|
|
248
|
+
"ACHIEVEMENT GAPS:\n" +
|
|
249
|
+
"- naep_compare_groups variable SDRACE — racial achievement gaps\n" +
|
|
250
|
+
"- naep_compare_groups variable SLUNCH3 — poverty/lunch eligibility gaps\n" +
|
|
251
|
+
"- naep_compare_groups variable GENDER — gender gaps\n\n" +
|
|
252
|
+
"HIGHER EDUCATION:\n" +
|
|
253
|
+
`- scorecard_search${state ? ` state=${state}` : ""} — top schools by earnings\n` +
|
|
254
|
+
`- scorecard_top earnings${state ? ` in ${state}` : ""} — highest-earning graduates\n` +
|
|
255
|
+
"- fred_series_data SLOAS — total student loan debt outstanding\n\n" +
|
|
256
|
+
"INTERNATIONAL CONTEXT:\n" +
|
|
257
|
+
"- wb_compare (US, DE, FI, KR, JP) SE.XPD.TOTL.GD.ZS — education spending as % of GDP\n\n" +
|
|
258
|
+
"Tell the story: how are students performing, are gaps closing, " +
|
|
259
|
+
"and does spending translate to outcomes?",
|
|
260
|
+
},
|
|
261
|
+
// ─── Consumer & Financial ──────────────────────────────────────────
|
|
262
|
+
{
|
|
263
|
+
name: "company_accountability",
|
|
264
|
+
description: "Investigate a company's consumer complaints, safety record, lobbying activity, and financial health.",
|
|
265
|
+
arguments: [
|
|
266
|
+
{ name: "company", description: "Company name (e.g. 'Wells Fargo', 'Amazon', 'Pfizer')", required: true },
|
|
267
|
+
],
|
|
268
|
+
load: async ({ company }) => `Investigate ${company}:\n\n` +
|
|
269
|
+
"CONSUMER COMPLAINTS:\n" +
|
|
270
|
+
`- cfpb_search_complaints company='${company}' — recent complaints with narratives\n` +
|
|
271
|
+
`- cfpb_complaint_trends for ${company} — is it getting better or worse?\n` +
|
|
272
|
+
`- cfpb_complaint_aggregations by product for ${company} — what are people complaining about?\n\n` +
|
|
273
|
+
"WORKPLACE SAFETY:\n" +
|
|
274
|
+
`- dol_osha_inspections establishment_name='${company}' — OSHA inspections\n` +
|
|
275
|
+
`- dol_whd_enforcement trade_name='${company}' — wage theft violations\n\n` +
|
|
276
|
+
"LOBBYING:\n" +
|
|
277
|
+
`- lobbying_search registrant_name='${company}' — lobbying spend and issues\n` +
|
|
278
|
+
`- lobbying_search for 2023, 2024, 2025 separately to show trend\n\n` +
|
|
279
|
+
"POLITICAL DONATIONS:\n" +
|
|
280
|
+
`- fec_search_committees name='${company}' committee_type='Q' — find their PAC\n` +
|
|
281
|
+
"- fec_committee_disbursements — who do they donate to?\n\n" +
|
|
282
|
+
"FINANCIALS (if public):\n" +
|
|
283
|
+
`- sec_company_search '${company}' — SEC filings\n` +
|
|
284
|
+
`- sec_company_financials — revenue, profit, key XBRL data\n\n` +
|
|
285
|
+
"PRODUCT SAFETY (if pharma/food):\n" +
|
|
286
|
+
`- fda_drug_events or fda_food_recalls for ${company} products\n\n` +
|
|
287
|
+
"Present a balanced picture: where the company has problems AND where it performs well.",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "bank_health_check",
|
|
291
|
+
description: "Assess the health of a bank or the banking system: FDIC data, complaints, failures, interest rate risk.",
|
|
292
|
+
arguments: [
|
|
293
|
+
{ name: "bank", description: "Bank name (e.g. 'Silicon Valley Bank', 'JPMorgan') or 'system' for overall", required: true },
|
|
294
|
+
],
|
|
295
|
+
load: async ({ bank: _bank }) => {
|
|
296
|
+
const bank = _bank ?? "system";
|
|
297
|
+
return `Bank health check: ${bank}\n\n` +
|
|
298
|
+
(bank.toLowerCase() === "system"
|
|
299
|
+
? "SYSTEM OVERVIEW:\n" +
|
|
300
|
+
"- fdic_failures sort by FAILDATE DESC — recent bank failures and costs\n" +
|
|
301
|
+
"- fdic_summary — aggregate FDIC banking statistics\n" +
|
|
302
|
+
"- fred_series_data FEDFUNDS — current rate environment\n" +
|
|
303
|
+
"- fred_series_data TOTBKCR — total bank credit trend\n" +
|
|
304
|
+
"- cfpb_complaint_aggregations by company — which banks get the most complaints?\n" +
|
|
305
|
+
"- cfpb_complaint_trends — are banking complaints rising or falling?\n\n"
|
|
306
|
+
: `FIND THE BANK:\n` +
|
|
307
|
+
`- fdic_search_institutions filter='INSTNAME:"${bank}"' — get CERT number, assets, charter\n` +
|
|
308
|
+
`- fdic_financials for the bank — assets, deposits, ROA, ROE, capital ratios\n\n` +
|
|
309
|
+
`CONSUMER EXPERIENCE:\n` +
|
|
310
|
+
`- cfpb_search_complaints company='${bank}' — recent complaints\n` +
|
|
311
|
+
`- cfpb_complaint_trends for ${bank} — trend over time\n\n` +
|
|
312
|
+
`LOBBYING:\n` +
|
|
313
|
+
`- lobbying_search registrant_name='${bank}' — what they lobby for\n\n`) +
|
|
314
|
+
"INTEREST RATE CONTEXT:\n" +
|
|
315
|
+
"- fred_series_data FEDFUNDS — rate trajectory (rising rates = bond losses)\n" +
|
|
316
|
+
"- fred_series_data DGS10 — 10-year Treasury (long-duration exposure)\n" +
|
|
317
|
+
"- fred_series_data MORTGAGE30US — mortgage rates affect bank lending\n\n" +
|
|
318
|
+
"Assess: Is the bank (or system) at risk? Compare to pre-2023 conditions " +
|
|
319
|
+
"when SVB, Signature, and First Republic failed.";
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
// ─── Energy & Environment ──────────────────────────────────────────
|
|
323
|
+
{
|
|
324
|
+
name: "energy_landscape",
|
|
325
|
+
description: "Current U.S. energy picture: prices, production, renewables, emissions, and policy.",
|
|
326
|
+
arguments: [
|
|
327
|
+
{ name: "state", description: "Optional state focus (e.g. 'TX', 'CA')", required: false },
|
|
328
|
+
],
|
|
329
|
+
load: async ({ state }) => `Energy landscape${state ? ` for ${state}` : " (national)"}:\n\n` +
|
|
330
|
+
"PRICES:\n" +
|
|
331
|
+
"- fred_series_data DCOILWTICO — WTI crude oil price trend\n" +
|
|
332
|
+
"- fred_series_data GASREGW — retail gasoline price\n" +
|
|
333
|
+
(state ? `- eia_electricity state=${state} — electricity prices\n` : "") +
|
|
334
|
+
"- bls_cpi_breakdown — energy component of CPI\n\n" +
|
|
335
|
+
"INFRASTRUCTURE:\n" +
|
|
336
|
+
(state ? `- nrel_fuel_stations state=${state} fuel_type=ELEC — EV charging stations\n` : "") +
|
|
337
|
+
(state ? `- nrel_solar lat/lon for ${state} — solar potential\n` : "") +
|
|
338
|
+
(state ? `- nrel_utility_rates for ${state} — local electricity rates\n` : "") +
|
|
339
|
+
"\nPOLICY:\n" +
|
|
340
|
+
"- lobbying_search registrant_name='American Petroleum Institute' — oil industry lobbying\n" +
|
|
341
|
+
"- congress_bill_details for recent energy legislation\n\n" +
|
|
342
|
+
"ENVIRONMENT:\n" +
|
|
343
|
+
(state ? `- epa_air_quality state=${state} — air quality measures\n` : "") +
|
|
344
|
+
"- wb_compare (US, DE, CN, IN) EN.ATM.CO2E.PC — CO2 emissions per capita\n\n" +
|
|
345
|
+
"Present the tension between energy affordability, energy security, and climate goals.",
|
|
346
|
+
},
|
|
347
|
+
// ─── Disaster & Climate ────────────────────────────────────────────
|
|
348
|
+
{
|
|
349
|
+
name: "disaster_analysis",
|
|
350
|
+
description: "Analyze a specific disaster or a state/region's disaster history: declarations, aid, weather data, and federal response.",
|
|
351
|
+
arguments: [
|
|
352
|
+
{ name: "target", description: "Disaster type (e.g. 'Hurricane'), state ('FL'), or specific event ('Hurricane Ian')", required: true },
|
|
353
|
+
],
|
|
354
|
+
load: async ({ target }) => `Analyze disaster: ${target}\n\n` +
|
|
355
|
+
"DECLARATIONS:\n" +
|
|
356
|
+
`- fema_disaster_declarations — search for ${target}, sort by newest\n` +
|
|
357
|
+
"- Note declaration types: DR (Major Disaster), EM (Emergency), FM (Fire)\n\n" +
|
|
358
|
+
"AID DELIVERED:\n" +
|
|
359
|
+
"- fema_housing_assistance — individual housing assistance amounts\n" +
|
|
360
|
+
"- fema_public_assistance — infrastructure grants and project costs\n\n" +
|
|
361
|
+
"WEATHER CONTEXT:\n" +
|
|
362
|
+
"- noaa_climate_data — temperature, precipitation data for affected area\n" +
|
|
363
|
+
"- noaa_stations — find nearby weather stations\n\n" +
|
|
364
|
+
"FEDERAL SPENDING:\n" +
|
|
365
|
+
"- usa_spending_by_agency — FEMA agency spending trends\n" +
|
|
366
|
+
"- usa_spending_by_state — federal dollars to affected state\n\n" +
|
|
367
|
+
"POLICY:\n" +
|
|
368
|
+
"- congress_bill_details for disaster relief legislation\n" +
|
|
369
|
+
"- congress_senate_votes or congress_house_votes — did disaster aid pass along party lines?\n\n" +
|
|
370
|
+
"Present the full picture: what happened, how much aid was delivered, " +
|
|
371
|
+
"how quickly, and whether funding was politically contentious.",
|
|
372
|
+
},
|
|
373
|
+
// ─── Vehicle & Product Safety ──────────────────────────────────────
|
|
374
|
+
{
|
|
375
|
+
name: "vehicle_investigation",
|
|
376
|
+
description: "Investigate a vehicle make/model for safety recalls, consumer complaints, crash data, and manufacturer lobbying.",
|
|
377
|
+
arguments: [
|
|
378
|
+
{ name: "make", description: "Vehicle make (e.g. 'Tesla', 'Toyota', 'Ford')", required: true },
|
|
379
|
+
{ name: "model", description: "Vehicle model (e.g. 'Model 3', 'Camry', 'F-150')", required: false },
|
|
380
|
+
],
|
|
381
|
+
load: async ({ make, model }) => `Investigate vehicle safety: ${make}${model ? ` ${model}` : ""}:\n\n` +
|
|
382
|
+
"RECALLS:\n" +
|
|
383
|
+
`- nhtsa_recalls make='${make}'${model ? ` model='${model}'` : ""} — all safety recalls\n` +
|
|
384
|
+
"- Note recall counts, components affected, and severity\n\n" +
|
|
385
|
+
"CONSUMER COMPLAINTS:\n" +
|
|
386
|
+
`- nhtsa_complaints make='${make}'${model ? ` model='${model}'` : ""} — crash, fire, injury reports\n` +
|
|
387
|
+
"- Summarize most common complaint types\n\n" +
|
|
388
|
+
"VIN DECODE (if specific vehicle):\n" +
|
|
389
|
+
"- nhtsa_decode_vin — full vehicle specs from VIN\n\n" +
|
|
390
|
+
"MANUFACTURER CONTEXT:\n" +
|
|
391
|
+
`- lobbying_search registrant_name='${make}' — lobbying on auto safety regulations\n` +
|
|
392
|
+
`- fec_search_committees name='${make}' committee_type='Q' — manufacturer PAC\n\n` +
|
|
393
|
+
"Present recall and complaint trends. Are problems getting better or worse? " +
|
|
394
|
+
"Compare complaint rates to industry norms where possible.",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
name: "drug_safety",
|
|
398
|
+
description: "Investigate a drug's safety record: adverse events, labels, FDA data, and manufacturer profile.",
|
|
399
|
+
arguments: [
|
|
400
|
+
{ name: "drug", description: "Drug name (e.g. 'Ozempic', 'Eliquis', 'Humira')", required: true },
|
|
401
|
+
],
|
|
402
|
+
load: async ({ drug: _drug }) => {
|
|
403
|
+
const drug = _drug ?? "";
|
|
404
|
+
return `Investigate drug safety: ${drug}\n\n` +
|
|
405
|
+
"FDA APPROVAL STATUS:\n" +
|
|
406
|
+
`- fda_approved_drugs search='openfda.brand_name:"${drug}"' — approval history, active ingredients, marketing status\n\n` +
|
|
407
|
+
"ADVERSE EVENTS:\n" +
|
|
408
|
+
`- fda_drug_events search='patient.drug.openfda.brand_name:${drug}' — recent reports\n` +
|
|
409
|
+
`- fda_drug_counts count_field='patient.reaction.reactionmeddrapt.exact' ` +
|
|
410
|
+
`search='patient.drug.openfda.brand_name:${drug}' — top adverse reactions\n\n` +
|
|
411
|
+
"RECALLS:\n" +
|
|
412
|
+
`- fda_drug_recalls search='openfda.brand_name:${drug}' — any recall enforcement reports\n\n` +
|
|
413
|
+
"CLINICAL TRIALS:\n" +
|
|
414
|
+
`- clinical_trials_stats condition='${drug}' search_as_drug=true — pipeline activity\n` +
|
|
415
|
+
`- clinical_trials_search intervention='${drug}' status=RECRUITING — ongoing trials\n\n` +
|
|
416
|
+
"MANUFACTURER:\n" +
|
|
417
|
+
"- Identify the manufacturer from FDA results\n" +
|
|
418
|
+
"- lobbying_search for the manufacturer — lobbying spend\n" +
|
|
419
|
+
"- lobbying_lobbyists for the manufacturer — who lobbies for them\n" +
|
|
420
|
+
"- lobbying_detail for a filing UUID — specific bills lobbied on\n" +
|
|
421
|
+
"- fec_search_committees for manufacturer PAC\n\n" +
|
|
422
|
+
"HEALTH CONTEXT:\n" +
|
|
423
|
+
"- bls_cpi_breakdown medical care — drug cost inflation\n" +
|
|
424
|
+
"- wb_compare (US vs peer nations) SH.XPD.CHEX.PC.CD — health spending per capita\n\n" +
|
|
425
|
+
"Present the safety profile objectively. Note that high adverse event counts " +
|
|
426
|
+
"often correlate with high prescription volume, not necessarily higher risk.";
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "food_recall_tracker",
|
|
431
|
+
description: "Track food safety: recent recalls, contamination patterns, and the companies involved.",
|
|
432
|
+
arguments: [
|
|
433
|
+
{ name: "query", description: "Food type, company, or hazard (e.g. 'Listeria', 'ground beef', 'Trader Joe')", required: false },
|
|
434
|
+
],
|
|
435
|
+
load: async ({ query }) => `Food safety investigation${query ? `: ${query}` : ""}:\n\n` +
|
|
436
|
+
"RECALLS:\n" +
|
|
437
|
+
`- fda_food_recalls${query ? ` search='${query}'` : ""} — recent enforcement reports\n` +
|
|
438
|
+
"- Note classification: Class I (most serious), Class II, Class III\n" +
|
|
439
|
+
"- Track recalling firms, states, and distribution patterns\n\n" +
|
|
440
|
+
"ADVERSE EVENTS:\n" +
|
|
441
|
+
`- fda_food_adverse_events${query ? ` search='${query}'` : ""} — illness/injury reports from CAERS\n` +
|
|
442
|
+
"- Look for: reactions, outcomes, product types (foods vs dietary supplements)\n\n" +
|
|
443
|
+
"NUTRITION CONTEXT:\n" +
|
|
444
|
+
(query ? `- fooddata_search query='${query}' — nutritional data for the food type\n` : "") +
|
|
445
|
+
"- cdc_nutrition_obesity — national obesity and nutrition trends\n" +
|
|
446
|
+
"- cdc_places_health measure FOODINSECU — food insecurity by county\n\n" +
|
|
447
|
+
"Present patterns: which companies have repeat recalls? " +
|
|
448
|
+
"Which food categories are most affected? What are the health risks?",
|
|
449
|
+
},
|
|
450
|
+
// ─── Innovation & Patents ──────────────────────────────────────────
|
|
451
|
+
{
|
|
452
|
+
name: "innovation_landscape",
|
|
453
|
+
description: "Map the innovation landscape for a technology area: patents, R&D spending, key companies, and federal funding.",
|
|
454
|
+
arguments: [
|
|
455
|
+
{ name: "technology", description: "Technology area (e.g. 'artificial intelligence', 'quantum computing', 'mRNA vaccine', 'electric vehicle battery')", required: true },
|
|
456
|
+
],
|
|
457
|
+
load: async ({ technology }) => `Map the innovation landscape for: ${technology}\n\n` +
|
|
458
|
+
"PATENTS:\n" +
|
|
459
|
+
`- uspto_search_patents query='${technology}' — recent patents\n` +
|
|
460
|
+
`- uspto_search_assignees query='${technology}' — top patent-holding companies\n` +
|
|
461
|
+
`- uspto_search_inventors query='${technology}' — prolific inventors\n\n` +
|
|
462
|
+
"KEY COMPANIES:\n" +
|
|
463
|
+
"- For top assignees found above:\n" +
|
|
464
|
+
" - sec_company_search — public company financials (R&D spend)\n" +
|
|
465
|
+
" - lobbying_search — what they lobby for related to this tech\n\n" +
|
|
466
|
+
"FEDERAL R&D FUNDING:\n" +
|
|
467
|
+
"- usa_spending_by_agency — NSF, DOE, NIH, DARPA spending trends\n" +
|
|
468
|
+
"- usa_spending_by_award keyword search for the technology\n\n" +
|
|
469
|
+
"POLICY:\n" +
|
|
470
|
+
"- congress_bill_details for legislation related to the technology\n" +
|
|
471
|
+
"- regulations_search_documents for regulatory activity\n\n" +
|
|
472
|
+
"INTERNATIONAL:\n" +
|
|
473
|
+
"- wb_compare (US, CN, DE, KR, JP) GB.XPD.RSDV.GD.ZS — R&D spending as % of GDP\n\n" +
|
|
474
|
+
"Present: who's leading, who's funding it, and what policy is shaping the field.",
|
|
475
|
+
},
|
|
476
|
+
// ─── Housing & Affordability ───────────────────────────────────────
|
|
477
|
+
{
|
|
478
|
+
name: "housing_affordability",
|
|
479
|
+
description: "Analyze housing affordability: rents, home prices, mortgage rates, income, and policy.",
|
|
480
|
+
arguments: [
|
|
481
|
+
{ name: "location", description: "State abbreviation or 'national' (e.g. 'CA', 'TX', 'national')", required: true },
|
|
482
|
+
],
|
|
483
|
+
load: async ({ location: _location }) => {
|
|
484
|
+
const location = _location ?? "national";
|
|
485
|
+
const isNational = location.toLowerCase() === "national";
|
|
486
|
+
return `Housing affordability analysis: ${isNational ? "National" : location}\n\n` +
|
|
487
|
+
"RENTAL COSTS:\n" +
|
|
488
|
+
(!isNational ? `- hud_fair_market_rents for ${location} — FMR by bedroom count\n` : "") +
|
|
489
|
+
(!isNational ? `- hud_income_limits for ${location} — income thresholds for programs\n` : "") +
|
|
490
|
+
"- fred_series_data CSUSHPINSA — Case-Shiller home price index trend\n\n" +
|
|
491
|
+
"MORTGAGE:\n" +
|
|
492
|
+
"- fred_series_data MORTGAGE30US — 30-year fixed rate trend\n" +
|
|
493
|
+
"- fred_series_data HOUST — housing starts (new construction)\n\n" +
|
|
494
|
+
"INCOME:\n" +
|
|
495
|
+
(!isNational ? `- bea_personal_income for ${location} — personal income trends\n` : "") +
|
|
496
|
+
"- fred_series_data MEHOINUSA672N — median household income\n" +
|
|
497
|
+
"- bls_cpi_breakdown shelter — housing cost inflation component\n\n" +
|
|
498
|
+
"DEMOGRAPHICS:\n" +
|
|
499
|
+
(!isNational ? `- census_population for ${location} — population growth driving demand\n` : "") +
|
|
500
|
+
"\nFEDERAL HOUSING AID:\n" +
|
|
501
|
+
"- usa_spending_by_agency for HUD — federal housing spending\n" +
|
|
502
|
+
(!isNational ? `- fema_housing_assistance for ${location} — disaster housing aid\n` : "") +
|
|
503
|
+
"\nPOLICY:\n" +
|
|
504
|
+
"- lobbying_search registrant_name='National Association of Realtors' — real estate lobbying\n" +
|
|
505
|
+
"- fred_series_data FEDFUNDS — Fed rate (drives mortgage rates)\n\n" +
|
|
506
|
+
"Calculate: rent-to-income ratio, mortgage payment on median home vs median income. " +
|
|
507
|
+
"Is housing getting more or less affordable? Show the trend over 5+ years.";
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
// ─── Crime & Justice ───────────────────────────────────────────────
|
|
511
|
+
{
|
|
512
|
+
name: "crime_analysis",
|
|
513
|
+
description: "Analyze crime trends: national or state-level crime rates, arrest data, and contextual factors.",
|
|
514
|
+
arguments: [
|
|
515
|
+
{ name: "state", description: "State abbreviation (e.g. 'CA', 'TX') or 'national'", required: true },
|
|
516
|
+
{ name: "focus", description: "Crime type focus (e.g. 'violent', 'property', 'drug'). Optional.", required: false },
|
|
517
|
+
],
|
|
518
|
+
load: async ({ state: _state, focus }) => {
|
|
519
|
+
const state = _state ?? "national";
|
|
520
|
+
const isNational = state.toLowerCase() === "national";
|
|
521
|
+
return `Crime analysis: ${isNational ? "National" : state}${focus ? ` — focus on ${focus} crime` : ""}:\n\n` +
|
|
522
|
+
"CRIME DATA:\n" +
|
|
523
|
+
(isNational
|
|
524
|
+
? "- fbi_crime_national — national crime estimates and trends\n"
|
|
525
|
+
: `- fbi_crime_by_state state='${state}' — state crime estimates\n`) +
|
|
526
|
+
`- fbi_arrest_data${!isNational ? ` state='${state}'` : ""} — arrest breakdowns\n\n` +
|
|
527
|
+
"CONTEXT:\n" +
|
|
528
|
+
(!isNational
|
|
529
|
+
? `- census_population for ${state} — population (for per-capita rates)\n` +
|
|
530
|
+
`- bea_personal_income for ${state} — income levels (poverty correlates with crime)\n`
|
|
531
|
+
: "- fred_series_data UNRATE — unemployment trend (correlates with property crime)\n") +
|
|
532
|
+
"- fred_series_data GDP — economic conditions\n\n" +
|
|
533
|
+
"JUSTICE SYSTEM:\n" +
|
|
534
|
+
"- congress_bill_details for recent criminal justice legislation\n" +
|
|
535
|
+
"- usa_spending_by_agency for DOJ — federal justice spending\n\n" +
|
|
536
|
+
"HEALTH FACTORS:\n" +
|
|
537
|
+
(!isNational ? `- cdc_drug_overdose for ${state} — drug crisis correlates with drug crime\n` : "") +
|
|
538
|
+
"- cdc_causes_of_death — homicide as cause of death\n\n" +
|
|
539
|
+
"Present crime trends over time. Note that crime statistics have reporting gaps " +
|
|
540
|
+
"and lag 1-2 years. Compare to national averages. Show both the numbers and the context.";
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
// ─── Regulation & Rulemaking ───────────────────────────────────────
|
|
544
|
+
{
|
|
545
|
+
name: "regulation_tracker",
|
|
546
|
+
description: "Track a federal regulation from proposal to final rule: public comments, lobbying, and impact.",
|
|
547
|
+
arguments: [
|
|
548
|
+
{ name: "topic", description: "Regulation topic or agency (e.g. 'AI regulation', 'EPA methane rule', 'CFPB overdraft')", required: true },
|
|
549
|
+
],
|
|
550
|
+
load: async ({ topic }) => `Track regulation: ${topic}\n\n` +
|
|
551
|
+
"FIND THE RULE:\n" +
|
|
552
|
+
`- regulations_search_documents query='${topic}' — proposed rules and final rules\n` +
|
|
553
|
+
"- regulations_document_detail for the most relevant document\n" +
|
|
554
|
+
`- regulations_search_dockets query='${topic}' — the docket containing all related docs\n\n` +
|
|
555
|
+
"PUBLIC INPUT:\n" +
|
|
556
|
+
"- regulations_search_comments for the docket — what did the public say?\n" +
|
|
557
|
+
"- Note comment volume, sentiment, and who the biggest commenters are\n\n" +
|
|
558
|
+
"FEDERAL REGISTER:\n" +
|
|
559
|
+
`- fr_search_rules query related to ${topic} — Federal Register entries\n` +
|
|
560
|
+
"- fr_executive_orders — any executive orders driving the regulation\n\n" +
|
|
561
|
+
"WHO'S LOBBYING:\n" +
|
|
562
|
+
`- lobbying_search with issue_code matching ${topic} — who spent money on this?\n` +
|
|
563
|
+
"- Note lobbying spend trends before and after the rule was proposed\n\n" +
|
|
564
|
+
"POTENTIAL IMPACT:\n" +
|
|
565
|
+
"- Relevant FRED/BLS data for the industry affected\n" +
|
|
566
|
+
"- congress_bill_details for related legislation\n\n" +
|
|
567
|
+
"Present the timeline: proposal → comment period → lobbying → final rule. " +
|
|
568
|
+
"Who supported and opposed it? What's the projected impact?",
|
|
569
|
+
},
|
|
570
|
+
// ─── College & Career ──────────────────────────────────────────────
|
|
571
|
+
{
|
|
572
|
+
name: "college_comparison",
|
|
573
|
+
description: "Compare specific colleges on cost, outcomes, debt, and ROI — or find the best schools for a criteria.",
|
|
574
|
+
arguments: [
|
|
575
|
+
{ name: "query", description: "School names to compare (e.g. 'MIT, Stanford, Georgia Tech') or criteria (e.g. 'best engineering ROI', 'cheapest in California')", required: true },
|
|
576
|
+
],
|
|
577
|
+
load: async ({ query }) => `College comparison: ${query}\n\n` +
|
|
578
|
+
"FIND SCHOOLS:\n" +
|
|
579
|
+
`- scorecard_search name or keyword matching '${query}'\n` +
|
|
580
|
+
"- scorecard_top for rankings by earnings, graduation rate, or cost\n\n" +
|
|
581
|
+
"FOR EACH SCHOOL, GET:\n" +
|
|
582
|
+
"- Tuition (in-state and out-of-state)\n" +
|
|
583
|
+
"- Net price (after financial aid)\n" +
|
|
584
|
+
"- Graduation rate (4-year and 6-year)\n" +
|
|
585
|
+
"- Median earnings 10 years after enrollment\n" +
|
|
586
|
+
"- Median debt at graduation\n" +
|
|
587
|
+
"- Admission rate\n\n" +
|
|
588
|
+
"CONTEXT:\n" +
|
|
589
|
+
"- scorecard_compare for side-by-side if comparing specific schools\n" +
|
|
590
|
+
"- fred_series_data SLOAS — total student loan debt outstanding ($1.7T+)\n" +
|
|
591
|
+
"- bls_employment_by_industry — job market for relevant fields\n\n" +
|
|
592
|
+
"CALCULATE ROI:\n" +
|
|
593
|
+
"- 20-year earnings premium vs. high school grad (~$35K/year)\n" +
|
|
594
|
+
"- Minus: net price × 4 years + opportunity cost\n" +
|
|
595
|
+
"- Net ROI = earnings premium - total cost\n\n" +
|
|
596
|
+
"Present clear ROI numbers. Flag any schools where median debt exceeds " +
|
|
597
|
+
"median earnings (debt traps).",
|
|
598
|
+
},
|
|
599
|
+
// ─── Federal Spending ──────────────────────────────────────────────
|
|
600
|
+
{
|
|
601
|
+
name: "where_the_money_goes",
|
|
602
|
+
description: "Trace federal spending: by agency, state, recipient, or keyword. Find who gets taxpayer dollars.",
|
|
603
|
+
arguments: [
|
|
604
|
+
{ name: "focus", description: "Agency (e.g. 'DOD'), state ('TX'), keyword ('artificial intelligence'), or recipient ('Lockheed Martin')", required: true },
|
|
605
|
+
],
|
|
606
|
+
load: async ({ focus }) => `Trace federal spending: ${focus}\n\n` +
|
|
607
|
+
"SPENDING DATA:\n" +
|
|
608
|
+
`- usa_spending_by_award keyword='${focus}' — contracts, grants, loans matching the query\n` +
|
|
609
|
+
`- usa_spending_by_agency — spending by agency (if ${focus} is an agency)\n` +
|
|
610
|
+
`- usa_spending_by_state — geographic distribution of spending\n` +
|
|
611
|
+
`- usa_spending_by_recipient recipient='${focus}' — if searching for a company\n` +
|
|
612
|
+
"- usa_spending_over_time — is spending trending up or down?\n\n" +
|
|
613
|
+
"AUTHORIZATION:\n" +
|
|
614
|
+
"- congress_bill_details for the legislation that authorized the spending\n" +
|
|
615
|
+
"- congress_house_votes / congress_senate_votes — how did the vote break down?\n\n" +
|
|
616
|
+
"WHO BENEFITS:\n" +
|
|
617
|
+
"- sec_company_search for top recipients — are they public companies? Financials?\n" +
|
|
618
|
+
"- lobbying_search for top recipients — do they lobby for more spending?\n" +
|
|
619
|
+
"- fec_search_committees for top recipients — do they fund politicians who authorize spending?\n\n" +
|
|
620
|
+
"CONTEXT:\n" +
|
|
621
|
+
"- Treasury query_fiscal_data mts_table_1 — total federal receipts vs outlays\n" +
|
|
622
|
+
"- census_population — per-capita spending calculation\n\n" +
|
|
623
|
+
"Follow the money from taxpayer to recipient. Show the full chain: " +
|
|
624
|
+
"Congress authorizes → Agency spends → Recipient gets paid → Recipient lobbies for more.",
|
|
625
|
+
},
|
|
626
|
+
// ─── Nutrition & Food ──────────────────────────────────────────────
|
|
627
|
+
{
|
|
628
|
+
name: "nutrition_lookup",
|
|
629
|
+
description: "Compare foods nutritionally, check for food safety issues, and see what Americans actually eat.",
|
|
630
|
+
arguments: [
|
|
631
|
+
{ name: "foods", description: "Foods to look up or compare (e.g. 'chicken breast vs tofu', 'avocado', 'Big Mac')", required: true },
|
|
632
|
+
],
|
|
633
|
+
load: async ({ foods }) => `Nutrition analysis: ${foods}\n\n` +
|
|
634
|
+
"NUTRITIONAL DATA:\n" +
|
|
635
|
+
`- fooddata_search query='${foods}' — find matching foods in USDA database\n` +
|
|
636
|
+
"- fooddata_detail for each food — full nutrient breakdown (calories, protein, fat, carbs, vitamins, minerals)\n" +
|
|
637
|
+
"- Use 'Foundation' or 'SR Legacy' data types for generic foods, 'Branded' for specific products\n\n" +
|
|
638
|
+
"FOOD SAFETY:\n" +
|
|
639
|
+
`- fda_food_recalls — any recent recalls related to these foods?\n\n` +
|
|
640
|
+
"NATIONAL CONTEXT:\n" +
|
|
641
|
+
"- cdc_nutrition_obesity — national obesity, physical inactivity rates\n" +
|
|
642
|
+
"- bls_cpi_breakdown food — food price inflation\n\n" +
|
|
643
|
+
"Present a clear nutritional comparison table. Note daily value percentages " +
|
|
644
|
+
"and highlight any notable nutritional strengths or concerns.",
|
|
645
|
+
},
|
|
646
|
+
// ─── International Comparison ──────────────────────────────────────
|
|
647
|
+
{
|
|
648
|
+
name: "us_vs_world",
|
|
649
|
+
description: "Compare the U.S. to other nations on any metric: economy, health, education, environment, military.",
|
|
650
|
+
arguments: [
|
|
651
|
+
{ name: "topic", description: "What to compare (e.g. 'healthcare', 'education spending', 'gun violence', 'inequality', 'CO2 emissions')", required: true },
|
|
652
|
+
{ name: "countries", description: "Countries to compare (e.g. 'US,DE,GB,JP,CA'). Default: US + G7.", required: false },
|
|
653
|
+
],
|
|
654
|
+
load: async ({ topic, countries }) => {
|
|
655
|
+
const ctries = countries || "US,GB,DE,FR,JP,CA,AU";
|
|
656
|
+
const topicIndicators = {
|
|
657
|
+
healthcare: "SH.XPD.CHEX.PC.CD (spend) + SP.DYN.LE00.IN (life expectancy) + SH.XPD.CHEX.GD.ZS (% GDP)",
|
|
658
|
+
education: "SE.XPD.TOTL.GD.ZS (spending) + SE.TER.CUAT.BA.ZS (degree attainment)",
|
|
659
|
+
inequality: "SI.POV.GINI (Gini) + SI.DST.10TH.10 (top 10% share) + SI.POV.NAHC (poverty rate)",
|
|
660
|
+
emissions: "EN.ATM.CO2E.PC (CO2 per capita) + EG.USE.PCAP.KG.OE (energy per capita)",
|
|
661
|
+
military: "MS.MIL.XPND.GD.ZS (% GDP) + MS.MIL.XPND.CD (total)",
|
|
662
|
+
debt: "GC.DOD.TOTL.GD.ZS (govt debt % GDP)",
|
|
663
|
+
population: "SP.POP.TOTL + SP.DYN.LE00.IN + SP.DYN.TFRT.IN (fertility)",
|
|
664
|
+
gdp: "NY.GDP.MKTP.CD (nominal) + NY.GDP.PCAP.CD (per capita) + NY.GDP.MKTP.KD.ZG (growth)",
|
|
665
|
+
};
|
|
666
|
+
const indicators = topicIndicators[(topic ?? "").toLowerCase()] || `Search wb_search for indicators related to '${topic}'`;
|
|
667
|
+
return `Compare the U.S. to other nations on: ${topic}\n\n` +
|
|
668
|
+
`Countries: ${ctries}\n\n` +
|
|
669
|
+
"WORLD BANK DATA:\n" +
|
|
670
|
+
`- wb_compare countries='${ctries}' for these indicators:\n` +
|
|
671
|
+
` ${indicators}\n` +
|
|
672
|
+
"- Show the latest 3-5 years of data for trend\n\n" +
|
|
673
|
+
"U.S. DOMESTIC CONTEXT:\n" +
|
|
674
|
+
"- FRED series for the U.S. equivalent (more granular, more recent)\n" +
|
|
675
|
+
"- BLS data if labor/wage related\n" +
|
|
676
|
+
"- CDC data if health related\n\n" +
|
|
677
|
+
"Present a clear comparison table with the U.S. highlighted. " +
|
|
678
|
+
"Note where the U.S. leads and where it lags. Avoid editorializing — " +
|
|
679
|
+
"let the numbers tell the story.";
|
|
680
|
+
},
|
|
681
|
+
},
|
|
682
|
+
// ─── Agriculture ───────────────────────────────────────────────────
|
|
683
|
+
{
|
|
684
|
+
name: "agriculture_report",
|
|
685
|
+
description: "Analyze crop production, farm prices, agricultural trade, and rural economics.",
|
|
686
|
+
arguments: [
|
|
687
|
+
{ name: "commodity", description: "Crop or livestock (e.g. 'CORN', 'SOYBEANS', 'CATTLE', 'WHEAT') or 'overview' for national summary", required: true },
|
|
688
|
+
{ name: "state", description: "Optional state (e.g. 'IA', 'TX', 'CA')", required: false },
|
|
689
|
+
],
|
|
690
|
+
load: async ({ commodity: _commodity, state }) => {
|
|
691
|
+
const commodity = _commodity ?? "overview";
|
|
692
|
+
const isOverview = commodity.toLowerCase() === "overview";
|
|
693
|
+
return `Agriculture report: ${isOverview ? "National Overview" : commodity}${state ? ` in ${state}` : ""}:\n\n` +
|
|
694
|
+
"PRODUCTION:\n" +
|
|
695
|
+
(!isOverview
|
|
696
|
+
? `- usda_crop_data commodity='${commodity.toUpperCase()}'${state ? ` state='${state}'` : ""} — production volume, yield, acres\n` +
|
|
697
|
+
`- usda_prices commodity='${commodity.toUpperCase()}' — farm-gate prices\n`
|
|
698
|
+
: "- usda_crop_data for top 5 crops (CORN, SOYBEANS, WHEAT, COTTON, RICE)\n" +
|
|
699
|
+
"- usda_livestock for CATTLE and HOGS\n") +
|
|
700
|
+
"\nPRICES & INFLATION:\n" +
|
|
701
|
+
"- bls_cpi_breakdown food — consumer food price trends\n" +
|
|
702
|
+
"- fred_series_data for relevant commodity futures if available\n\n" +
|
|
703
|
+
"WEATHER IMPACT:\n" +
|
|
704
|
+
(state ? `- noaa_climate_data for ${state} — temperature and precipitation\n` : "") +
|
|
705
|
+
(state ? `- fema_disaster_declarations for ${state} type=Drought or Flood\n` : "") +
|
|
706
|
+
"\nFEDERAL PROGRAMS:\n" +
|
|
707
|
+
"- usa_spending_by_agency for USDA — farm subsidy and program spending\n" +
|
|
708
|
+
"- lobbying_search registrant_name='American Farm Bureau' — ag lobbying\n\n" +
|
|
709
|
+
"TRADE:\n" +
|
|
710
|
+
"- wb_compare (US, BR, CN, AR) for agricultural export indicators\n\n" +
|
|
711
|
+
"Present production trends, pricing, and the role of federal subsidies. " +
|
|
712
|
+
"Note weather/climate impacts on yields.";
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
// ─── Hospital & Nursing Home Quality ───────────────────────────────
|
|
716
|
+
{
|
|
717
|
+
name: "hospital_check",
|
|
718
|
+
description: "Check hospital or nursing home quality: ratings, mortality, infections, patient experience.",
|
|
719
|
+
arguments: [
|
|
720
|
+
{ name: "facility", description: "Hospital name, nursing home name, or state for overview (e.g. 'Mayo Clinic', 'FL nursing homes')", required: true },
|
|
721
|
+
],
|
|
722
|
+
load: async ({ facility }) => `Healthcare facility check: ${facility}\n\n` +
|
|
723
|
+
"HOSPITAL DATA:\n" +
|
|
724
|
+
`- cms_hospitals — search for '${facility}' or filter by state\n` +
|
|
725
|
+
"- Look at: overall rating, mortality, readmission, patient experience, safety\n" +
|
|
726
|
+
"- cms_query dataset='hospital_mortality' for detailed mortality measures\n" +
|
|
727
|
+
"- cms_query dataset='hospital_infections' for HAI data\n\n" +
|
|
728
|
+
"NURSING HOME DATA:\n" +
|
|
729
|
+
`- cms_nursing_homes — search for '${facility}' or filter by state\n` +
|
|
730
|
+
"- Look at: overall rating, health inspection results, staffing, quality measures\n\n" +
|
|
731
|
+
"COMMUNITY HEALTH CONTEXT:\n" +
|
|
732
|
+
"- cdc_places_health for the county where the facility is located\n" +
|
|
733
|
+
"- census_population for demographic context\n\n" +
|
|
734
|
+
"Present ratings clearly. Compare to state and national averages. " +
|
|
735
|
+
"Flag any facilities with below-average mortality or infection rates.",
|
|
736
|
+
},
|
|
737
|
+
// ─── Natural Hazards & Earthquakes ─────────────────────────────────
|
|
738
|
+
{
|
|
739
|
+
name: "earthquake_risk",
|
|
740
|
+
description: "Assess earthquake risk and recent seismic activity for a location or region.",
|
|
741
|
+
arguments: [
|
|
742
|
+
{ name: "location", description: "State, city, or region (e.g. 'California', 'Pacific Northwest', 'Oklahoma')", required: true },
|
|
743
|
+
],
|
|
744
|
+
load: async ({ location }) => `Earthquake and seismic risk assessment: ${location}\n\n` +
|
|
745
|
+
"RECENT ACTIVITY:\n" +
|
|
746
|
+
`- usgs_earthquakes with location-appropriate lat/lon and maxradiuskm — last 30 days of seismic activity\n` +
|
|
747
|
+
`- usgs_significant — notable recent earthquakes worldwide for context\n` +
|
|
748
|
+
`- usgs_earthquake_count for ${location} region over past 1 year, 5 years, 10 years — frequency trends\n\n` +
|
|
749
|
+
"FEDERAL RESPONSE:\n" +
|
|
750
|
+
`- fema_disaster_declarations filtered for Earthquake near ${location}\n` +
|
|
751
|
+
"- fema_housing_assistance + fema_public_assistance for earthquake disaster costs\n" +
|
|
752
|
+
"- usa_spending_by_state for FEMA spending in the state\n\n" +
|
|
753
|
+
"WATER RESOURCES:\n" +
|
|
754
|
+
`- usgs_water_data for monitoring sites near ${location} — check for anomalies\n\n` +
|
|
755
|
+
"INFRASTRUCTURE:\n" +
|
|
756
|
+
"- congress_search_bills for 'earthquake', 'seismic', 'building code' — relevant legislation\n" +
|
|
757
|
+
"- lobbying_search for seismic or earthquake — who lobbied on building standards\n\n" +
|
|
758
|
+
"Present magnitude distribution, frequency trends, and historical damage. " +
|
|
759
|
+
"Compare to other high-risk regions. Note building code legislation and FEMA preparedness.",
|
|
760
|
+
},
|
|
761
|
+
// ─── Drug Pipeline & Clinical Trials ───────────────────────────────
|
|
762
|
+
{
|
|
763
|
+
name: "drug_pipeline",
|
|
764
|
+
description: "Analyze the clinical trial pipeline for a disease or drug company.",
|
|
765
|
+
arguments: [
|
|
766
|
+
{ name: "target", description: "Disease name or pharma company (e.g. 'Alzheimer Disease', 'Pfizer', 'lung cancer')", required: true },
|
|
767
|
+
],
|
|
768
|
+
load: async ({ target }) => `Drug development pipeline analysis: ${target}\n\n` +
|
|
769
|
+
"CLINICAL TRIALS:\n" +
|
|
770
|
+
`- clinical_trials_stats condition='${target}' — pipeline breakdown by status\n` +
|
|
771
|
+
`- clinical_trials_search for '${target}' with status=RECRUITING — active trials\n` +
|
|
772
|
+
`- clinical_trials_search for '${target}' with phase=PHASE3 — late-stage candidates\n` +
|
|
773
|
+
`- clinical_trials_search for '${target}' with status=COMPLETED — recently completed\n\n` +
|
|
774
|
+
"FDA SAFETY DATA:\n" +
|
|
775
|
+
`- fda_drug_events for drugs treating ${target} — adverse event reports\n` +
|
|
776
|
+
`- fda_drug_counts for top drugs in the space\n\n` +
|
|
777
|
+
"DISEASE BURDEN:\n" +
|
|
778
|
+
`- cdc_causes_of_death — is this a leading cause of death?\n` +
|
|
779
|
+
`- cdc_mortality_rates — recent death rate trends\n\n` +
|
|
780
|
+
"INDUSTRY CONTEXT:\n" +
|
|
781
|
+
`- lobbying_search for pharmaceutical companies testing ${target} treatments\n` +
|
|
782
|
+
"- fec_search_committees for pharma PACs (committee_type=Q)\n" +
|
|
783
|
+
"- sec_company_search for major pharma companies in the space\n\n" +
|
|
784
|
+
"GOVERNMENT INVESTMENT:\n" +
|
|
785
|
+
"- usa_spending_by_agency for NIH — federal research funding\n" +
|
|
786
|
+
`- clinical_trials_search sponsor='NIH' condition='${target}' — government-funded trials\n\n` +
|
|
787
|
+
"Compare industry-sponsored vs NIH-sponsored trial counts. " +
|
|
788
|
+
"Show phase distribution and completion rates. Note any terminated trials and reasons.",
|
|
789
|
+
},
|
|
790
|
+
// ─── Transportation Report ─────────────────────────────────────────
|
|
791
|
+
{
|
|
792
|
+
name: "transportation_report",
|
|
793
|
+
description: "Analyze transportation trends: airline delays, border crossings, transit ridership, infrastructure spending.",
|
|
794
|
+
arguments: [
|
|
795
|
+
{ name: "focus", description: "Focus area: 'airlines', 'transit', 'border', or a state/city (e.g. 'CA', 'Chicago')", required: true },
|
|
796
|
+
],
|
|
797
|
+
load: async ({ focus: _focus }) => {
|
|
798
|
+
const focus = _focus ?? "airlines";
|
|
799
|
+
return `Transportation analysis: ${focus}\n\n` +
|
|
800
|
+
"AIRLINE PERFORMANCE:\n" +
|
|
801
|
+
`- bts_airline_ontime${focus.length === 2 ? "" : ` carrier or airport matching '${focus}'`} — delays, cancellations\n` +
|
|
802
|
+
"- bts_flight_delays — worst delay rankings\n\n" +
|
|
803
|
+
"TRANSIT RIDERSHIP:\n" +
|
|
804
|
+
`- bts_transit_ridership${focus.length === 2 ? ` state='${focus}'` : ` matching '${focus}'`} — subway, bus, rail ridership trends\n\n` +
|
|
805
|
+
"BORDER CROSSINGS:\n" +
|
|
806
|
+
"- bts_border_crossings — trucks, vehicles, passengers at ports of entry\n\n" +
|
|
807
|
+
"INFRASTRUCTURE SPENDING:\n" +
|
|
808
|
+
"- usa_spending_by_agency for DOT (Dept of Transportation)\n" +
|
|
809
|
+
"- congress_search_bills for 'infrastructure', 'highway', 'FAA' — legislation\n" +
|
|
810
|
+
"- lobbying_search for aviation or transportation — industry lobbying\n\n" +
|
|
811
|
+
"ENERGY & ENVIRONMENT:\n" +
|
|
812
|
+
"- eia_petroleum — fuel price impact on transportation\n" +
|
|
813
|
+
"- nrel_fuel_stations — EV charging and alt-fuel infrastructure\n" +
|
|
814
|
+
"- epa_air_quality — transportation emissions\n\n" +
|
|
815
|
+
"SAFETY:\n" +
|
|
816
|
+
"- nhtsa_recalls — vehicle safety recalls\n" +
|
|
817
|
+
"- nhtsa_complaints — consumer safety complaints\n\n" +
|
|
818
|
+
"Present trends in delays, ridership, infrastructure investment, and safety. " +
|
|
819
|
+
"Compare pre/post pandemic levels where relevant.";
|
|
820
|
+
},
|
|
821
|
+
},
|
|
822
|
+
// ─── Housing Market Analysis ───────────────────────────────────────
|
|
823
|
+
{
|
|
824
|
+
name: "housing_market",
|
|
825
|
+
description: "Comprehensive housing market analysis: prices, rents, affordability, mortgage rates.",
|
|
826
|
+
arguments: [
|
|
827
|
+
{ name: "location", description: "State code, metro area, or 'national' (e.g. 'CA', 'Los Angeles', 'national')", required: true },
|
|
828
|
+
],
|
|
829
|
+
load: async ({ location: _location }) => {
|
|
830
|
+
const location = _location ?? "national";
|
|
831
|
+
const isNational = location.toLowerCase() === "national";
|
|
832
|
+
const isState = location.length === 2;
|
|
833
|
+
return `Housing market analysis: ${location}\n\n` +
|
|
834
|
+
"HOME PRICES:\n" +
|
|
835
|
+
"- fred_series_data CSUSHPINSA — Case-Shiller Home Price Index\n" +
|
|
836
|
+
"- fred_series_data USSTHPI — FHFA House Price Index (national)\n" +
|
|
837
|
+
"- fred_series_data MORTGAGE30US — 30-year fixed mortgage rate\n\n" +
|
|
838
|
+
"RENTS:\n" +
|
|
839
|
+
(isState ? `- hud_fair_market_rents for ${location} counties — Section 8 fair rents\n` : "") +
|
|
840
|
+
(isState ? `- hud_income_limits for ${location} — income thresholds for housing programs\n` : "") +
|
|
841
|
+
"- bls_cpi_breakdown shelter — shelter component of CPI\n\n" +
|
|
842
|
+
"AFFORDABILITY:\n" +
|
|
843
|
+
(isState ? `- bea_personal_income for ${location} — state personal income\n` : "") +
|
|
844
|
+
"- fred_series_data LES1252881600Q — real median weekly earnings\n" +
|
|
845
|
+
"- Census (B25077 home values, B25064 median rent)\n\n" +
|
|
846
|
+
"LENDING:\n" +
|
|
847
|
+
"- fdic_search_institutions — lending institutions in the area\n" +
|
|
848
|
+
"- cfpb_search_complaints product='Mortgage' — mortgage complaints\n\n" +
|
|
849
|
+
"POLICY:\n" +
|
|
850
|
+
"- congress_search_bills for 'housing', 'mortgage', 'Section 8'\n" +
|
|
851
|
+
"- lobbying_search for 'National Association of Realtors'\n" +
|
|
852
|
+
"- usa_spending_by_agency for HUD\n\n" +
|
|
853
|
+
"Calculate affordability: median home price vs median income ratio. " +
|
|
854
|
+
"Show HPI trend over 5+ years. Compare mortgage payment at current rate vs 2019 rate.";
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
];
|
|
858
|
+
//# sourceMappingURL=prompts.js.map
|