batch-market-cap

Retrieve market capitalization data for multiple companies at once using Octagon MCP. Use when comparing valuations across peers, screening by market cap, or analyzing a portfolio's composition by company size.

27 stars

Best use case

batch-market-cap is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Retrieve market capitalization data for multiple companies at once using Octagon MCP. Use when comparing valuations across peers, screening by market cap, or analyzing a portfolio's composition by company size.

Teams using batch-market-cap should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/batch-market-cap/SKILL.md --create-dirs "https://raw.githubusercontent.com/OctagonAI/skills/main/skills/batch-market-cap/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/batch-market-cap/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How batch-market-cap Compares

Feature / Agentbatch-market-capStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Retrieve market capitalization data for multiple companies at once using Octagon MCP. Use when comparing valuations across peers, screening by market cap, or analyzing a portfolio's composition by company size.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Batch Market Cap

Retrieve market capitalization data for multiple companies in a single query using the Octagon MCP server.

## Prerequisites

Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See [references/mcp-setup.md](references/mcp-setup.md) for installation instructions.

## Workflow

### 1. Prepare Company List

Compile the list of ticker symbols you want to analyze (e.g., AAPL, MSFT, GOOGL).

### 2. Execute Query via Octagon MCP

Use the `octagon-agent` tool with a natural language prompt:

```
Retrieve market capitalization data for the following companies: <TICKER1>, <TICKER2>, <TICKER3>.
```

**MCP Call Format:**

```json
{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve market capitalization data for the following companies: AAPL, MSFT, GOOG."
  }
}
```

### 3. Expected Output

The agent returns a structured table with market cap data:

| Company | Ticker | Market Cap (USD) | Source |
|---------|--------|------------------|--------|
| Apple | AAPL | $2.99986 trillion | Octagon Companies Agent |
| Microsoft | MSFT | $3.143 trillion | Companies Market Cap |
| Alphabet | GOOGL | $2.00018 trillion | Octagon Companies Agent |

**Data Sources**: octagon-companies-agent, octagon-financials-agent, octagon-web-search-agent

### 4. Interpret Results

See [references/interpreting-results.md](references/interpreting-results.md) for guidance on:
- Comparing market caps across companies
- Understanding size categories
- Analyzing relative valuations
- Tracking market cap changes

## Example Queries

**Basic Batch Query:**
```
Retrieve market capitalization data for the following companies: AAPL, MSFT, GOOG.
```

**Sector Comparison:**
```
Get market caps for tech giants: AAPL, MSFT, GOOGL, AMZN, META, NVDA.
```

**Portfolio Analysis:**
```
What are the market capitalizations of TSLA, F, GM, and RIVN?
```

**Industry Comparison:**
```
Compare market caps of major banks: JPM, BAC, WFC, C, GS.
```

**Index Components:**
```
Get market caps for the top 10 S&P 500 companies by weight.
```

**International Comparison:**
```
Compare market caps of AAPL, SMSN.IL (Samsung), TSM, and ASML.
```

## Market Cap Categories

### Size Classifications

| Category | Market Cap Range |
|----------|------------------|
| Mega-cap | >$200 billion |
| Large-cap | $10B - $200B |
| Mid-cap | $2B - $10B |
| Small-cap | $300M - $2B |
| Micro-cap | $50M - $300M |
| Nano-cap | <$50M |

### Category Characteristics

| Category | Typical Traits |
|----------|----------------|
| Mega-cap | Market leaders, global reach, stable |
| Large-cap | Established, diversified, moderate growth |
| Mid-cap | Growth potential, less coverage |
| Small-cap | Higher growth, higher volatility |
| Micro-cap | Speculative, limited liquidity |

## Comparative Analysis Framework

### Peer Comparison

| Analysis | Purpose |
|----------|---------|
| Absolute Size | Rank by market cap |
| Relative Size | Ratio to peers |
| Size Distribution | Concentration analysis |
| Historical Rank | Position changes |

### Industry Context

| Comparison | What It Shows |
|------------|---------------|
| vs. Industry Leader | Distance from top |
| vs. Industry Median | Above/below average |
| vs. Sector Total | Market share proxy |

### Valuation Implications

| Scenario | Interpretation |
|----------|----------------|
| Higher market cap, lower revenue | Premium valuation |
| Lower market cap, higher revenue | Discount valuation |
| Similar market cap, different earnings | P/E differential |

## Use Cases

### Portfolio Allocation

| Use | Description |
|-----|-------------|
| Concentration Analysis | Largest holdings by cap |
| Diversification Check | Size mix across holdings |
| Rebalancing | Adjust for cap changes |

### Competitive Analysis

