Skip to main content
Glama

xpay✦ Finance Collection

getHistoricalSectorPE

Access historical price-to-earnings (P/E) ratios for various sectors using the Historical Sector P/E API. Analyze how sector valuations have evolved over time to understand long-term trends and market shifts.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It conveys read-only retrieval of historical ratios through 'Access' and 'evolved over time,' but it does not disclose return format, data frequency, or behavior when date ranges are omitted. Given the absence of an output schema, this is a notable but not critical gap.

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?

The description is two sentences with front-loaded purpose; the first sentence is direct and informative. However, 'using the Historical Sector P/E API' is redundant filler that does not earn its place, preventing a perfect score.

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?

With no output schema and no annotations, the description should clarify what the response contains. 'P/E ratios for various sectors' is a minimal indication but lacks detail on time-series ordering, default date ranges, and sector restrictions. It is adequate for basic tool selection but not fully complete for a 4-parameter read tool.

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 input schema provides descriptions for all four parameters (100% coverage), so the description adds little beyond what is already structured. It mentions sectors and historical trends but does not elaborate on from/to or exchange semantics, so the baseline score of 3 is appropriate.

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 uses the specific verb 'Access' with the resource 'historical price-to-earnings (P/E) ratios for various sectors,' clearly stating what the tool does. The terms 'historical' and 'sector' distinguish it from sibling tools like getSectorPESnapshot (current snapshot) and getHistoricalIndustryPE (industry-level), so it differentiates effectively.

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?

The second sentence—'Analyze how sector valuations have evolved over time to understand long-term trends and market shifts'—provides a clear temporal analysis context that tells an agent when to use this tool. It does not explicitly name alternatives or exclusions, but the context is strong enough to guide selection among historical, snapshot, and industry-level siblings.

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