@cyanheads/usaspending-mcp-server 0.3.0 → 0.3.1

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 (84) hide show
  1. package/CLAUDE.md +55 -29
  2. package/Dockerfile +1 -1
  3. package/README.md +1 -1
  4. package/changelog/0.3.x/0.3.1.md +30 -0
  5. package/dist/mcp-server/tools/definitions/autocomplete.tool.d.ts +8 -2
  6. package/dist/mcp-server/tools/definitions/autocomplete.tool.d.ts.map +1 -1
  7. package/dist/mcp-server/tools/definitions/autocomplete.tool.js +7 -0
  8. package/dist/mcp-server/tools/definitions/autocomplete.tool.js.map +1 -1
  9. package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts +10 -4
  10. package/dist/mcp-server/tools/definitions/disaster-spending.tool.d.ts.map +1 -1
  11. package/dist/mcp-server/tools/definitions/disaster-spending.tool.js +7 -0
  12. package/dist/mcp-server/tools/definitions/disaster-spending.tool.js.map +1 -1
  13. package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts +6 -0
  14. package/dist/mcp-server/tools/definitions/get-agency.tool.d.ts.map +1 -1
  15. package/dist/mcp-server/tools/definitions/get-agency.tool.js +7 -0
  16. package/dist/mcp-server/tools/definitions/get-agency.tool.js.map +1 -1
  17. package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.d.ts +6 -0
  18. package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.d.ts.map +1 -1
  19. package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js +7 -0
  20. package/dist/mcp-server/tools/definitions/get-award-federal-accounts.tool.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/get-award-subawards.tool.d.ts +8 -7
  22. package/dist/mcp-server/tools/definitions/get-award-subawards.tool.d.ts.map +1 -1
  23. package/dist/mcp-server/tools/definitions/get-award-subawards.tool.js +12 -6
  24. package/dist/mcp-server/tools/definitions/get-award-subawards.tool.js.map +1 -1
  25. package/dist/mcp-server/tools/definitions/get-award-transactions.tool.d.ts +6 -5
  26. package/dist/mcp-server/tools/definitions/get-award-transactions.tool.d.ts.map +1 -1
  27. package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js +13 -6
  28. package/dist/mcp-server/tools/definitions/get-award-transactions.tool.js.map +1 -1
  29. package/dist/mcp-server/tools/definitions/get-award.tool.d.ts +6 -0
  30. package/dist/mcp-server/tools/definitions/get-award.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/get-award.tool.js +7 -0
  32. package/dist/mcp-server/tools/definitions/get-award.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.d.ts +7 -1
  34. package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.js +7 -0
  36. package/dist/mcp-server/tools/definitions/get-federal-account-breakdown.tool.js.map +1 -1
  37. package/dist/mcp-server/tools/definitions/get-federal-account.tool.d.ts +6 -0
  38. package/dist/mcp-server/tools/definitions/get-federal-account.tool.d.ts.map +1 -1
  39. package/dist/mcp-server/tools/definitions/get-federal-account.tool.js +7 -0
  40. package/dist/mcp-server/tools/definitions/get-federal-account.tool.js.map +1 -1
  41. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.d.ts +6 -0
  42. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.d.ts.map +1 -1
  43. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js +7 -0
  44. package/dist/mcp-server/tools/definitions/get-idv-awards.tool.js.map +1 -1
  45. package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts +7 -1
  46. package/dist/mcp-server/tools/definitions/get-recipient.tool.d.ts.map +1 -1
  47. package/dist/mcp-server/tools/definitions/get-recipient.tool.js +7 -0
  48. package/dist/mcp-server/tools/definitions/get-recipient.tool.js.map +1 -1
  49. package/dist/mcp-server/tools/definitions/index.d.ts +127 -29
  50. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  51. package/dist/mcp-server/tools/definitions/list-agencies.tool.d.ts +8 -2
  52. package/dist/mcp-server/tools/definitions/list-agencies.tool.d.ts.map +1 -1
  53. package/dist/mcp-server/tools/definitions/list-agencies.tool.js +7 -0
  54. package/dist/mcp-server/tools/definitions/list-agencies.tool.js.map +1 -1
  55. package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts +6 -0
  56. package/dist/mcp-server/tools/definitions/search-awards.tool.d.ts.map +1 -1
  57. package/dist/mcp-server/tools/definitions/search-awards.tool.js +7 -0
  58. package/dist/mcp-server/tools/definitions/search-awards.tool.js.map +1 -1
  59. package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.d.ts +6 -0
  60. package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.d.ts.map +1 -1
  61. package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.js +7 -0
  62. package/dist/mcp-server/tools/definitions/search-federal-accounts.tool.js.map +1 -1
  63. package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts +7 -1
  64. package/dist/mcp-server/tools/definitions/search-recipients.tool.d.ts.map +1 -1
  65. package/dist/mcp-server/tools/definitions/search-recipients.tool.js +7 -0
  66. package/dist/mcp-server/tools/definitions/search-recipients.tool.js.map +1 -1
  67. package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts +10 -4
  68. package/dist/mcp-server/tools/definitions/spending-by-category.tool.d.ts.map +1 -1
  69. package/dist/mcp-server/tools/definitions/spending-by-category.tool.js +7 -0
  70. package/dist/mcp-server/tools/definitions/spending-by-category.tool.js.map +1 -1
  71. package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts +7 -1
  72. package/dist/mcp-server/tools/definitions/spending-by-geography.tool.d.ts.map +1 -1
  73. package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js +7 -0
  74. package/dist/mcp-server/tools/definitions/spending-by-geography.tool.js.map +1 -1
  75. package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts +7 -1
  76. package/dist/mcp-server/tools/definitions/spending-over-time.tool.d.ts.map +1 -1
  77. package/dist/mcp-server/tools/definitions/spending-over-time.tool.js +7 -0
  78. package/dist/mcp-server/tools/definitions/spending-over-time.tool.js.map +1 -1
  79. package/dist/services/usaspending/usaspending-service.d.ts +9 -1
  80. package/dist/services/usaspending/usaspending-service.d.ts.map +1 -1
  81. package/dist/services/usaspending/usaspending-service.js +15 -6
  82. package/dist/services/usaspending/usaspending-service.js.map +1 -1
  83. package/package.json +6 -5
  84. package/server.json +3 -3
