Skip to main content
Glama

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
NameRequiredDescriptionDefault
daysNoNumber of days to look ahead (default 14)
categoryNoCategory filter (e.g. inflation, employment)
limitNoMaximum results (default 25)

Implementation Reference

  • 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}` }],
        };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/carrierone/verilexdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server