Skip to main content
Glama
imbenrabi

Financial Modeling Prep MCP Server

getSMA

Read-onlyIdempotent

Calculate the Simple Moving Average for any stock to analyze price trends and identify potential entry or exit signals. Input stock symbol, period length, and timeframe for customized SMA data.

Instructions

Calculate the Simple Moving Average (SMA) for a stock using the FMP SMA API. This tool helps users analyze trends and identify potential buy or sell signals based on historical price data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol
periodLengthYesPeriod length for the indicator
timeframeYesTimeframe (1min, 5min, 15min, 30min, 1hour, 4hour, 1day)
from_dateNoStart date (YYYY-MM-DD)
toNoEnd date (YYYY-MM-DD)
Behavior3/5

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

Annotations already provide readOnlyHint, idempotentHint, openWorldHint, so description carries low burden. It adds no extra behavioral context (e.g., data freshness, period constraints), but does not contradict annotations.

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?

Two sentences, front-loaded with purpose, no fluff. Every word contributes value.

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

Completeness3/5

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

No output schema exists, but description omits what the tool returns (e.g., SMA values). Also lacks explanation of optional date parameters behavior. Sufficient for experienced users but not complete.

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?

Schema coverage is 100% with descriptions on all parameters. The description does not add meaning beyond what the schema already provides, meeting the baseline.

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 calculates SMA for a stock and mentions trend analysis, but it does not differentiate from sibling tools like getEMA or getWMA, which have similar purposes.

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?

No guidance is given on when to use SMA vs other indicators, nor any exclusions or prerequisites. The generic 'analyze trends and identify signals' applies to many tools.

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/imbenrabi/Financial-Modeling-Prep-MCP-Server'

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