@@ -9,8 +9,8 @@ export declare const getRecipientTool: import("@cyanheads/mcp-ts-core").ToolDefi
9
9
  fiscal_year: z.ZodOptional<z.ZodNumber>;
10
10
  award_type: z.ZodOptional<z.ZodEnum<{
11
11
  contracts: "contracts";
12
- grants: "grants";
13
12
  direct_payments: "direct_payments";
13
+ grants: "grants";
14
14
  loans: "loans";
15
15
  other_financial_assistance: "other_financial_assistance";
16
16
  }>>;
@@ -48,5 +48,11 @@ export declare const getRecipientTool: import("@cyanheads/mcp-ts-core").ToolDefi
48
48
  readonly when: "USAspending.gov API is unreachable or returns an error.";
49
49
  readonly retryable: true;
50
50
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
51
+ }, {
52
+ readonly reason: "api_timeout";
53
+ readonly code: JsonRpcErrorCode.Timeout;
54
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
55
+ readonly retryable: true;
56
+ readonly recovery: "Retry with a single fiscal_year set to scope the profile to one year.";
51
57
  }], undefined>;
52
58
  //# sourceMappingURL=get-recipient.tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-recipient.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-recipient.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoM3B,CAAC"}
1
+ {"version":3,"file":"get-recipient.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-recipient.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2M3B,CAAC"}
@@ -79,6 +79,13 @@ export const getRecipientTool = tool('usaspending_get_recipient', {
79
79
  retryable: true,
80
80
  recovery: 'The API may be temporarily down. Retry the request after a few seconds.',
81
81
  },
82
+ {
83
+ reason: 'api_timeout',
84
+ code: JsonRpcErrorCode.Timeout,
85
+ when: 'USAspending.gov did not respond before the request deadline elapsed.',
86
+ retryable: true,
87
+ recovery: 'Retry with a single fiscal_year set to scope the profile to one year.',
88
+ },
82
89
  ],
