Skip to main content
Glama
Financial Modeling Prep MCP Server

Financial Modeling Prep MCP Server

getSectorPESnapshot

Read-onlyIdempotent

Retrieve price-to-earnings ratios for sectors by date, sector, or exchange to compare valuation levels and assess market valuations.

Instructions

Retrieve the price-to-earnings (P/E) ratios for various sectors using the Sector P/E Snapshot API. Compare valuation levels across sectors to better understand market valuations.

Input Schema

NameRequiredDescriptionDefault
dateYesDate (YYYY-MM-DD)
sectorNoSector (e.g., Energy)
exchangeNoExchange (e.g., NASDAQ)

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. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, idempotent, open-world operation. The description adds that the result is a snapshot of sector P/E ratios, but it does not explain freshness, the significance of the required date, or the response shape beyond the basic metric.

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?

Two compact sentences, with the core retrieval purpose front-loaded. The use case follows clearly, though the explicit API name is slightly redundant and could be dropped without losing meaning.

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?

For a simple read-only snapshot tool with complete schema descriptions and safety annotations, the definition is largely sufficient. It still lacks guidance on choosing between sector, industry, and historical P/E tools, which matters given the crowded sibling set.

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%, so the date, sector, and exchange parameters are already documented in the input schema. The description does not add any parameter-specific meaning beyond what the schema provides, which fits the baseline 3 when the schema handles the detail.

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: retrieve P/E ratios for sectors. It does not differentiate this tool from close siblings such as getIndustryPESnapshot or getHistoricalSectorPE, so it stops short of a 5.

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 gives an implied use case—comparing valuation levels across sectors—but never says when to choose this over the industry or historical P/E siblings. It provides context, but no explicit routing or exclusions.

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