query_releases
Retrieve upcoming economic data releases with dates, forecasts, and impact analysis from FRED, BLS, and BEA sources to inform financial decisions.
Instructions
Get upcoming economic data releases. Shows release dates, expected impact, prior values, and consensus forecasts. Cost: $0.01 per query. Source: FRED, BLS, BEA.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look ahead (default 14) | |
| category | No | Category filter (e.g. inflation, employment) | |
| limit | No | Maximum results (default 25) |
Implementation Reference
- src/tools/econ.ts:95-152 (handler)Registration and implementation of the 'query_releases' tool, which fetches upcoming economic data releases from the econ API.
server.registerTool( "query_releases", { title: "Query Economic Releases", description: "Get upcoming economic data releases. Shows release dates, expected impact, " + "prior values, and consensus forecasts. " + "Cost: $0.01 per query. Source: FRED, BLS, BEA.", inputSchema: { days: z .number() .int() .min(1) .max(90) .optional() .describe("Number of days to look ahead (default 14)"), category: z .string() .optional() .describe("Category filter (e.g. inflation, employment)"), limit: z .number() .int() .min(1) .max(100) .optional() .describe("Maximum results (default 25)"), }, }, async ({ days, category, limit }) => { const res = await apiGet<EconQueryResponse>("/api/v1/econ/releases", { days: days ?? 14, category, limit: limit ?? 25, }); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } const { count, data } = res.data; const warn = stalenessWarning(res); const summary = `${warn}Found ${count} upcoming release(s).`; const json = JSON.stringify(data, null, 2); return { content: [{ type: "text" as const, text: `${summary}\n\n${json}` }], }; }, );