83
90
  async handler(input, ctx) {
84
91
  ctx.log.info('usaspending_get_recipient', { recipient_id: input.recipient_id });
@@ -1 +1 @@
1
- {"version":3,"file":"get-recipient.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-recipient.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE;IAChE,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,icAAic;IACnc,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cA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MAAM,CAAC,wBAAwB,KAAK,QAAQ;gBACrD,KAAK,CAAC,IAAI,CACR,oCAAoC,MAAM,CAAC,wBAAwB,CAAC,cAAc,EAAE,EAAE,CACvF,CAAC;YACJ,IAAI,OAAO,MAAM,CAAC,kBAAkB,KAAK,QAAQ;gBAC/C,KAAK,CAAC,IAAI,CAAC,6BAA6B,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;YACxF,IAAI,OAAO,MAAM,CAAC,4BAA4B,KAAK,QAAQ;gBACzD,KAAK,CAAC,IAAI,CACR,+BAA+B,MAAM,CAAC,4BAA4B,CAAC,cAAc,EAAE,EAAE,CACtF,CAAC;YACJ,IAAI,OAAO,MAAM,CAAC,kCAAkC,KAAK,QAAQ;gBAC/D,KAAK,CAAC,IAAI,CACR,uCAAuC,MAAM,CAAC,kCAAkC,CAAC,cAAc,EAAE,EAAE,CACpG,CAAC;QACN,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"get-recipient.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/get-recipient.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,EAAE;IAChE,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,icAAic;IACnc,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE;IAE/E,KAA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C,KAAK,QAAQ,CAAC;QAChE,IAAI,SAAS,EAAE,CAAC;YACd,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YACjC,IAAI,OAAO,MAAM,CAAC,wBAAwB,KAAK,QAAQ;gBACrD,KAAK,CAAC,IAAI,CACR,oCAAoC,MAAM,CAAC,wBAAwB,CAAC,cAAc,EAAE,EAAE,CACvF,CAAC;YACJ,IAAI,OAAO,MAAM,CAAC,kBAAkB,KAAK,QAAQ;gBAC/C,KAAK,CAAC,IAAI,CAAC,6BAA6B,MAAM,CAAC,kBAAkB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;YACxF,IAAI,OAAO,MAAM,CAAC,4BAA4B,KAAK,QAAQ;gBACzD,KAAK,CAAC,IAAI,CACR,+BAA+B,MAAM,CAAC,4BAA4B,CAAC,cAAc,EAAE,EAAE,CACtF,CAAC;YACJ,IAAI,OAAO,MAAM,CAAC,kCAAkC,KAAK,QAAQ;gBAC/D,KAAK,CAAC,IAAI,CACR,uCAAuC,MAAM,CAAC,kCAAkC,CAAC,cAAc,EAAE,EAAE,CACpG,CAAC;QACN,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -22,10 +22,10 @@ export { spendingByGeographyTool } from './spending-by-geography.tool.js';
22
22
  export { spendingOverTimeTool } from './spending-over-time.tool.js';
23
23
  export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
24
24
  sort: import("zod").ZodDefault<import("zod").ZodEnum<{
25
- obligated_amount: "obligated_amount";
26
- outlay_amount: "outlay_amount";
27
25
  agency_name: "agency_name";
28
26
  budget_authority_amount: "budget_authority_amount";
27
+ obligated_amount: "obligated_amount";
28
+ outlay_amount: "outlay_amount";
29
29
  }>>;
30
30
  order: import("zod").ZodDefault<import("zod").ZodEnum<{
31
31
  asc: "asc";
@@ -48,14 +48,20 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
48
48
  readonly when: "USAspending.gov API is unreachable or returns an error.";
49
49
  readonly retryable: true;
50
50
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
51
+ }, {
52
+ readonly reason: "api_timeout";
53
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
54
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
55
+ readonly retryable: true;
56
+ readonly recovery: "Retry the request; this listing is one fixed payload with nothing to narrow.";
51
57
  }], {
52
58
  readonly agency_count: import("zod").ZodNumber;
53
59
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
54
60
  type: import("zod").ZodEnum<{
61
+ awarding_agency: "awarding_agency";
62
+ cfda: "cfda";
55
63
  naics: "naics";
56
64
  psc: "psc";
57
- cfda: "cfda";
58
- awarding_agency: "awarding_agency";
59
65
  recipient: "recipient";
60
66
  }>;
61
67
  search_text: import("zod").ZodString;
@@ -82,6 +88,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
82
88
  readonly when: "USAspending.gov API is unreachable or returns an error.";
83
89
  readonly retryable: true;
84
90
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
91
+ }, {
92
+ readonly reason: "api_timeout";
93
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
94
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
95
+ readonly retryable: true;
96
+ readonly recovery: "Retry with a longer search_text and a smaller limit to shrink the match set.";
85
97
  }], {
86
98
  readonly lookup_type: import("zod").ZodString;
87
99
  readonly query: import("zod").ZodString;
@@ -164,6 +176,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
164
176
  readonly when: "USAspending.gov API is unreachable or returns an error.";
165
177
  readonly retryable: true;
166
178
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
179
+ }, {
180
+ readonly reason: "api_timeout";
181
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
182
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
183
+ readonly retryable: true;
184
+ readonly recovery: "Narrow the search — a shorter time_period, fewer award_type_codes, or a smaller limit — then retry.";
167
185
  }, {
168
186
  readonly reason: "pagination_limit_exceeded";
169
187
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
@@ -271,6 +289,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
271
289
  readonly when: "USAspending.gov API is unreachable or returns an error.";
272
290
  readonly retryable: true;
273
291
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
292
+ }, {
293
+ readonly reason: "api_timeout";
294
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
295
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
296
+ readonly retryable: true;
297
+ readonly recovery: "Retry the request; award detail is a single record, so there is nothing to narrow.";
274
298
  }], undefined>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
