Skip to main content
Glama

xpay✦ Finance Collection

getEMA

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of disclosing behavior. It only mentions the use of the FMP EMA API and historical price data, but does not describe output format, data range behavior, authentication needs, or whether the result is a single value or time series. This is a significant gap for a tool with no structured behavior context.

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 concise, consisting of two sentences. The first sentence states the function, and the second adds a brief use case. There is no redundancy or filler, and it is appropriately front-loaded.

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?

The tool has no output schema and no annotations, so the description should explain what the tool returns. It only says 'calculate the EMA' without indicating whether the output is a single value, a series, or how it is structured. This leaves the agent uncertain about the result, especially given the optional from/to date parameters that suggest a time series.

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 schema description coverage is 100%, so the input schema already documents all five parameters (symbol, periodLength, timeframe, from, to) with descriptions. The tool description adds no additional parameter-specific meaning, so it does not enhance what the schema provides, but also does not need to compensate.

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

Purpose5/5

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

The description clearly states the tool calculates the Exponential Moving Average (EMA) for a stock, using a specific verb ('Calculate') and resource ('EMA for a stock'). This distinguishes it from sibling tools like getSMA, getDEMA, and getTEMA, making the purpose unambiguous.

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

Usage Guidelines3/5

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

The description provides implied usage context by mentioning trend analysis and buy/sell signals, but it does not explicitly state when to prefer this tool over alternatives like getSMA or getRSI. No exclusions or alternative tool names are mentioned, leaving usage guidance somewhat implicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources