Skip to main content
Glama
jackdark425

Financial Modeling Prep (FMP) MCP Server

by jackdark425

get_technical_indicator_rsi

Calculate the Relative Strength Index (RSI) to identify overbought or oversold stock conditions based on price momentum for informed trading decisions.

Instructions

Get Relative Strength Index (RSI) technical indicator

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock ticker symbol
timeframeYesTimeframe for technical analysis
periodNoPeriod length

Implementation Reference

  • The handler function that performs the API call to fetch RSI technical indicator data.
    async (args: z.infer<typeof TechnicalIndicatorSchema>) => {
      try {
        const period = args.period || 14;
        const data = await fetchFMP<TechnicalIndicator[]>(
          `/technical-indicators/rsi?symbol=${args.symbol.toUpperCase()}&timeframe=${args.timeframe}&periodLength=${period}`
        );
        return jsonResponse(data);
      } catch (error) {
        return errorResponse(error);
      }
    }
  • The registration of the 'get_technical_indicator_rsi' tool with the MCP server.
    server.registerTool(
      'get_technical_indicator_rsi',
      {
        description: 'Get Relative Strength Index (RSI) technical indicator',
        inputSchema: TechnicalIndicatorSchema,
      },
      async (args: z.infer<typeof TechnicalIndicatorSchema>) => {
        try {
          const period = args.period || 14;
          const data = await fetchFMP<TechnicalIndicator[]>(
            `/technical-indicators/rsi?symbol=${args.symbol.toUpperCase()}&timeframe=${args.timeframe}&periodLength=${period}`
          );
          return jsonResponse(data);
        } catch (error) {
          return errorResponse(error);
        }
      }
    );
  • Input validation schema for the technical indicator tools, including RSI.
    const TechnicalIndicatorSchema = z.object({
      symbol: z.string().describe('Stock ticker symbol'),
      timeframe: TimeframeSchema.describe('Timeframe for technical analysis'),
      period: z.number().optional().describe('Period length'),
    });
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states what the tool does ('Get RSI') without adding any behavioral context such as data sources, rate limits, authentication needs, error handling, or what the output looks like. This is a significant gap for a tool with no annotation coverage, making it hard for an agent to predict behavior beyond the basic action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence: 'Get Relative Strength Index (RSI) technical indicator.' It's front-loaded with the core purpose, has zero wasted words, and is appropriately sized for a straightforward tool. Every part of the sentence earns its place by clearly stating the action and resource.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of financial data tools and the lack of annotations and output schema, the description is incomplete. It doesn't cover behavioral aspects like data freshness, error cases, or output format, which are crucial for an agent to use the tool effectively. The description alone is insufficient for a tool with no structured support beyond the input schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with clear documentation for each parameter (symbol, timeframe, period). The description doesn't add any meaning beyond what the schema provides—it doesn't explain parameter interactions, default values, or usage examples. Given the high schema coverage, a baseline score of 3 is appropriate, as the schema does the heavy lifting without extra value from the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get Relative Strength Index (RSI) technical indicator.' It specifies the verb ('Get') and the resource ('Relative Strength Index (RSI) technical indicator'), making it easy to understand what the tool does. However, it doesn't explicitly differentiate from its sibling tools like 'get_technical_indicator_ema' or 'get_technical_indicator_sma' beyond naming the specific indicator.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when RSI is appropriate compared to other technical indicators (e.g., EMA, SMA) or other financial data tools in the sibling list. There's no context about use cases, prerequisites, or exclusions, leaving the agent with minimal usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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