275
299
  award_id: import("zod").ZodString;
276
300
  sort: import("zod").ZodDefault<import("zod").ZodEnum<{
@@ -306,16 +330,17 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
306
330
  limit: import("zod").ZodNumber;
307
331
  }, import("zod/v4/core").$strip>;
308
332
  }, import("zod/v4/core").$strip>, readonly [{
309
- readonly reason: "award_not_found";
310
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
311
- readonly when: "No award exists for the given award ID.";
312
- readonly recovery: "Verify the award_id is a generated_internal_id from usaspending_search_awards results.";
313
- }, {
314
333
  readonly reason: "api_unavailable";
315
334
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
316
335
  readonly when: "USAspending.gov API is unreachable or returns an error.";
317
336
  readonly retryable: true;
318
337
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
338
+ }, {
339
+ readonly reason: "api_timeout";
340
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
341
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
342
+ readonly retryable: true;
343
+ readonly recovery: "Retry with a smaller limit so the upstream assembles a lighter page.";
319
344
  }], {
320
345
  readonly queried_award_id: import("zod").ZodString;
321
346
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -325,11 +350,11 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
325
350
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
326
351
  award_id: import("zod").ZodString;
327
352
  sort: import("zod").ZodDefault<import("zod").ZodEnum<{
328
- description: "description";
353
+ action_date: "action_date";
329
354
  amount: "amount";
355
+ description: "description";
330
356
  recipient_name: "recipient_name";
331
357
  subaward_number: "subaward_number";
332
- action_date: "action_date";
333
358
  }>>;
334
359
  order: import("zod").ZodDefault<import("zod").ZodEnum<{
335
360
  asc: "asc";
@@ -360,16 +385,17 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
360
385
  limit: import("zod").ZodNumber;
361
386
  }, import("zod/v4/core").$strip>;
362
387
  }, import("zod/v4/core").$strip>, readonly [{
363
- readonly reason: "award_not_found";
364
- readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
365
- readonly when: "No award exists for the given award ID, or the award has no subawards.";
366
- readonly recovery: "Confirm subaward_count is > 0 from usaspending_get_award before querying subawards.";
367
- }, {
368
388
  readonly reason: "api_unavailable";
369
389
  readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
370
390
  readonly when: "USAspending.gov API is unreachable or returns an error.";
371
391
  readonly retryable: true;
372
392
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
393
+ }, {
394
+ readonly reason: "api_timeout";
395
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
396
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
397
+ readonly retryable: true;
398
+ readonly recovery: "Retry with a smaller limit so the upstream assembles a lighter page.";
373
399
  }], {
374
400
  readonly prime_award_id: import("zod").ZodString;
375
401
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -405,6 +431,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
405
431
  readonly when: "USAspending.gov API is unreachable or returns an error.";
406
432
  readonly retryable: true;
407
433
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
434
+ }, {
435
+ readonly reason: "api_timeout";
436
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
437
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
438
+ readonly retryable: true;
439
+ readonly recovery: "Retry with a smaller limit so the upstream assembles a lighter page.";
408
440
  }], {
409
441
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
410
442
  readonly current_page: import("zod").ZodNumber;
@@ -450,6 +482,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
450
482
  readonly when: "USAspending.gov API is unreachable or returns an error.";
451
483
  readonly retryable: true;
452
484
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
485
+ }, {
486
+ readonly reason: "api_timeout";
487
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
488
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
489
+ readonly retryable: true;
490
+ readonly recovery: "Retry with a smaller limit so the upstream assembles a lighter page.";
453
491
  }], {
454
492
  readonly parent_award_id: import("zod").ZodString;
455
493
  readonly current_page: import("zod").ZodNumber;
@@ -462,8 +500,8 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
462
500
  keyword: import("zod").ZodString;
463
501
  award_type: import("zod").ZodOptional<import("zod").ZodEnum<{
464
502
  contracts: "contracts";
465
- grants: "grants";
466
503
  direct_payments: "direct_payments";
504
+ grants: "grants";
467
505
  loans: "loans";
468
506
  other_financial_assistance: "other_financial_assistance";
469
507
  }>>;
@@ -490,6 +528,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
490
528
  readonly when: "USAspending.gov API is unreachable or returns an error.";
491
529
  readonly retryable: true;
492
530
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
531
+ }, {
532
+ readonly reason: "api_timeout";
533
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
534
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
535
+ readonly retryable: true;
536
+ readonly recovery: "Retry with a more specific keyword and a smaller limit to lighten the query.";
493
537
  }], {
494
538
  readonly recipient_count: import("zod").ZodNumber;
495
539
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -501,8 +545,8 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
501
545
  fiscal_year: import("zod").ZodOptional<import("zod").ZodNumber>;
502
546
  award_type: import("zod").ZodOptional<import("zod").ZodEnum<{
503
547
  contracts: "contracts";
504
- grants: "grants";
505
548
  direct_payments: "direct_payments";
549
+ grants: "grants";
506
550
  loans: "loans";
507
551
  other_financial_assistance: "other_financial_assistance";
508
552
  }>>;
@@ -540,6 +584,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
540
584
  readonly when: "USAspending.gov API is unreachable or returns an error.";
541
585
  readonly retryable: true;
542
586
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
587
+ }, {
588
+ readonly reason: "api_timeout";
589
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
590
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
591
+ readonly retryable: true;
592
+ readonly recovery: "Retry with a single fiscal_year set to scope the profile to one year.";
543
593
  }], undefined>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
