Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_sector_performance

Retrieve current sector performance data to analyze market trends and identify leading or lagging sectors for investment decisions.

Instructions

Get current sector performance snapshot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (optional, defaults to latest)

Implementation Reference

  • The 'get_sector_performance' tool is registered and implemented directly in src/tools/market.ts. It fetches a sector performance snapshot using the fetchFMP utility.
    server.registerTool(
      'get_sector_performance',
      {
        description: 'Get current sector performance snapshot',
        inputSchema: SectorPerformanceSchema,
      },
      async (args: z.infer<typeof SectorPerformanceSchema>) => {
        try {
          const date = args.date || new Date().toISOString().split('T')[0];
          const data = await fetchFMP<SectorPerformance[]>(`/sector-performance-snapshot?date=${date}`);
          return jsonResponse(data);
        } catch (error) {
          return errorResponse(error);
        }
      }
    );

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/jackdark425/aigroup-fmp-mcp'

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