Retrieves sector P/E ratios by exchange and sector using Octagon MCP. Helps compare company valuations to sector benchmarks and analyze market-wide valuation trends.
Ships in octagon-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Retrieve price-to-earnings ratios by sector and exchange using the Octagon MCP server.
Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.
Determine your query parameters:
Use the octagon-agent tool with a natural language prompt:
Retrieve the latest sector P/E ratios for <DATE>, filtered by exchange <EXCHANGE> and sector <SECTOR>.
MCP Call Format:
{
"server": "octagon-mcp",
"toolName": "octagon-agent",
"arguments": {
"prompt": "Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology."
}
}
The agent returns sector P/E data:
| Metric | Value |
|---|---|
| Sector | Technology |
| Exchange | NASDAQ |
| P/E Ratio | 58.77 |
| Date | 2025-02-03 |
Data Sources: octagon-stock-data-agent
See references/interpreting-results.md for guidance on:
Specific Sector and Exchange:
Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology.
All Sectors on Exchange:
Get P/E ratios for all sectors on the NYSE.
Sector Comparison:
Compare P/E ratios for Technology, Healthcare, and Financials sectors.
Historical Trend:
What is the historical P/E trend for the Technology sector on NASDAQ?
Cross-Exchange:
Compare Technology sector P/E ratios on NYSE vs. NASDAQ.
P/E Ratio = Stock Price / Earnings Per Share
For sectors:
Sector P/E = Weighted Average P/E of all stocks in the sector
| Type | Description |
|---|---|
| Trailing P/E | Based on past 12 months earnings |
| Forward P/E | Based on estimated future earnings |
| GAAP P/E | Using GAAP earnings |
| Non-GAAP P/E | Using adjusted earnings |
| Sector | Typical P/E Range |
|---|---|
| Technology | 25-60 |
| Healthcare | 18-35 |
| Financials | 10-18 |
| Consumer Discretionary | 15-30 |
| Consumer Staples | 18-25 |
| Industrials | 15-25 |
| Energy | 8-20 |
| Utilities | 15-22 |
| Real Estate | 30-50 |
| Materials | 12-20 |
| Communications | 15-25 |
| Sector | P/E Tendency | Reason |
|---|---|---|
| Technology | Higher | Growth expectations |
| Financials | Lower | Mature, regulated |
| Utilities | Moderate | Stable, dividend-focused |
| Healthcare | Variable | Mix of growth/value |
| Exchange | Focus |
|---|---|
| NYSE | Large-cap, established |
| NASDAQ | Tech-heavy, growth |
| AMEX | Smaller companies, ETFs |
| Factor | NYSE | NASDAQ |
|---|---|---|
| Tech Weight | Lower | Higher |
| Average P/E | Generally lower | Generally higher |
| Growth vs. Value | More balanced | Growth-tilted |
| Comparison | Interpretation |
|---|---|
| Company P/E < Sector P/E | Potentially undervalued or issues |
| Company P/E = Sector P/E | Fairly valued relative to sector |
| Company P/E > Sector P/E | Premium valuation or overvalued |
Premium/Discount = (Company P/E - Sector P/E) / Sector P/E × 100%
| Sector P/E vs. History | Interpretation |
|---|---|
| Above 10-year average | Potentially elevated |
| At 10-year average | Normal valuation |
| Below 10-year average | Potentially attractive |
| Phase | Typical Sector P/E Behavior |
|---|---|
| Early Recovery | Rising from lows |
| Mid-Cycle | Moderate, stable |
| Late Cycle | Often elevated |
| Recession | Compressed or distorted |
| Comparison | Use |
|---|---|
| Tech vs. Financials | Growth vs. value |
| Cyclical vs. Defensive | Risk appetite |
| High vs. Low P/E | Market expectations |
| Signal | Meaning |
|---|---|
| Tech P/E rising faster | Growth favored |
| Value sectors rising | Risk-off rotation |
| Convergence | Normalization |
| Divergence | Theme-driven market |
| Factor | Consideration |
|---|---|
| Earnings season | P/E updates with new earnings |
| Price movements | Daily fluctuation |
| Index rebalancing | Composition changes |
| Source | May Differ On |
|---|---|
| Weighting | Market-cap vs. equal |
| Earnings | Trailing vs. forward |
| Constituents | Index composition |
Is AAPL's P/E reasonable compared to the Technology sector?
Which sectors have the lowest P/E ratios currently?
Are Technology sector valuations elevated compared to history?
How do my holdings' P/E ratios compare to their sectors?
Compare apples to apples: Same sector, similar companies.
Consider growth: High P/E may be justified by high growth.
Check historical range: Current vs. typical levels.
Look at earnings quality: P/E only as good as earnings.
Cross-reference exchanges: Same sector, different exchanges.
Watch for outliers: Negative earnings distort averages.
| Skill | Combined Use |
|---|---|
| financial-metrics-analysis | Company P/E vs. sector |
| income-statement | Earnings driving P/E |
| stock-quote | Current price context |
| analyst-estimates | Forward P/E calculation |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/octagon-skills:sector-pe-ratiosfrom octagon-skills
octagon-skills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin octagon-skills67 skills in this plugin
/analyst-estimatesRetrieve analyst financial estimates including Revenue and EPS projections with low/high ranges and analyst coverage. Use when analyzing forward expectations, consensus estimates, valuation inputs, or comparing projections to historical performance./balance-sheetRetrieve detailed balance sheet statement data including Total Assets, Current Assets, Non-Current Assets, Liabilities, Equity, and Net Debt for public companies. Use when analyzing financial position, capital structure, or leverage metrics./balance-sheet-growthRetrieve year-over-year growth in balance sheet items including Total Assets, Total Liabilities, Shareholders Equity, Cash, and Inventories. Use when analyzing company financial position trends, capital structure changes, or liquidity management.Other plugins' skills for the same job