544
594
  toptier_code: import("zod").ZodOptional<import("zod").ZodString>;
545
595
  agency_slug: import("zod").ZodOptional<import("zod").ZodString>;
@@ -590,6 +640,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
590
640
  readonly when: "USAspending.gov API is unreachable or returns an error.";
591
641
  readonly retryable: true;
592
642
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
643
+ }, {
644
+ readonly reason: "api_timeout";
645
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
646
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
647
+ readonly retryable: true;
648
+ readonly recovery: "Retry the request; the sub-agency page is the slow part, so request one page.";
593
649
  }], {
594
650
  readonly sub_agency_page: import("zod").ZodNumber;
595
651
  readonly has_more_sub_agencies: import("zod").ZodBoolean;
@@ -601,9 +657,9 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
601
657
  recipient_location: "recipient_location";
602
658
  }>;
603
659
  geo_layer: import("zod").ZodEnum<{
604
- state: "state";
605
660
  county: "county";
606
661
  district: "district";
662
+ state: "state";
607
663
  }>;
608
664
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
609
665
  keywords: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
@@ -633,6 +689,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
633
689
  readonly when: "USAspending.gov API is unreachable or returns an error.";
634
690
  readonly retryable: true;
635
691
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
692
+ }, {
693
+ readonly reason: "api_timeout";
694
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
695
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
696
+ readonly retryable: true;
697
+ readonly recovery: "Narrow the filters — a shorter time_period or a coarser geo_layer — then retry the aggregation.";
636
698
  }], {
637
699
  readonly applied_scope: import("zod").ZodString;
638
700
  readonly applied_geo_layer: import("zod").ZodString;
@@ -645,13 +707,13 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
645
707
  readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
646
708
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
647
709
  category: import("zod").ZodEnum<{
648
- naics: "naics";
649
- psc: "psc";
650
- cfda: "cfda";
651
710
  awarding_agency: "awarding_agency";
652
- funding_agency: "funding_agency";
653
711
  awarding_subagency: "awarding_subagency";
712
+ cfda: "cfda";
713
+ funding_agency: "funding_agency";
654
714
  funding_subagency: "funding_subagency";
715
+ naics: "naics";
716
+ psc: "psc";
655
717
  recipient_duns: "recipient_duns";
656
718
  recipient_parent_duns: "recipient_parent_duns";
657
719
  }>;
@@ -686,6 +748,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
686
748
  readonly when: "USAspending.gov API is unreachable or returns an error.";
687
749
  readonly retryable: true;
688
750
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
751
+ }, {
752
+ readonly reason: "api_timeout";
753
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
754
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
755
+ readonly retryable: true;
756
+ readonly recovery: "Narrow the query — a shorter time_period in filters, or a smaller limit — then retry.";
689
757
  }], {
690
758
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
691
759
  readonly page: import("zod").ZodNumber;
@@ -699,8 +767,8 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
699
767
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
700
768
  group: import("zod").ZodEnum<{
701
769
  fiscal_year: "fiscal_year";
702
- quarter: "quarter";
703
770
  month: "month";
771
+ quarter: "quarter";
704
772
  }>;
705
773
  filters: import("zod").ZodOptional<import("zod").ZodObject<{
706
774
  keywords: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
@@ -734,6 +802,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
734
802
  readonly when: "USAspending.gov API is unreachable or returns an error.";
735
803
  readonly retryable: true;
736
804
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
805
+ }, {
806
+ readonly reason: "api_timeout";
807
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
808
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
809
+ readonly retryable: true;
810
+ readonly recovery: "Narrow the filters — a shorter time_period or a coarser group — then retry the aggregation.";
737
811
  }], {
738
812
  readonly time_group: import("zod").ZodString;
739
813
  readonly period_count: import("zod").ZodNumber;
@@ -745,11 +819,11 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
745
819
  readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
746
820
  }>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
