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.
Files changed (310) hide show
  1. package/README.md +211 -0
  2. package/dist/client.d.ts +54 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +388 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/instructions.d.ts +8 -0
  7. package/dist/instructions.d.ts.map +1 -0
  8. package/dist/instructions.js +549 -0
  9. package/dist/instructions.js.map +1 -0
  10. package/dist/modules/bea.d.ts +28 -0
  11. package/dist/modules/bea.d.ts.map +1 -0
  12. package/dist/modules/bea.js +158 -0
  13. package/dist/modules/bea.js.map +1 -0
  14. package/dist/modules/bls.d.ts +29 -0
  15. package/dist/modules/bls.d.ts.map +1 -0
  16. package/dist/modules/bls.js +244 -0
  17. package/dist/modules/bls.js.map +1 -0
  18. package/dist/modules/bts.d.ts +26 -0
  19. package/dist/modules/bts.d.ts.map +1 -0
  20. package/dist/modules/bts.js +112 -0
  21. package/dist/modules/bts.js.map +1 -0
  22. package/dist/modules/cdc.d.ts +26 -0
  23. package/dist/modules/cdc.d.ts.map +1 -0
  24. package/dist/modules/cdc.js +310 -0
  25. package/dist/modules/cdc.js.map +1 -0
  26. package/dist/modules/census.d.ts +23 -0
  27. package/dist/modules/census.d.ts.map +1 -0
  28. package/dist/modules/census.js +141 -0
  29. package/dist/modules/census.js.map +1 -0
  30. package/dist/modules/cfpb.d.ts +20 -0
  31. package/dist/modules/cfpb.d.ts.map +1 -0
  32. package/dist/modules/cfpb.js +135 -0
  33. package/dist/modules/cfpb.js.map +1 -0
  34. package/dist/modules/clinical-trials.d.ts +22 -0
  35. package/dist/modules/clinical-trials.d.ts.map +1 -0
  36. package/dist/modules/clinical-trials.js +171 -0
  37. package/dist/modules/clinical-trials.js.map +1 -0
  38. package/dist/modules/cms.d.ts +21 -0
  39. package/dist/modules/cms.d.ts.map +1 -0
  40. package/dist/modules/cms.js +135 -0
  41. package/dist/modules/cms.js.map +1 -0
  42. package/dist/modules/college-scorecard.d.ts +39 -0
  43. package/dist/modules/college-scorecard.d.ts.map +1 -0
  44. package/dist/modules/college-scorecard.js +192 -0
  45. package/dist/modules/college-scorecard.js.map +1 -0
  46. package/dist/modules/congress.d.ts +28 -0
  47. package/dist/modules/congress.d.ts.map +1 -0
  48. package/dist/modules/congress.js +883 -0
  49. package/dist/modules/congress.js.map +1 -0
  50. package/dist/modules/dol.d.ts +27 -0
  51. package/dist/modules/dol.d.ts.map +1 -0
  52. package/dist/modules/dol.js +209 -0
  53. package/dist/modules/dol.js.map +1 -0
  54. package/dist/modules/eia.d.ts +33 -0
  55. package/dist/modules/eia.d.ts.map +1 -0
  56. package/dist/modules/eia.js +227 -0
  57. package/dist/modules/eia.js.map +1 -0
  58. package/dist/modules/epa.d.ts +21 -0
  59. package/dist/modules/epa.d.ts.map +1 -0
  60. package/dist/modules/epa.js +91 -0
  61. package/dist/modules/epa.js.map +1 -0
  62. package/dist/modules/fbi.d.ts +28 -0
  63. package/dist/modules/fbi.d.ts.map +1 -0
  64. package/dist/modules/fbi.js +143 -0
  65. package/dist/modules/fbi.js.map +1 -0
  66. package/dist/modules/fda.d.ts +35 -0
  67. package/dist/modules/fda.d.ts.map +1 -0
  68. package/dist/modules/fda.js +262 -0
  69. package/dist/modules/fda.js.map +1 -0
  70. package/dist/modules/fdic.d.ts +21 -0
  71. package/dist/modules/fdic.d.ts.map +1 -0
  72. package/dist/modules/fdic.js +186 -0
  73. package/dist/modules/fdic.js.map +1 -0
  74. package/dist/modules/fec.d.ts +29 -0
  75. package/dist/modules/fec.d.ts.map +1 -0
  76. package/dist/modules/fec.js +282 -0
  77. package/dist/modules/fec.js.map +1 -0
  78. package/dist/modules/federal-register.d.ts +24 -0
  79. package/dist/modules/federal-register.d.ts.map +1 -0
  80. package/dist/modules/federal-register.js +184 -0
  81. package/dist/modules/federal-register.js.map +1 -0
  82. package/dist/modules/fema.d.ts +20 -0
  83. package/dist/modules/fema.d.ts.map +1 -0
  84. package/dist/modules/fema.js +156 -0
  85. package/dist/modules/fema.js.map +1 -0
  86. package/dist/modules/fred.d.ts +40 -0
  87. package/dist/modules/fred.d.ts.map +1 -0
  88. package/dist/modules/fred.js +143 -0
  89. package/dist/modules/fred.js.map +1 -0
  90. package/dist/modules/govinfo.d.ts +24 -0
  91. package/dist/modules/govinfo.d.ts.map +1 -0
  92. package/dist/modules/govinfo.js +147 -0
  93. package/dist/modules/govinfo.js.map +1 -0
  94. package/dist/modules/hud.d.ts +17 -0
  95. package/dist/modules/hud.d.ts.map +1 -0
  96. package/dist/modules/hud.js +170 -0
  97. package/dist/modules/hud.js.map +1 -0
  98. package/dist/modules/naep.d.ts +27 -0
  99. package/dist/modules/naep.d.ts.map +1 -0
  100. package/dist/modules/naep.js +210 -0
  101. package/dist/modules/naep.js.map +1 -0
  102. package/dist/modules/nhtsa.d.ts +13 -0
  103. package/dist/modules/nhtsa.d.ts.map +1 -0
  104. package/dist/modules/nhtsa.js +196 -0
  105. package/dist/modules/nhtsa.js.map +1 -0
  106. package/dist/modules/noaa.d.ts +41 -0
  107. package/dist/modules/noaa.d.ts.map +1 -0
  108. package/dist/modules/noaa.js +135 -0
  109. package/dist/modules/noaa.js.map +1 -0
  110. package/dist/modules/nrel.d.ts +25 -0
  111. package/dist/modules/nrel.d.ts.map +1 -0
  112. package/dist/modules/nrel.js +87 -0
  113. package/dist/modules/nrel.js.map +1 -0
  114. package/dist/modules/regulations.d.ts +24 -0
  115. package/dist/modules/regulations.d.ts.map +1 -0
  116. package/dist/modules/regulations.js +173 -0
  117. package/dist/modules/regulations.js.map +1 -0
  118. package/dist/modules/sec.d.ts +25 -0
  119. package/dist/modules/sec.d.ts.map +1 -0
  120. package/dist/modules/sec.js +192 -0
  121. package/dist/modules/sec.js.map +1 -0
  122. package/dist/modules/senate-lobbying.d.ts +21 -0
  123. package/dist/modules/senate-lobbying.d.ts.map +1 -0
  124. package/dist/modules/senate-lobbying.js +189 -0
  125. package/dist/modules/senate-lobbying.js.map +1 -0
  126. package/dist/modules/treasury.d.ts +23 -0
  127. package/dist/modules/treasury.d.ts.map +1 -0
  128. package/dist/modules/treasury.js +234 -0
  129. package/dist/modules/treasury.js.map +1 -0
  130. package/dist/modules/usaspending.d.ts +19 -0
  131. package/dist/modules/usaspending.d.ts.map +1 -0
  132. package/dist/modules/usaspending.js +204 -0
  133. package/dist/modules/usaspending.js.map +1 -0
  134. package/dist/modules/usda-fooddata.d.ts +24 -0
  135. package/dist/modules/usda-fooddata.d.ts.map +1 -0
  136. package/dist/modules/usda-fooddata.js +118 -0
  137. package/dist/modules/usda-fooddata.js.map +1 -0
  138. package/dist/modules/usda-nass.d.ts +46 -0
  139. package/dist/modules/usda-nass.d.ts.map +1 -0
  140. package/dist/modules/usda-nass.js +151 -0
  141. package/dist/modules/usda-nass.js.map +1 -0
  142. package/dist/modules/usgs.d.ts +21 -0
  143. package/dist/modules/usgs.d.ts.map +1 -0
  144. package/dist/modules/usgs.js +203 -0
  145. package/dist/modules/usgs.js.map +1 -0
  146. package/dist/modules/uspto.d.ts +13 -0
  147. package/dist/modules/uspto.d.ts.map +1 -0
  148. package/dist/modules/uspto.js +157 -0
  149. package/dist/modules/uspto.js.map +1 -0
  150. package/dist/modules/world-bank.d.ts +21 -0
  151. package/dist/modules/world-bank.d.ts.map +1 -0
  152. package/dist/modules/world-bank.js +130 -0
  153. package/dist/modules/world-bank.js.map +1 -0
  154. package/dist/prompts.d.ts +12 -0
  155. package/dist/prompts.d.ts.map +1 -0
  156. package/dist/prompts.js +858 -0
  157. package/dist/prompts.js.map +1 -0
  158. package/dist/sdk/bea.d.ts +111 -0
  159. package/dist/sdk/bea.d.ts.map +1 -0
  160. package/dist/sdk/bea.js +242 -0
  161. package/dist/sdk/bea.js.map +1 -0
  162. package/dist/sdk/bls.d.ts +65 -0
  163. package/dist/sdk/bls.d.ts.map +1 -0
  164. package/dist/sdk/bls.js +203 -0
  165. package/dist/sdk/bls.js.map +1 -0
  166. package/dist/sdk/bts.d.ts +108 -0
  167. package/dist/sdk/bts.d.ts.map +1 -0
  168. package/dist/sdk/bts.js +121 -0
  169. package/dist/sdk/bts.js.map +1 -0
  170. package/dist/sdk/cdc.d.ts +105 -0
  171. package/dist/sdk/cdc.d.ts.map +1 -0
  172. package/dist/sdk/cdc.js +222 -0
  173. package/dist/sdk/cdc.js.map +1 -0
  174. package/dist/sdk/census.d.ts +47 -0
  175. package/dist/sdk/census.d.ts.map +1 -0
  176. package/dist/sdk/census.js +99 -0
  177. package/dist/sdk/census.js.map +1 -0
  178. package/dist/sdk/cfpb.d.ts +148 -0
  179. package/dist/sdk/cfpb.d.ts.map +1 -0
  180. package/dist/sdk/cfpb.js +153 -0
  181. package/dist/sdk/cfpb.js.map +1 -0
  182. package/dist/sdk/clinical-trials.d.ts +214 -0
  183. package/dist/sdk/clinical-trials.d.ts.map +1 -0
  184. package/dist/sdk/clinical-trials.js +134 -0
  185. package/dist/sdk/clinical-trials.js.map +1 -0
  186. package/dist/sdk/cms.d.ts +81 -0
  187. package/dist/sdk/cms.d.ts.map +1 -0
  188. package/dist/sdk/cms.js +227 -0
  189. package/dist/sdk/cms.js.map +1 -0
  190. package/dist/sdk/college-scorecard.d.ts +63 -0
  191. package/dist/sdk/college-scorecard.d.ts.map +1 -0
  192. package/dist/sdk/college-scorecard.js +131 -0
  193. package/dist/sdk/college-scorecard.js.map +1 -0
  194. package/dist/sdk/congress.d.ts +575 -0
  195. package/dist/sdk/congress.d.ts.map +1 -0
  196. package/dist/sdk/congress.js +659 -0
  197. package/dist/sdk/congress.js.map +1 -0
  198. package/dist/sdk/dol.d.ts +299 -0
  199. package/dist/sdk/dol.d.ts.map +1 -0
  200. package/dist/sdk/dol.js +252 -0
  201. package/dist/sdk/dol.js.map +1 -0
  202. package/dist/sdk/eia.d.ts +91 -0
  203. package/dist/sdk/eia.d.ts.map +1 -0
  204. package/dist/sdk/eia.js +156 -0
  205. package/dist/sdk/eia.js.map +1 -0
  206. package/dist/sdk/epa.d.ts +128 -0
  207. package/dist/sdk/epa.d.ts.map +1 -0
  208. package/dist/sdk/epa.js +120 -0
  209. package/dist/sdk/epa.js.map +1 -0
  210. package/dist/sdk/fbi.d.ts +48 -0
  211. package/dist/sdk/fbi.d.ts.map +1 -0
  212. package/dist/sdk/fbi.js +69 -0
  213. package/dist/sdk/fbi.js.map +1 -0
  214. package/dist/sdk/fda.d.ts +356 -0
  215. package/dist/sdk/fda.d.ts.map +1 -0
  216. package/dist/sdk/fda.js +162 -0
  217. package/dist/sdk/fda.js.map +1 -0
  218. package/dist/sdk/fdic.d.ts +227 -0
  219. package/dist/sdk/fdic.d.ts.map +1 -0
  220. package/dist/sdk/fdic.js +172 -0
  221. package/dist/sdk/fdic.js.map +1 -0
  222. package/dist/sdk/fec.d.ts +142 -0
  223. package/dist/sdk/fec.d.ts.map +1 -0
  224. package/dist/sdk/fec.js +92 -0
  225. package/dist/sdk/fec.js.map +1 -0
  226. package/dist/sdk/federal-register.d.ts +88 -0
  227. package/dist/sdk/federal-register.d.ts.map +1 -0
  228. package/dist/sdk/federal-register.js +100 -0
  229. package/dist/sdk/federal-register.js.map +1 -0
  230. package/dist/sdk/fema.d.ts +137 -0
  231. package/dist/sdk/fema.d.ts.map +1 -0
  232. package/dist/sdk/fema.js +197 -0
  233. package/dist/sdk/fema.js.map +1 -0
  234. package/dist/sdk/fred.d.ts +72 -0
  235. package/dist/sdk/fred.d.ts.map +1 -0
  236. package/dist/sdk/fred.js +59 -0
  237. package/dist/sdk/fred.js.map +1 -0
  238. package/dist/sdk/govinfo.d.ts +64 -0
  239. package/dist/sdk/govinfo.d.ts.map +1 -0
  240. package/dist/sdk/govinfo.js +187 -0
  241. package/dist/sdk/govinfo.js.map +1 -0
  242. package/dist/sdk/hud.d.ts +87 -0
  243. package/dist/sdk/hud.d.ts.map +1 -0
  244. package/dist/sdk/hud.js +91 -0
  245. package/dist/sdk/hud.js.map +1 -0
  246. package/dist/sdk/index.d.ts +51 -0
  247. package/dist/sdk/index.d.ts.map +1 -0
  248. package/dist/sdk/index.js +51 -0
  249. package/dist/sdk/index.js.map +1 -0
  250. package/dist/sdk/naep.d.ts +93 -0
  251. package/dist/sdk/naep.d.ts.map +1 -0
  252. package/dist/sdk/naep.js +163 -0
  253. package/dist/sdk/naep.js.map +1 -0
  254. package/dist/sdk/nhtsa.d.ts +169 -0
  255. package/dist/sdk/nhtsa.d.ts.map +1 -0
  256. package/dist/sdk/nhtsa.js +102 -0
  257. package/dist/sdk/nhtsa.js.map +1 -0
  258. package/dist/sdk/noaa.d.ts +72 -0
  259. package/dist/sdk/noaa.d.ts.map +1 -0
  260. package/dist/sdk/noaa.js +64 -0
  261. package/dist/sdk/noaa.js.map +1 -0
  262. package/dist/sdk/nrel.d.ts +145 -0
  263. package/dist/sdk/nrel.d.ts.map +1 -0
  264. package/dist/sdk/nrel.js +93 -0
  265. package/dist/sdk/nrel.js.map +1 -0
  266. package/dist/sdk/regulations.d.ts +146 -0
  267. package/dist/sdk/regulations.d.ts.map +1 -0
  268. package/dist/sdk/regulations.js +103 -0
  269. package/dist/sdk/regulations.js.map +1 -0
  270. package/dist/sdk/sec.d.ts +114 -0
  271. package/dist/sdk/sec.d.ts.map +1 -0
  272. package/dist/sdk/sec.js +151 -0
  273. package/dist/sdk/sec.js.map +1 -0
  274. package/dist/sdk/senate-lobbying.d.ts +147 -0
  275. package/dist/sdk/senate-lobbying.d.ts.map +1 -0
  276. package/dist/sdk/senate-lobbying.js +125 -0
  277. package/dist/sdk/senate-lobbying.js.map +1 -0
  278. package/dist/sdk/treasury.d.ts +59 -0
  279. package/dist/sdk/treasury.d.ts.map +1 -0
  280. package/dist/sdk/treasury.js +1397 -0
  281. package/dist/sdk/treasury.js.map +1 -0
  282. package/dist/sdk/usaspending.d.ts +126 -0
  283. package/dist/sdk/usaspending.d.ts.map +1 -0
  284. package/dist/sdk/usaspending.js +270 -0
  285. package/dist/sdk/usaspending.js.map +1 -0
  286. package/dist/sdk/usda-fooddata.d.ts +112 -0
  287. package/dist/sdk/usda-fooddata.d.ts.map +1 -0
  288. package/dist/sdk/usda-fooddata.js +80 -0
  289. package/dist/sdk/usda-fooddata.js.map +1 -0
  290. package/dist/sdk/usda-nass.d.ts +75 -0
  291. package/dist/sdk/usda-nass.d.ts.map +1 -0
  292. package/dist/sdk/usda-nass.js +83 -0
  293. package/dist/sdk/usda-nass.js.map +1 -0
  294. package/dist/sdk/usgs.d.ts +221 -0
  295. package/dist/sdk/usgs.d.ts.map +1 -0
  296. package/dist/sdk/usgs.js +182 -0
  297. package/dist/sdk/usgs.js.map +1 -0
  298. package/dist/sdk/uspto.d.ts +109 -0
  299. package/dist/sdk/uspto.d.ts.map +1 -0
  300. package/dist/sdk/uspto.js +286 -0
  301. package/dist/sdk/uspto.js.map +1 -0
  302. package/dist/sdk/world-bank.d.ts +78 -0
  303. package/dist/sdk/world-bank.d.ts.map +1 -0
  304. package/dist/sdk/world-bank.js +72 -0
  305. package/dist/sdk/world-bank.js.map +1 -0
  306. package/dist/server.d.ts +22 -0
  307. package/dist/server.d.ts.map +1 -0
  308. package/dist/server.js +196 -0
  309. package/dist/server.js.map +1 -0
  310. package/package.json +113 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAiD1C,wEAAwE;AAExE,MAAM,WAAW;IAIK;IAAqB;IAHjC,MAAM,CAAS;IACf,UAAU,CAAS;IAE3B,YAAoB,GAAW,EAAU,IAAY;QAAjC,QAAG,GAAH,G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AO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAChF,CAAC;QAED,KAAK,CAAC,IAAI,CACR,IAAY,EACZ,IAA8B,EAC9B,MAAe;YAEf,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YACnC,MAAM,OAAO,GAAG,YAAY,CAAC,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAErE,2BAA2B;YAC3B,MAAM,SAAS,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;YAC9B,IAAI,IAAI,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;gBAC1B,MAAM,GAAG,GAAG,SAAS,EAAE,CAAC;gBACxB,IAAI,GAAG,EAAE,CAAC;oBACR,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;oBAC1B,IAAI,IAAI,CAAC,WAAW;wBAAE,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;gBACnE,CAAC;YACH,CAAC;YAED,OAAO,OAAO,CAAI,GAAG,EAAE;gBACrB,MAAM,EAAE,MAAM;gBACd,OAAO;gBACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;aAChC,CAAC,CAAC;QACL,CAAC;QAED,UAAU,KAAK,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KAChC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
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 declare const CROSS_REFERENCE_GUIDE = "\n== CROSS-REFERENCING GUIDE ==\nCRITICAL: Never answer a question using just one API when multiple can provide richer context.\nBefore responding, always ask: 'What other data sources would make this answer more complete?'\n\n=== QUESTION-TYPE ROUTING ===\nDetect the type of question and automatically pull from the right combination:\n\nDEBT / DEFICIT:\n Primary: Treasury (debt_to_penny) \u2192 get raw debt number\n Enrich: FRED (GDP) \u2192 calculate debt-to-GDP ratio for context\n Enrich: FRED (FYFSGDA188S) \u2192 deficit as % of GDP over time\n Enrich: Treasury (avg_interest_rates) \u2192 cost of servicing the debt\n Explain: Congress (congress_search_bills for 'debt ceiling', congress_recent_laws) \u2192 what legislation drove it\n Explain: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on debt ceiling and budget bills\n Compare: FRED (GDP, UNRATE) \u2192 was deficit spending during recession or expansion?\n Compare: World Bank (GC.DOD.TOTL.GD.ZS) \u2192 how does U.S. debt-to-GDP compare internationally?\n\nSPENDING / BUDGET:\n Primary: USAspending (by_agency, by_award) \u2192 who got the money\n Enrich: Treasury (MTS mts_table_1) \u2192 total receipts vs outlays\n Enrich: Census (population) \u2192 convert to per-capita figures\n Explain: Congress (congress_search_bills) \u2192 what authorized the spending\n Explain: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on the appropriation\n Explain: Federal Register \u2192 any executive orders that directed spending\n Compare: USAspending (over_time) \u2192 is it trending up or down?\n Context: USDA NASS \u2192 agriculture spending context (USDA is 5th largest agency)\n Context: Senate Lobbying (lobbying_search) \u2192 who lobbied for the spending program\n\nECONOMIC CONDITIONS (GDP, jobs, inflation, rates):\n Primary: FRED (GDP, UNRATE, CPIAUCSL, FEDFUNDS, PAYEMS) \u2192 the numbers\n Enrich: FRED (multiple related series) \u2192 always show 3-5 related indicators together\n Enrich: BLS (bls_cpi_breakdown) \u2192 show WHICH categories drive inflation (food, shelter, energy, medical)\n Enrich: BLS (bls_employment_by_industry) \u2192 show WHICH sectors are adding/losing jobs\n Enrich: BEA (bea_gdp_by_industry) \u2192 show WHICH industries drive GDP\n Enrich: DOL (dol_ui_claims_national) \u2192 weekly unemployment insurance claims (leading indicator)\n Context: Treasury (debt, revenue) \u2192 fiscal backdrop\n Context: Congress (recent laws) \u2192 what legislation was active\n Context: Federal Register (executive orders) \u2192 executive actions in effect\n Context: Note which president/congress was in office with dates\n Compare: World Bank (same indicators for peer nations) \u2192 is U.S. inflation/growth high or low vs peers?\n\nSTATE-LEVEL QUESTIONS:\n Primary: Census (population, income, demographics)\n Enrich: BEA (bea_gdp_by_state) \u2192 state GDP and growth rate\n Enrich: BEA (bea_personal_income, state FIPS) \u2192 per-capita income by state\n Enrich: BLS (bls_search_series state_employment + bls_series_data) \u2192 state unemployment and jobs\n Enrich: USAspending (by_state) \u2192 federal dollars flowing to state\n Enrich: FEC (search candidates by state) \u2192 political representation\n Enrich: CDC (cdc_places_health) \u2192 county-level health indicators (obesity, diabetes, depression, food insecurity)\n Enrich: NOAA (noaa_climate_data) \u2192 climate/weather patterns affecting the state\n Enrich: HUD (hud_fair_market_rents) \u2192 rental costs and housing affordability\n Enrich: FEMA (fema_disaster_declarations) \u2192 disaster history and federal aid\n Enrich: CFPB (cfpb_complaint_aggregations state) \u2192 financial complaint volume in state\n Enrich: FDIC (fdic_search_institutions) \u2192 banking institutions in the state\n Enrich: DOL (dol_osha_inspections, dol_whd_enforcement) \u2192 workplace safety and wage enforcement in state\n Enrich: DOL (dol_ui_claims_state) \u2192 unemployment insurance claims for the state\n Calculate: Federal spending per capita = USAspending total / Census population\n\nLEGISLATION / POLICY:\n Primary: Congress (congress_bill_details, cosponsors, status) \u2192 what passed and how\n Enrich: Congress (congress_house_votes) \u2192 House party-line vote breakdown (Congress.gov API for 118th+, clerk.house.gov XML 1990+)\n Enrich: Congress (congress_senate_votes) \u2192 Senate party-line vote breakdown (senate.gov XML 101st/1989+)\n Enrich: Congress (congress_bill_actions) \u2192 full legislative timeline (committee, floor, enrolled)\n Enrich: Congress (congress_bill_amendments) \u2192 how the bill was modified during debate\n Enrich: GovInfo (govinfo_bill_text) \u2192 full enrolled text of the law\n Enrich: FRED (before/after indicators) \u2192 economic impact with 1yr pre and 1-3yr post data\n Enrich: Treasury (debt, deficit before/after) \u2192 fiscal impact\n Enrich: USAspending (spending trends before/after) \u2192 spending changes\n Enrich: Federal Register (related executive orders) \u2192 implementation actions\n Enrich: Senate Lobbying (lobbying_search) \u2192 who lobbied for/against the bill and how much they spent\n Enrich: Regulations.gov (regulations_search_documents) \u2192 implementing regulations after the law passed\n Always: Show party-line breakdown of votes vs economic outcome\n Always: Compare House vote and Senate vote for the same bill to show bicameral alignment/divergence\n\nELECTIONS / CAMPAIGN FINANCE:\n Primary: FEC (candidates, committees, financials) \u2192 who raised what\n Enrich: Congress (congress_member_bills) \u2192 bills they sponsored/cosponsored while in office\n Enrich: Congress (congress_house_votes, congress_senate_votes) \u2192 their voting record on key bills\n Enrich: Congress (congress_bill_details) \u2192 did they cosponsor popular/unpopular legislation?\n Enrich: USAspending (contracts to donors/donor companies) \u2192 follow the money\n Enrich: Senate Lobbying (lobbying_search) \u2192 who lobbied on what issues and how much they spent\n Enrich: Senate Lobbying (lobbying_contributions) \u2192 lobbyist campaign donations to politicians\n Context: FRED (economic conditions during election cycle)\n Context: Congress (congress_house_votes year=election_year) \u2192 how they voted in the election year\n\nEXECUTIVE ACTIONS / REGULATIONS:\n Primary: Federal Register (executive orders, rules) \u2192 what was signed\n Enrich: Regulations.gov (regulations_search_documents) \u2192 proposed/final rules, supporting documents\n Enrich: Regulations.gov (regulations_search_comments) \u2192 public comments on proposed rules\n Enrich: Congress (congress_search_bills) \u2192 was Congress acting on this too?\n Enrich: Congress (congress_house_votes, congress_senate_votes) \u2192 did Congress vote to override or support?\n Enrich: Senate Lobbying (lobbying_search) \u2192 who lobbied for/against the action\n Enrich: FRED (economic indicators) \u2192 conditions before/after the action\n Enrich: USAspending \u2192 did spending patterns change after the order?\n\nPRESIDENTIAL COMPARISON:\n For EACH president: FRED (GDP, UNRATE, CPIAUCSL, FEDFUNDS, PAYEMS, SP500, M2SL) at start vs end of term\n For EACH president: Treasury (debt at start vs end, deficit/GDP each year)\n For EACH president: Congress (major laws signed, congress_recent_laws)\n For EACH president: Congress (congress_house_votes, congress_senate_votes) \u2192 key votes under each president (e.g. ACA 2010 roll 165, Tax Cuts 2017)\n For EACH president: Federal Register (count and nature of executive orders)\n For EACH president: USAspending (usa_spending_over_time) \u2192 federal spending trajectory during term\n Always: Note external factors (recessions, pandemics, wars) that affected outcomes\n Always: Show both raw numbers and context-adjusted figures\n Always: Note which party controlled House and Senate during each congress of the term\n\nHEALTH / HEALTHCARE:\n Primary: CDC (cdc_causes_of_death) \u2192 what Americans die from, by state/year\n Primary: CDC (cdc_life_expectancy) \u2192 life expectancy trends by race/sex (through 2018)\n Primary: CDC (cdc_mortality_rates) \u2192 quarterly death rates by cause and state (2020\u2013present)\n Primary: CDC (cdc_weekly_deaths) \u2192 most current weekly death surveillance (COVID, flu, pneumonia, total)\n Enrich: ClinicalTrials (clinical_trials_search) \u2192 ongoing research for diseases/conditions\n Enrich: ClinicalTrials (clinical_trials_stats) \u2192 drug development pipeline activity by disease\n Enrich: USAspending (HHS spending) \u2192 how much is spent on healthcare\n Enrich: BLS (bls_cpi_breakdown medical care) \u2192 healthcare cost inflation\n Enrich: CDC (cdc_places_health) \u2192 county-level: obesity, diabetes, depression, smoking, food insecurity\n Enrich: CDC (cdc_places_city) \u2192 city-level health indicators for cities with pop > 50K\n Enrich: CDC (cdc_nutrition_obesity) \u2192 obesity, physical inactivity, fruit/vegetable consumption by state\n Enrich: CDC (cdc_drug_overdose) \u2192 drug poisoning/overdose mortality by state (opioid crisis)\n Enrich: CDC (cdc_disability) \u2192 disability prevalence by state and type\n Enrich: CDC (cdc_birth_indicators) \u2192 birth rates, teen births, preterm, cesarean by race\n Enrich: CDC (cdc_death_rates_historical) \u2192 120+ years of death rates for major causes\n Enrich: CMS (cms_hospitals) \u2192 hospital quality, mortality, readmissions, infections\n Enrich: CMS (cms_nursing_homes) \u2192 nursing home quality and health citations\n Compare: World Bank (SH.XPD.CHEX.PC.CD, SP.DYN.LE00.IN) \u2192 U.S. health spend and life expectancy vs other nations\n Context: Census (demographics, aging population) \u2192 who needs the most care\n Context: Congress (congress_search_bills for 'healthcare', 'ACA', 'Medicare') \u2192 health legislation\n Context: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on health bills\n Context: Senate Lobbying (lobbying_search for healthcare, pharmaceutical) \u2192 who lobbied on health policy\n\nDRUG DEVELOPMENT / PHARMACEUTICAL:\n Primary: ClinicalTrials (clinical_trials_search) \u2192 search trials by drug, condition, sponsor, phase\n Primary: ClinicalTrials (clinical_trials_detail) \u2192 full protocol, eligibility, locations\n Primary: ClinicalTrials (clinical_trials_stats) \u2192 pipeline activity by disease OR drug name (recruiting vs completed vs terminated)\n Enrich: FDA (fda_approved_drugs) \u2192 FDA approval history, application number, active ingredients, marketing status\n Enrich: FDA (fda_drug_events) \u2192 adverse event reports for approved drugs\n Enrich: FDA (fda_drug_counts) \u2192 aggregate adverse event patterns (top reactions, top drugs)\n Enrich: FDA (fda_drug_recalls) \u2192 drug recall enforcement reports by company, classification, reason\n Enrich: CDC (cdc_causes_of_death, cdc_mortality_rates) \u2192 disease burden the drug targets\n Enrich: SEC (sec_company_search, sec_company_financials) \u2192 pharma company financial performance\n Enrich: Senate Lobbying (lobbying_search) \u2192 pharma lobbying spend (PhRMA, individual companies)\n Enrich: Senate Lobbying (lobbying_lobbyists) \u2192 individual lobbyists working for the pharma company\n Enrich: Senate Lobbying (lobbying_detail) \u2192 specific bills and issues the company lobbied on\n Enrich: FEC (fec_search_committees, fec_committee_disbursements) \u2192 pharma PAC donations\n Context: Congress (congress_search_bills for drug names or 'prescription drug') \u2192 legislation\n Context: Federal Register (fr_search_rules, fr_document_detail) \u2192 FDA rulemaking and regulatory actions\n Context: World Bank (SH.XPD.CHEX.PC.CD) \u2192 international drug pricing context\n Always: Compare industry-sponsored vs NIH-sponsored trial counts for the same condition\n Always: Use clinical_trials_stats with search_as_drug=true for drug names like 'semaglutide'\n\nAGRICULTURE / FOOD PRICES:\n Primary: USDA NASS (usda_crop_data, usda_prices) \u2192 production and farm-gate prices\n Enrich: BLS (bls_cpi_breakdown food) \u2192 consumer food price inflation\n Enrich: EIA (eia_petroleum) \u2192 energy costs affect farming and transport\n Enrich: NOAA (noaa_climate_data) \u2192 weather impacts on crop yields\n Enrich: FDA (fda_food_recalls) \u2192 food safety recalls and contamination\n Enrich: FDA (fda_food_adverse_events) \u2192 illness/injury reports from foods and dietary supplements (CAERS)\n Enrich: USDA FoodData (fooddata_search) \u2192 nutritional composition of foods\n Context: USAspending (USDA agency spending) \u2192 farm subsidies and programs\n Context: Census (rural population) \u2192 farming community demographics\n\nNUTRITION / FOOD SCIENCE:\n Primary: USDA FoodData (fooddata_search, fooddata_detail) \u2192 full nutrient breakdown for any food\n Enrich: CDC (cdc_nutrition_obesity) \u2192 obesity and physical inactivity rates by state\n Enrich: CDC (cdc_places_health FOODINSECU) \u2192 food insecurity at county level\n Enrich: FDA (fda_food_recalls) \u2192 food safety issues\n Enrich: FDA (fda_food_adverse_events) \u2192 adverse event reports from foods and supplements\n Context: BLS (bls_cpi_breakdown food) \u2192 food price trends\n\nINTERNATIONAL COMPARISON:\n Primary: World Bank (wb_compare) \u2192 side-by-side indicator comparison\n Enrich: FRED \u2192 U.S. baseline for the same metric\n Enrich: Treasury \u2192 U.S. fiscal position\n Context: Always compare like-for-like (GDP per capita, not total GDP, for size-different nations)\n Context: Note data availability gaps (some countries lag 1-3 years)\n\nFOOD SAFETY / RECALLS:\n Primary: FDA (fda_food_recalls) \u2192 food recall enforcement reports by classification, firm, reason\n Primary: FDA (fda_food_adverse_events) \u2192 CAERS adverse event reports from foods and dietary supplements\n Enrich: USDA FoodData (fooddata_search) \u2192 nutritional composition of recalled/reported foods\n Enrich: BLS (bls_cpi_breakdown food) \u2192 food price inflation context\n Enrich: USDA NASS (usda_crop_data, usda_prices) \u2192 production data for affected commodities\n Context: Congress (congress_search_bills for 'food safety', 'FDA') \u2192 food safety legislation\n Context: Senate Lobbying (lobbying_search for food industry) \u2192 food industry lobbying\n Context: Federal Register (fr_search_rules agency:FDA) \u2192 FDA rulemaking activity\n\nDRUG SAFETY / RECALLS:\n Primary: FDA (fda_drug_events) \u2192 adverse event reports (FAERS) \u2014 search by drug name\n Primary: FDA (fda_drug_counts) \u2192 aggregate top reactions, top drugs by adverse event count\n Primary: FDA (fda_drug_recalls) \u2192 drug recall enforcement reports by classification and company\n Enrich: FDA (fda_approved_drugs) \u2192 FDA approval history, active ingredients, marketing status\n Enrich: ClinicalTrials (clinical_trials_search) \u2192 ongoing trials for the same drug\n Enrich: ClinicalTrials (clinical_trials_stats with search_as_drug=true) \u2192 pipeline activity for the drug\n Enrich: Senate Lobbying (lobbying_search) \u2192 manufacturer lobbying spend\n Enrich: Senate Lobbying (lobbying_lobbyists) \u2192 who lobbies for the manufacturer\n Context: Congress (congress_search_bills for drug name or 'drug pricing') \u2192 legislation\n Context: Federal Register (fr_search_rules) \u2192 FDA regulatory actions\n Always: Note that high adverse event counts often correlate with high prescription volume\n\nMEDICAL DEVICES / SAFETY:\n Primary: FDA (fda_device_events) \u2192 medical device adverse event reports (MAUDE)\n Primary: FDA (fda_device_recalls) \u2192 medical device recall reports with root causes\n Enrich: CMS (cms_hospitals) \u2192 hospital quality where devices are used\n Enrich: Senate Lobbying (lobbying_search for device manufacturer) \u2192 lobbying by device companies\n Context: USPTO (uspto_search_patents) \u2192 patents for the device technology\n Context: Congress (congress_search_bills for 'medical device', '510(k)') \u2192 device regulation bills\n\nENERGY / CLIMATE:\n Primary: EIA (petroleum, electricity, natural gas prices and production)\n Enrich: NREL (nrel_fuel_stations) \u2192 EV charging and alt fuel infrastructure by state\n Enrich: NREL (nrel_utility_rates) \u2192 local electricity prices\n Enrich: NREL (nrel_solar) \u2192 solar energy potential by location\n Enrich: NOAA (noaa_climate_data) \u2192 temperature trends correlate with energy demand\n Enrich: BLS (bls_cpi_breakdown energy) \u2192 energy's impact on consumer prices\n Enrich: EPA (epa_air_quality) \u2192 pollution levels by state/county\n Enrich: Federal Register \u2192 energy-related executive orders and regulations\n Enrich: Congress (congress_search_bills for 'energy', 'climate', 'IRA') \u2192 energy legislation\n Enrich: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on energy bills\n Enrich: Senate Lobbying (lobbying_search for energy, oil, renewable) \u2192 energy industry lobbying\n Compare: World Bank (EN.ATM.CO2E.PC) \u2192 U.S. emissions vs other nations\n\nEDUCATION / LITERACY:\n Primary: NAEP (naep_scores) \u2192 reading, math, science scores by state and grade\n Primary: NAEP (naep_achievement_levels) \u2192 % Below Basic, Proficient, Advanced \u2014 the key literacy metric\n Enrich: NAEP (naep_compare_years) \u2192 track COVID learning loss and recovery (2019 vs 2022 vs 2024)\n Enrich: NAEP (naep_compare_groups) \u2192 racial/poverty achievement gaps by SDRACE and SLUNCH3\n Enrich: NAEP (naep_compare_states) \u2192 which states score highest/lowest\n Enrich: Census (population, poverty) \u2192 demographic context for achievement gaps\n Enrich: CDC (cdc_places_health FOODINSECU) \u2192 food insecurity correlates with low test scores\n Enrich: World Bank (SE.XPD.TOTL.GD.ZS) \u2192 U.S. education spending vs peers\n Enrich: World Bank (SE.TER.CUAT.BA.ZS) \u2192 degree attainment rates over time\n Context: USAspending (Dept of Education spending) \u2192 federal education funding\n\nCOLLEGE / HIGHER EDUCATION:\n Primary: College Scorecard (scorecard_search) \u2192 tuition, graduation rates, earnings, debt by school\n Enrich: College Scorecard (scorecard_top earnings) \u2192 which schools produce highest earners\n Enrich: College Scorecard (scorecard_compare) \u2192 side-by-side school comparison\n Enrich: FRED (SLOAS) \u2192 total student loan debt outstanding\n Enrich: BLS (employment by education level) \u2192 unemployment rate by degree type\n Enrich: Census (B15003 educational attainment) \u2192 degree attainment rates\n Enrich: World Bank (SE.TER.CUAT.BA.ZS) \u2192 international degree comparison\n Context: NAEP (naep_scores, naep_achievement_levels) \u2192 K-12 pipeline quality feeding into college\n\nDISASTERS / EMERGENCY MANAGEMENT:\n Primary: FEMA (fema_disaster_declarations) \u2192 declared disasters by type, state, year\n Enrich: FEMA (fema_housing_assistance) \u2192 individual housing assistance amounts\n Enrich: FEMA (fema_public_assistance) \u2192 public infrastructure grants\n Enrich: USAspending (FEMA agency spending) \u2192 total federal disaster spending\n Enrich: NOAA (noaa_climate_data) \u2192 weather events that triggered disasters\n Enrich: USGS (usgs_earthquakes) \u2192 earthquake data correlating with FEMA declarations\n Enrich: Census (population) \u2192 per-capita disaster spending\n Context: Congress (congress_search_bills for 'disaster', 'FEMA') \u2192 disaster legislation\n Context: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on disaster relief\n Context: Federal Register (executive orders) \u2192 emergency declarations\n\nEARTHQUAKES / SEISMIC / NATURAL HAZARDS:\n Primary: USGS (usgs_earthquakes) \u2192 earthquake events by magnitude, location, date\n Primary: USGS (usgs_significant) \u2192 significant recent earthquakes worldwide\n Enrich: USGS (usgs_earthquake_count) \u2192 frequency statistics by region/magnitude\n Enrich: FEMA (fema_disaster_declarations, incident_type='Earthquake') \u2192 federal disaster response\n Enrich: FEMA (fema_housing_assistance, fema_public_assistance) \u2192 federal aid amounts\n Enrich: USAspending (FEMA spending) \u2192 total federal disaster outlays\n Enrich: Census (population) \u2192 affected population and per-capita aid\n Context: NOAA (noaa_climate_data) \u2192 related weather events\n Context: Congress (search bills for 'earthquake', 'seismic', 'building codes') \u2192 safety legislation\n\nWATER RESOURCES / DROUGHT / FLOODING:\n Primary: USGS (usgs_water_data) \u2192 real-time streamflow, water levels, temperature\n Primary: USGS (usgs_daily_water_data) \u2192 historical daily averages for trend analysis\n Primary: USGS (usgs_water_sites) \u2192 13,000+ monitoring stations\n Enrich: NOAA (noaa_climate_data) \u2192 precipitation and temperature data\n Enrich: FEMA (fema_disaster_declarations, incident_type='Flood') \u2192 flood disaster declarations\n Enrich: EPA (epa_facilities) \u2192 water quality compliance\n Enrich: CDC (cdc_places_health) \u2192 health impacts in affected areas\n Context: USDA NASS (usda_crop_data) \u2192 agricultural water impacts\n Context: Congress (search bills for 'water', 'drought', 'infrastructure') \u2192 legislation\n\nHOUSING / RENT / AFFORDABILITY:\n Primary: HUD (hud_fair_market_rents) \u2192 HUD-determined fair rents by bedroom count\n Primary: HUD (hud_income_limits) \u2192 income thresholds for housing programs\n Enrich: FRED (USSTHPI) \u2192 FHFA House Price Index (national)\n Enrich: Census (B25077 home values, B25064 median rent) \u2192 actual market rents and home values\n Enrich: FRED (MORTGAGE30US, CSUSHPINSA) \u2192 mortgage rates and Case-Shiller home price index\n Enrich: BEA (bea_personal_income) \u2192 state/metro income to compare against rents\n Enrich: BLS (bls_cpi_breakdown shelter) \u2192 housing cost inflation\n Context: USAspending (HUD agency spending) \u2192 federal housing assistance spending\n Context: FEMA (fema_housing_assistance) \u2192 disaster-related housing aid\n Context: Senate Lobbying (lobbying_search for real estate, housing) \u2192 who lobbied on housing policy\n\nVEHICLE SAFETY / AUTO:\n Primary: NHTSA (nhtsa_recalls) \u2192 safety recalls by make/model/year\n Primary: NHTSA (nhtsa_complaints) \u2192 consumer safety complaints with crash/fire/injury stats\n Enrich: NHTSA (nhtsa_safety_ratings) \u2192 NCAP 5-star crash test ratings (frontal, side, rollover) + safety tech\n Enrich: NHTSA (nhtsa_decode_vin) \u2192 decode any VIN for full vehicle specs\n Enrich: NHTSA (nhtsa_models) \u2192 list all makes and models\n Context: NREL (nrel_fuel_stations) \u2192 EV charging infrastructure for electric vehicles\n Context: EPA (epa_air_quality) \u2192 vehicle emissions and air quality\n\nTRANSPORTATION / INFRASTRUCTURE:\n Primary: BTS (bts_transport_stats) \u2192 monthly transportation indicators: airline traffic, on-time %, transit ridership, rail freight, truck tonnage, fuel prices, vehicle sales, safety fatalities, Transportation Services Index\n Primary: BTS (bts_border_crossings) \u2192 vehicles, passengers, containers at U.S. ports of entry\n Enrich: EIA (eia_petroleum) \u2192 fuel prices impact transportation costs\n Enrich: BLS (bls_cpi_breakdown transportation) \u2192 transportation cost inflation\n Enrich: USAspending (DOT agency spending) \u2192 federal infrastructure investment\n Enrich: NHTSA (nhtsa_recalls, nhtsa_complaints, nhtsa_safety_ratings) \u2192 vehicle safety data and crash ratings\n Enrich: NREL (nrel_fuel_stations) \u2192 EV and alt-fuel infrastructure\n Enrich: EPA (epa_air_quality) \u2192 transportation emissions impact\n Context: Congress (search bills for 'infrastructure', 'highway', 'FAA', 'transit') \u2192 legislation\n Context: Senate Lobbying (lobbying_search for aviation, transportation, railroad) \u2192 industry lobbying\n\nPATENTS / INNOVATION / TECHNOLOGY:\n Primary: USPTO (uspto_search_patents) \u2192 search patents by keyword, assignee, inventor, CPC class\n Enrich: USPTO (uspto_search_assignees) \u2192 top patent-holding companies in an area\n Enrich: USPTO (uspto_search_inventors) \u2192 prolific inventors by name or location\n Enrich: SEC (sec_company_search) \u2192 financial data for patent-holding companies\n Context: USAspending (R&D agency spending) \u2192 federal research funding\n Context: Census (population, education) \u2192 innovation ecosystem demographics\n Context: World Bank (GB.XPD.RSDV.GD.ZS) \u2192 R&D spending as % of GDP internationally\n\nHEALTHCARE FACILITIES / QUALITY:\n Primary: CMS (cms_hospitals) \u2192 hospital quality ratings, readmissions, infections, mortality\n Primary: CMS (cms_nursing_homes) \u2192 nursing home ratings, health citations, staffing\n Enrich: FDA (fda_device_events) \u2192 medical device adverse events at facilities\n Enrich: FDA (fda_device_recalls) \u2192 recalled medical devices\n Enrich: CDC (cdc_places_health) \u2192 county-level health indicators where facilities operate\n Enrich: Census (population, demographics) \u2192 who is served by these facilities\n Enrich: USAspending (HHS/CMS spending) \u2192 Medicare/Medicaid spending\n Enrich: BLS (bls_cpi_breakdown medical care) \u2192 healthcare cost inflation\n\nBANKING / FINANCIAL REGULATION:\n Primary: FDIC (fdic_search_institutions) \u2192 search FDIC-insured banks by state, assets, charter type\n Primary: FDIC (fdic_failures) \u2192 bank failures since 1934 with costs and resolution types\n Primary: FDIC (fdic_financials) \u2192 quarterly Call Report data (assets, deposits, income, ROA, ROE)\n Enrich: CFPB (cfpb_search_complaints) \u2192 consumer complaints against financial companies\n Enrich: CFPB (cfpb_complaint_aggregations) \u2192 complaint volume by company/product/state\n Enrich: CFPB (cfpb_complaint_trends) \u2192 complaint trends over time for companies/products\n Enrich: FDIC (fdic_deposits) \u2192 branch-level deposit data for market share analysis\n Enrich: FDIC (fdic_history) \u2192 mergers, acquisitions, charter changes\n Enrich: SEC (sec_company_search, sec_company_financials) \u2192 publicly traded bank financials\n Enrich: FRED (FEDFUNDS, DGS10, MORTGAGE30US) \u2192 interest rate environment affecting banks\n Enrich: Senate Lobbying (lobbying_search) \u2192 bank lobbying on financial regulation\n Context: Congress (search bills for 'banking', 'Dodd-Frank', 'financial regulation') \u2192 relevant legislation\n Context: Federal Register (fr_search_rules agency:CFPB or OCC or FDIC) \u2192 rulemaking activity\n Context: Federal Register (fr_agencies) \u2192 list all agencies for filtering rule searches\n Compare: FRED (TOTBKCR, BUSLOANS) \u2192 total bank credit and commercial lending trends\n\nCONSUMER PROTECTION / FINANCIAL COMPLAINTS:\n Primary: CFPB (cfpb_search_complaints) \u2192 individual complaints with narratives and company responses\n Primary: CFPB (cfpb_complaint_aggregations) \u2192 complaint counts by company, product, state, issue\n Primary: CFPB (cfpb_complaint_trends) \u2192 complaint volume trends over time\n Enrich: CFPB (cfpb_suggest_company) \u2192 find exact company name for complaint searches\n Enrich: FDIC (fdic_search_institutions) \u2192 bank details for complained-about institutions\n Enrich: SEC (sec_company_search) \u2192 financial data for complained-about companies\n Enrich: FEC (fec_search_candidates) \u2192 political donations by financial company executives\n Enrich: Senate Lobbying (lobbying_search) \u2192 lobbying by complained-about companies\n Context: Congress (search bills for 'consumer protection', 'CFPB') \u2192 related legislation\n Context: Federal Register (fr_search_rules agency:CFPB) \u2192 CFPB rulemaking\n Context: Federal Register (fr_document_detail) \u2192 full detail on specific regulatory documents\n\nWORKPLACE SAFETY / LABOR:\n Primary: DOL (dol_osha_inspections) \u2192 OSHA workplace inspections by state, company, industry\n Primary: DOL (dol_osha_violations) \u2192 violations found: type (Serious/Willful/Repeat), penalties, standards cited\n Primary: DOL (dol_osha_accidents) \u2192 accident/fatality investigations with event descriptions\n Primary: DOL (dol_osha_accident_injuries) \u2192 injury demographics and severity from accidents\n Enrich: DOL (dol_whd_enforcement) \u2192 wage theft cases: back wages, FLSA/FMLA violations, penalties\n Enrich: BLS (bls_employment_by_industry) \u2192 employment levels in inspected industries\n Enrich: BLS (bls_search_series + bls_series_data) \u2192 workplace injury/illness rates (BLS survey)\n Enrich: Census (population) \u2192 per-capita violation/injury rates\n Context: Congress (congress_search_bills for 'OSHA', 'workplace safety', 'worker protection') \u2192 safety legislation\n Context: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on labor/safety bills\n Context: Federal Register (fr_search_rules agency:OSHA) \u2192 OSHA rulemaking\n Context: Senate Lobbying (lobbying_search for OSHA or workplace safety) \u2192 who lobbied on safety regulations\n Context: USAspending (DOL agency spending) \u2192 OSHA enforcement budget\n\nUNEMPLOYMENT / LABOR MARKET:\n Primary: DOL (dol_ui_claims_national) \u2192 weekly initial and continued unemployment claims\n Primary: DOL (dol_ui_claims_state) \u2192 state-level weekly UI claims\n Enrich: FRED (UNRATE, PAYEMS, ICSA, CCSA) \u2192 unemployment rate, payrolls, claims from FRED\n Enrich: BLS (bls_employment_by_industry) \u2192 which industries are adding/losing jobs\n Enrich: BEA (bea_personal_income) \u2192 income trends alongside employment\n Enrich: FEMA (fema_disaster_declarations) \u2192 disasters causing employment disruption\n Context: Congress (search bills for 'unemployment', 'jobs', 'workforce') \u2192 jobs legislation\n Context: Federal Register (executive orders) \u2192 executive actions affecting employment\n\nDEREGULATION IMPACT:\n Primary: CFPB (cfpb_complaint_trends) \u2192 did complaints rise/fall after regulatory changes?\n Primary: DOL (dol_osha_inspections) \u2192 did inspection frequency change after deregulation?\n Primary: FDIC (fdic_failures) \u2192 did bank failure rate change?\n Enrich: DOL (dol_osha_violations, dol_osha_accidents) \u2192 violation/accident trends after policy changes\n Enrich: CFPB (cfpb_complaint_aggregations by company) \u2192 which companies saw complaint changes\n Enrich: DOL (dol_whd_enforcement) \u2192 wage theft enforcement trends\n Enrich: EPA (epa_facilities, epa_air_quality) \u2192 environmental compliance after deregulation\n Enrich: Federal Register (fr_executive_orders, fr_search_rules) \u2192 what was deregulated and when\n Enrich: Congress (congress_search_bills) \u2192 legislative rollbacks\n Enrich: Congress (congress_house_votes, congress_senate_votes) \u2192 how each party voted on the deregulation\n Enrich: Senate Lobbying (lobbying_search) \u2192 who lobbied for/against the regulation\n Context: FRED (economic indicators) \u2192 economic conditions alongside regulatory changes\n\nCONFLICT OF INTEREST / ACCOUNTABILITY / CORRUPTION / MONEY IN POLITICS:\n 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:\n\n Step 1 \u2014 Identify the politician:\n FEC (fec_search_candidates) \u2192 get candidate ID, state, party, office\n Congress (congress_member_details or congress_search_members) \u2192 get BioGuide ID, committee assignments\n\n Step 2 \u2014 Follow their money (CAMPAIGN FINANCE):\n FEC (fec_candidate_financials) \u2192 total raised, PAC money, PAC percentage across ALL election cycles\n FEC (fec_search_committees with committee_type=\"Q\") \u2192 find named industry PACs (search by company name: \"Wells Fargo\", \"Pfizer\", \"Goldman Sachs\", etc.)\n FEC (fec_committee_disbursements with recipient_name) \u2192 CRITICAL: get exact, dated, dollar-amount disbursements from each named PAC to the politician. Search multiple cycles (election year \u00B1 1 cycle). This is the direct money trail.\n Senate Lobbying (lobbying_contributions) \u2192 lobbyist campaign donations\n\n Step 3 \u2014 Follow the lobbying:\n Senate Lobbying (lobbying_search) \u2192 search by industry trade group (\"American Bankers Association\", \"PhRMA\") and by individual companies. Get annual lobbying spend for 3+ years around the vote.\n Senate Lobbying (lobbying_detail) \u2192 specific bills listed in lobbying filings\n Senate Lobbying (lobbying_lobbyists) \u2192 individual lobbyists working for the company/industry\n\n Step 4 \u2014 Find the vote:\n Congress (congress_search_bills) \u2192 find the bill by keyword or number\n Congress (congress_bill_details) \u2192 sponsor, cosponsors, committees, status\n Congress (congress_senate_votes or congress_house_votes) \u2192 party-line breakdown\n Congress (congress_bill_actions) \u2192 full timeline from introduction to signing\n\n Step 5 \u2014 Measure the outcome:\n FDIC (fdic_failures) \u2192 if banking: did deregulated banks fail? What was the cost?\n FRED (economic indicators before/after) \u2192 did the policy have measurable economic effects?\n BLS (bls_cpi_breakdown) \u2192 if consumer prices: did prices rise/fall after the vote?\n World Bank (wb_compare) \u2192 international comparison of outcomes (e.g., drug prices, health spending)\n USAspending \u2192 did federal spending change after the legislation?\n CFPB (cfpb_complaint_trends) \u2192 did consumer complaints change?\n CDC (cdc_causes_of_death, cdc_mortality_rates) \u2192 if health-related: did health outcomes change?\n\n Step 6 \u2014 Who benefited from the aftermath:\n Senate Lobbying (lobbying_search) \u2192 did the benefiting companies increase lobbying after?\n SEC (sec_company_search, sec_company_financials) \u2192 did benefiting companies' financials improve?\n FEC (fec_committee_disbursements) \u2192 did PAC donations continue/increase after favorable vote?\n\n Always: Present the full chain: Money In \u2192 Vote \u2192 Outcome \u2192 Who Benefited\n Always: Show both \"why it looks suspicious\" and \"why it might be OK\" \u2014 present both interpretations\n Always: Note that correlation does not prove causation\n Always: Quantify with ratios \u2014 lobbying spend vs. public cost, PAC money vs. policy benefit\n\n KEY PAC LOOKUP TECHNIQUE:\n To find which PACs gave to a politician, you must work backwards from the industry:\n 1. Identify the relevant industry (banking, pharma, energy, tech, etc.)\n 2. Search for each major company's PAC: fec_search_committees(name=\"Company Name\", committee_type=\"Q\")\n 3. Get the committee_id for each PAC found\n 4. Query disbursements: fec_committee_disbursements(committee_id, cycle, recipient_name=\"Senator Last Name\")\n 5. Try multiple cycles \u2014 the politician's election year AND the surrounding cycles\n 6. Common industry PACs to check:\n Banking: ABA BankPAC (C00004275), Wells Fargo (C00034595), Citigroup (C00008474), Goldman Sachs (C00350744), Bank of America (C00364778), JPMorgan (C00104299)\n Pharma: Pfizer (C00016683), Merck (C00097485), PhRMA trade group (search \"PhRMA\")\n Energy: Search by company name (ExxonMobil, Chevron, etc.)\n Tech: Search by company name (Google, Meta, Amazon, etc.)\n Defense: Search by company name (Lockheed Martin, Raytheon, Boeing, etc.)\n\nINVESTIGATIVE / FOLLOW THE MONEY / WHO BENEFITS:\n 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\":\n\n For a SPECIFIC BILL:\n Congress (congress_bill_details) \u2192 sponsor and cosponsors\n For EACH sponsor/cosponsor of interest:\n FEC (fec_candidate_financials) \u2192 PAC money percentage\n FEC (fec_search_committees + fec_committee_disbursements) \u2192 named PAC donations from benefiting industry\n Senate Lobbying (lobbying_search by industry) \u2192 total lobbying spend around the bill\n Congress (congress_senate_votes or congress_house_votes) \u2192 who voted which way, party breakdown\n Then measure outcomes (see Step 5 above)\n\n For a SPECIFIC INDUSTRY:\n Senate Lobbying (lobbying_search) \u2192 total annual lobbying spend, trending over time\n FEC (fec_search_committees, committee_type=\"Q\") \u2192 find all industry PACs\n FEC (fec_committee_disbursements) \u2192 where did each PAC send money?\n Congress (congress_search_bills) \u2192 what bills did they lobby on?\n Congress (votes) \u2192 how did recipients vote on those bills?\n Regulations.gov (regulations_search_documents) \u2192 what rules affect this industry?\n\n For a SPECIFIC POLITICIAN:\n FEC (fec_candidate_financials) \u2192 all cycles, PAC dependency trend\n FEC (fec_committee_disbursements from top industry PACs) \u2192 direct money trail\n Congress (congress_member_bills) \u2192 what did they sponsor?\n Congress (votes) \u2192 how did they vote on industry-relevant bills?\n Senate Lobbying (lobbying_search) \u2192 who lobbied them (by their committee assignments)?\n Senate Lobbying (lobbying_contributions) \u2192 lobbyist donations to them\n\n=== ENRICHMENT RULES ===\nThese rules apply to EVERY response, regardless of question type:\n\n1. ALWAYS ADD CONTEXT TO RAW NUMBERS:\n - Debt \u2192 also show debt-to-GDP ratio (debt / FRED GDP)\n - Spending \u2192 also show per-capita (spending / Census population)\n - Dollar amounts over time \u2192 note inflation (adjust using FRED CPIAUCSL if comparing years)\n - Any federal number \u2192 note which president and congress were in office\n - U.S. metrics \u2192 consider showing international comparison via World Bank\n\n2. ALWAYS SHOW TRENDS, NOT JUST SNAPSHOTS:\n - If asked about 'current' anything, also show the trajectory (last 3-5 data points minimum)\n - If asked about a specific year, also show the year before and after for comparison\n\n3. CORRELATION IS NOT CAUSATION:\n - NEVER say a policy 'caused' an economic outcome\n - Say 'coincided with' or 'occurred during', NOT 'caused' or 'led to'\n - ALWAYS list confounding factors: global events, Fed policy, prior actions, seasonal patterns\n\n4. BE OBJECTIVE \u2014 NO EDITORIALIZING:\n - Use neutral language: 'declined 21%' not 'collapsed', 'increased' not 'surged'\n - Do NOT characterize policies as 'wins' or 'failures'\n - Present both interpretations when data is ambiguous\n\n5. QUANTIFY SIGNIFICANCE WITH DATA, NOT ADJECTIVES:\n - Instead of 'a massive drop', say 'a decline of X%, the largest since [date] when it was Y%'\n - Provide the historical range so the user can judge significance themselves\n\n6. CITE YOUR SOURCES EXPLICITLY:\n - For every number, state which API and series/endpoint it came from\n - Distinguish between raw data and calculated/derived figures\n\n7. PROVIDE MULTIPLE PERSPECTIVES:\n - GDP can grow while median wages stagnate (show both)\n - Unemployment can be low while labor participation is also low (show both)\n - U.S. can rank #1 in total spending but poorly per-capita \u2014 show both\n\n8. PROACTIVELY CONNECT DOTS (but label connections as correlations):\n - If a bill passed, check what happened to related FRED series 1-3 years later\n - If a bill passed, pull congress_house_votes AND congress_senate_votes to show the party-line breakdown\n - If spending spiked, search Congress for the authorizing law AND the vote that approved it\n - If an indicator moved sharply, check Federal Register for executive orders nearby\n - If health outcomes differ by state, check CDC (cdc_places_health, cdc_nutrition_obesity, cdc_drug_overdose) + Census demographics\n - If food prices spike, check USDA NASS crop production + NOAA weather events\n - If a regulation was proposed, check lobbying_search for who lobbied on it AND regulations_search_comments for public input\n - If a member voted a certain way, check FEC for their top donors (fec_candidate_financials) and lobbying_contributions to find potential connections\n - 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\n - 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\n - Build a chronological timeline: PAC donation dates \u2192 bill introduction \u2192 lobbying spend spikes \u2192 vote date \u2192 outcomes (failures, price changes, etc.)\n\n9. FOR CONFLICT OF INTEREST INVESTIGATIONS \u2014 ALWAYS PULL ALL 5 LAYERS:\n Layer 1 \u2014 DIRECT MONEY: fec_committee_disbursements from named industry PACs to the politician (not just aggregate PAC totals)\n Layer 2 \u2014 LOBBYING: lobbying_search for the industry trade group AND individual companies, with annual spend for 3+ years\n Layer 3 \u2014 THE VOTE: senate_votes or house_votes with full party-line breakdown\n Layer 4 \u2014 THE OUTCOME: measurable consequences (FDIC failures, price indices, complaint trends, health outcomes)\n Layer 5 \u2014 WHO BENEFITED: did the industry's lobbying increase after? did a competitor acquire assets cheaply?\n Present all 5 layers together to show the full pipeline from money \u2192 influence \u2192 policy \u2192 public impact\n";
8
+ //# sourceMappingURL=instructions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../src/instructions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,qBAAqB,0nyCA6hBjC,CAAC"}