Skip to main content
Glama

Technical indicators

technical_indicators
Read-onlyIdempotent

Return technical indicators of a company's listing: simple and exponential moving averages, RSI, MACD, Bollinger bands, average true range and the close range. Computed by us from split-adjusted end-of-day bars built from trades at IEX only, with splits from the company's SEC filings. indicators takes ids such as sma_50, ema_20, rsi_14, macd, bollinger_20, atr_14, range_252 (period 2 to 400, at most 12 ids). data.latest holds the newest session as values with proofs; data.items is the series, newest first. Prices are end of day, published the day after the session: not real time, not the consolidated tape. The values are descriptive statistics, not buy or sell signals and not advice. Use it when asked for a moving average, RSI, MACD or a 52-week range.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "company": "ticker:AAPL",
      "indicators": "sma_50,sma_200,rsi_14"
    },
    "name": "technical_indicators"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast session to use; default the newest (YYYY-MM-DD).
fromNoOldest session to return (YYYY-MM-DD).
as_ofNoKnowledge date or timestamp (YYYY-MM-DD or RFC 3339). The answer is what FinancialMD knew at that instant: only facts whose known interval contains as_of. Omit for the current view.
limitNoSessions per page, newest first; default 30.
cursorNoOpaque cursor from a previous page (data.next_cursor).
tickerNoOne listing of the company; default the primary listing.
companyYesCompany identifier: a FinancialMD id ("fmd_01H..."), an SEC CIK ("cik:320193"), or a ticker ("ticker:AAPL", optionally with the MIC "ticker:AAPL.XNAS"). A bare ticker like "AAPL" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI ("lei:IOG4E947OATN0KJYSD45") or its fmd_ id.
indicatorsNoComma-separated indicator ids; default sma_20, sma_50, sma_200, ema_12, ema_26, rsi_14, macd, bollinger_20.

Output Schema

NameRequiredDescriptionDefault
dataNo{ listing, source { venue, consolidated, delay }, range, adjust, indicators: [{ id, kind, period, outputs, unit, warmup_sessions, ready, method }], latest { date, close, values { <output>: value object or null } }, items: [{ date, close, values, proof }], next_cursor, generated_by, method_version, note }
metaNoRequest metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base.
errorNoPresent only on isError results: the API error code and message plus remedy hints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial context beyond them: computation from split-adjusted end-of-day bars, trades from IEX only, splits sourced from SEC filings, publication the day after the session, not real time, not the consolidated tape. It also preempts misuse by stating the values are descriptive statistics and not advice. That is exactly the provenance and latency information an agent needs before quoting numbers.

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

Conciseness4/5

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

Front-loads the purpose, then provenance, then response shape, then the usage trigger — a sensible order. The middle sentence is dense and runs long, packing computation, data source, split handling and latency into one clause chain, but every element carries information an agent would otherwise guess wrong.

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

Completeness5/5

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

Despite 8 parameters and a multi-indicator response, the description plus the 100%-covered schema and the output schema leave nothing an agent must infer: sourcing, freshness, latency, id format, period bounds and pagination are all addressed. The only omitted details (cursor mechanics, as_of point-in-time semantics) are fully specified in the schema itself.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it constrains indicator periods to 2–400, caps the request at 12 ids, and explains the two-part response shape (data.latest for the newest session with proofs, data.items as newest-first series). It does not cover from/to/as_of/cursor/limit semantics, which the schema already handles well.

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?

States a specific verb and resource ("Return technical indicators of a company's listing") and enumerates the exact indicator families covered, including the id vocabulary (sma_50, ema_20, rsi_14, macd, bollinger_20, atr_14, range_252). An agent can distinguish this from sibling tools like financials_standardized or company_kpis without opening the schema.

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

Usage Guidelines4/5

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

Ends with an explicit trigger: "Use it when asked for a moving average, RSI, MACD or a 52-week range," which maps user phrasing onto the tool. It gives no exclusions or named alternatives (e.g., where to go for raw price history or forward-looking ratios), so routing away from siblings is left 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