747
821
  dimension: import("zod").ZodEnum<{
748
- cfda: "cfda";
749
- recipient: "recipient";
750
- overview: "overview";
751
822
  agency: "agency";
823
+ cfda: "cfda";
752
824
  geography: "geography";
825
+ overview: "overview";
826
+ recipient: "recipient";
753
827
  }>;
754
828
  spending_type: import("zod").ZodDefault<import("zod").ZodEnum<{
755
829
  award: "award";
@@ -759,8 +833,8 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
759
833
  def_codes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
760
834
  award_type_codes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
761
835
  geo_layer: import("zod").ZodOptional<import("zod").ZodEnum<{
762
- state: "state";
763
836
  county: "county";
837
+ state: "state";
764
838
  }>>;
765
839
  }, import("zod/v4/core").$strip>>;
766
840
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -809,6 +883,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
809
883
  readonly when: "USAspending.gov API is unreachable or returns an error.";
810
884
  readonly retryable: true;
811
885
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
886
+ }, {
887
+ readonly reason: "api_timeout";
888
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
889
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
890
+ readonly retryable: true;
891
+ readonly recovery: "Narrow the query — fewer DEF codes in filters, or a smaller limit — then retry.";
812
892
  }], {
813
893
  readonly applied_dimension: import("zod").ZodString;
814
894
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -845,11 +925,17 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
845
925
  readonly when: "USAspending.gov API is unreachable or returns an error.";
846
926
  readonly retryable: true;
847
927
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
928
+ }, {
929
+ readonly reason: "api_timeout";
930
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
931
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
932
+ readonly retryable: true;
933
+ readonly recovery: "Retry the request; account detail is a single record, so there is nothing to narrow.";
848
934
  }], undefined>, import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
