Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getHistoricalSectorPerformance

Read-onlyIdempotent

Retrieve past performance data for a specific market sector across exchanges and date ranges, so you can compare how sectors have performed over time.

Instructions

Access historical sector performance data using the Historical Market Sector Performance API. Review how different sectors have performed over time across various stock exchanges.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sector": "<sector>"
    },
    "name": "getHistoricalSectorPerformance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date (YYYY-MM-DD)
sectorYesSector (e.g., Energy)
exchangeNoExchange (e.g., NASDAQ)
from_dateNoStart date (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv2.6.10
    • removedInput schema / properties / from
      Removed value: -{
      -  "description": "Start date (YYYY-MM-DD)",
      -  "type": "string"
      -}
    • addedInput schema / properties / from_date
      Added value: +{
      +  "description": "Start date (YYYY-MM-DD)",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered by structured data. The description adds nothing beyond that: no note on pagination, rate limits, default date range, or what a date-range omission returns. With annotations present, the bar is lower, but the description contributes essentially no behavioral context.

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

Conciseness3/5

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

Two short sentences, but the second largely restates the first ('Review how different sectors have performed over time' vs 'historical sector performance data'), with only 'across various stock exchanges' adding new information. It is not padded, but one of the two sentences does not earn its place.

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

Completeness4/5

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

There is no output schema and annotations are provided, so the description need not explain return values. However, for a four-parameter analytic tool it omits the one thing the agent cannot get elsewhere cheaply: that sector is required and dates are optional, plus what the performance figures represent. Adequate but with a clear gap.

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 description coverage is 100%, with each of the four parameters documented including the YYYY-MM-DD format and examples for sector and exchange. The description adds no meaning beyond that — it never mentions that sector is required, that from_date/to form a range, or how exchange scoping behaves — so baseline 3 applies.

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?

States a specific verb and resource ('Access historical sector performance data'), and the word 'historical' plus 'sector' distinguishes it from near-siblings like getSectorPerformanceSnapshot and getHistoricalIndustryPerformance. It does not, however, name or explicitly contrast those siblings, leaving the agent to infer the boundary.

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 second sentence ('Review how different sectors have performed over time') vaguely implies an analytical use case but gives no when-to-use vs when-not guidance and never points to alternatives such as the snapshot or industry variants. Nothing tells the agent how this differs from getHistoricalIndustryPerformance or getSectorPerformanceSnapshot in a decision-relevant way.

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

Deploy Server

Other Tools