| Use | Description |
|-----|-------------|
| Market Leadership | Largest in industry |
| Relative Positioning | Size vs. competitors |
| Growth Comparison | Cap changes over time |

### Screening

| Use | Description |
|-----|-------------|
| Size Filter | Include/exclude by cap |
| Category Selection | Target specific sizes |
| Index Eligibility | Meets cap requirements |

## Market Cap Calculations

### Basic Formula

```
Market Cap = Share Price × Shares Outstanding
```

### Factors Affecting Market Cap

| Factor | Impact |
|--------|--------|
| Price Change | Direct proportional effect |
| Share Buybacks | Reduces shares, concentrates value |
| New Issuance | Dilutes if price doesn't rise |
| Stock Splits | No effect (price adjusts) |

### Fully Diluted Market Cap

| Component | Description |
|-----------|-------------|
| Basic Shares | Currently outstanding |
| Options | Employee stock options |
| Warrants | Convertible instruments |
| Convertibles | Convertible debt/preferred |

## Data Considerations

### Source Variations

| Factor | Consideration |
|--------|---------------|
| Timing | Real-time vs. delayed data |
| Currency | USD conversion rates |
| Share Count | Basic vs. diluted |
| Updates | Frequency of refresh |

### Handling Discrepancies

| Issue | Approach |
|-------|----------|
| Different sources | Note the variance |
| Different dates | Use consistent timing |
| Currency mix | Convert to single currency |
| Missing data | Flag unavailable items |

## Analysis Tips

1. **Use consistent data**: Same source/date for fair comparison.

2. **Consider context**: Industry norms for market cap.

3. **Track changes**: Market cap shifts over time.

4. **Combine with fundamentals**: P/E, P/S for valuation context.

5. **Watch for outliers**: Investigate unusual sizes.

6. **Global perspective**: Different markets, different scales.

## Integration with Other Skills

| Skill | Combined Use |
|-------|--------------|
| stock-quote | Market cap + current price |
| income-statement | Market cap vs. revenue/earnings |
| financial-metrics-analysis | Valuation multiples |
| analyst-estimates | Market cap vs. price targets |

Related Skills

prediction-markets-analysis

27
from OctagonAI/skills

Generate deep research reports on prediction market events using the Octagon Prediction Markets Agent. Combines real-time Kalshi market data with AI-driven analysis to surface price drivers, compare market vs. model probabilities, and identify potential mispricings across 120+ active markets.

market-analyst-master

27
from OctagonAI/skills

Comprehensive market analyst skill that orchestrates all Octagon stock performance and market data skills. Use when conducting stock analysis, creating market reports, evaluating valuations, comparing sectors, or performing technical and sentiment analysis.

historical-market-cap

27
from OctagonAI/skills

Retrieve historical market capitalization data for any stock using Octagon MCP. Use when tracking market cap changes over time, analyzing valuation trends, identifying peak and trough valuations, and comparing historical size classifications.

earnings-market-expansion

27
from OctagonAI/skills

Identify market expansion and geographic growth plans discussed in earnings calls, including new market launches, international expansion, and product diversification strategies.

company-market-cap

27
from OctagonAI/skills

Retrieve market capitalization data for a single company using Octagon MCP. Use when you need the current market value, valuation context, or size classification for any publicly traded stock.

stock-quote

27
from OctagonAI/skills

Retrieve real-time stock quotes using Octagon MCP. Use when you need current price, day range, 52-week range, volume, market cap, and moving averages for any publicly traded stock.

stock-price-change

27
from OctagonAI/skills

Retrieve stock price change statistics across multiple time periods using Octagon MCP. Use when analyzing short-term and long-term returns, comparing performance across timeframes, and evaluating momentum and historical growth.

stock-performance

27
from OctagonAI/skills

Retrieve stock price data and performance metrics using Octagon MCP. Use when analyzing daily closing prices, trading volume, price trends, historical performance, and comparing stock movements over specific time periods.

stock-historical-index

27
from OctagonAI/skills

Retrieve full historical end-of-day price data for market indices using Octagon MCP. Use when analyzing index performance over time, tracking market trends, calculating returns, and understanding market context for individual stock analysis.

stock-grades

27
from OctagonAI/skills

Retrieve the latest stock grades and ratings from top analysts and financial institutions using Octagon MCP. Use when tracking analyst upgrades, downgrades, rating changes, and institutional sentiment over time.

sector-performance-snapshot

27
from OctagonAI/skills

Retrieve a snapshot of market sector performance using Octagon MCP. Use when analyzing sector-wide metrics including revenue, EBITDA, net income, market cap, and enterprise value for companies within a specific sector and exchange.

sector-pe-ratios

27
from OctagonAI/skills

Retrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and understanding market-wide valuation trends.