849
935
  account_code: import("zod").ZodString;
850
936
  dimension: import("zod").ZodEnum<{
851
- program_activity: "program_activity";
852
937
  object_class: "object_class";
938
+ program_activity: "program_activity";
853
939
  }>;
854
940
  limit: import("zod").ZodDefault<import("zod").ZodNumber>;
855
941
  page: import("zod").ZodDefault<import("zod").ZodNumber>;
@@ -875,6 +961,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
875
961
  readonly when: "USAspending.gov API is unreachable or returns an error.";
876
962
  readonly retryable: true;
877
963
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
964
+ }, {
965
+ readonly reason: "api_timeout";
966
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
967
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
968
+ readonly retryable: true;
969
+ readonly recovery: "Retry with a smaller limit so the upstream assembles a lighter page.";
878
970
  }], {
879
971
  readonly applied_dimension: import("zod").ZodString;
880
972
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -917,6 +1009,12 @@ export declare const allToolDefinitions: readonly [import("@cyanheads/mcp-ts-cor
917
1009
  readonly when: "USAspending.gov API is unreachable or returns an error.";
918
1010
  readonly retryable: true;
919
1011
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
1012
+ }, {
1013
+ readonly reason: "api_timeout";
1014
+ readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.Timeout;
1015
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
1016
+ readonly retryable: true;
1017
+ readonly recovery: "Retry with an agency_identifier set and a smaller limit to lighten the query.";
920
1018
  }], {
921
1019
  readonly totalCount: import("zod").ZodOptional<import("zod").ZodNumber>;
922
1020
  readonly page: import("zod").ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmBrB,CAAC"}
@@ -6,10 +6,10 @@ import { z } from '@cyanheads/mcp-ts-core';
6
6
  import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
7
7
  export declare const listAgenciesTool: import("@cyanheads/mcp-ts-core").ToolDefinition<z.ZodObject<{
8
8
  sort: z.ZodDefault<z.ZodEnum<{
9
- obligated_amount: "obligated_amount";
10
- outlay_amount: "outlay_amount";
11
9
  agency_name: "agency_name";
12
10
  budget_authority_amount: "budget_authority_amount";
11
+ obligated_amount: "obligated_amount";
12
+ outlay_amount: "outlay_amount";
13
13
  }>>;
14
14
  order: z.ZodDefault<z.ZodEnum<{
15
15
  asc: "asc";
@@ -32,6 +32,12 @@ export declare const listAgenciesTool: import("@cyanheads/mcp-ts-core").ToolDefi
32
32
  readonly when: "USAspending.gov API is unreachable or returns an error.";
33
33
  readonly retryable: true;
34
34
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
35
+ }, {
36
+ readonly reason: "api_timeout";
37
+ readonly code: JsonRpcErrorCode.Timeout;
38
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
39
+ readonly retryable: true;
40
+ readonly recovery: "Retry the request; this listing is one fixed payload with nothing to narrow.";
35
41
  }], {
36
42
  readonly agency_count: z.ZodNumber;
37
43
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"list-agencies.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-agencies.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6G3B,CAAC"}
1
+ {"version":3,"file":"list-agencies.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-agencies.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoH3B,CAAC"}
@@ -58,6 +58,13 @@ export const listAgenciesTool = tool('usaspending_list_agencies', {
58
58
  retryable: true,
59
59
  recovery: 'The API may be temporarily down. Retry the request after a few seconds.',
60
60
  },
61
+ {
62
+ reason: 'api_timeout',
63
+ code: JsonRpcErrorCode.Timeout,
64
+ when: 'USAspending.gov did not respond before the request deadline elapsed.',
65
+ retryable: true,
66
+ recovery: 'Retry the request; this listing is one fixed payload with nothing to narrow.',
67
+ },
61
68
  ],
62
69
  async handler(input, ctx) {
63
70
  ctx.log.info('usaspending_list_agencies', { sort: input.sort, order: input.order });
@@ -1 +1 @@
1
- {"version":3,"file":"list-agencies.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/list-agencies.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI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ACX,CAAC,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;YACjF,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,YAAY,MAAM,CAAC,CAAC,WAAW,IAAI,KAAK,MAAM,MAAM,MAAM,SAAS,MAAM,OAAO,IAAI,CAC9J,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
@@ -80,6 +80,12 @@ export declare const searchAwardsTool: import("@cyanheads/mcp-ts-core").ToolDefi
80
80
  readonly when: "USAspending.gov API is unreachable or returns an error.";
81
81
  readonly retryable: true;
82
82
  readonly recovery: "The API may be temporarily down. Retry the request after a few seconds.";
83
+ }, {
84
+ readonly reason: "api_timeout";
85
+ readonly code: JsonRpcErrorCode.Timeout;
86
+ readonly when: "USAspending.gov did not respond before the request deadline elapsed.";
87
+ readonly retryable: true;
88
+ readonly recovery: "Narrow the search — a shorter time_period, fewer award_type_codes, or a smaller limit — then retry.";
83
89
  }, {
84
90
  readonly reason: "pagination_limit_exceeded";
85
91
  readonly code: JsonRpcErrorCode.ValidationError;
@@ -1 +1 @@
1
- {"version":3,"file":"search-awards.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAyClF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgiB3B,CAAC"}
1
+ {"version":3,"file":"search-awards.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/search-awards.tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAmB,MAAM,+BAA+B,CAAC;AAyClF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwiB3B,CAAC"}
@@ -256,6 +256,13 @@ export const searchAwardsTool = tool('usaspending_search_awards', {
256
256
  retryable: true,
257
257
  recovery: 'The API may be temporarily down. Retry the request after a few seconds.',
258
258
  },
259
+ {
260
+ reason: 'api_timeout',
261
+ code: JsonRpcErrorCode.Timeout,
262
+ when: 'USAspending.gov did not respond before the request deadline elapsed.',
263
+ retryable: true,
264
+ recovery: 'Narrow the search — a shorter time_period, fewer award_type_codes, or a smaller limit — then retry.',
265
+ },
259
266
  {
260
267
  reason: 'pagination_limit_exceeded',
261
268
  code: JsonRpcErrorCode.ValidationError,