Skip to main content
Glama

get_sector_price_performance

Read-only

Price returns by sector over 1 day, 1 week, 1 month, 3 months, 6 months, 12 months and the year to date. Each row gives both the median company's return and the market-cap-weighted return. Use it for questions like "which sectors are leading this month" or "how has Energy done YTD, S&P 500 vs the rest".

Both filters are optional. sp_index=true covers only S&P 500 members, false covers only
companies outside the S&P 500, and leaving it out covers all of them. Unset filters are
left out of the request.

Returns {"filters", "count", "rows", "note"}, one row per sector. A row is {sector,
universe, as_of, n_symbols, median_return_1d … _ytd, mcap_weighted_return_1d … _ytd}
(windows 1d, 1w, 1m, 3m, 6m, 12m, ytd).
- Returns are in PERCENT, NOT fractions: 1.25 = +1.25%, -3.4 = -3.4%. Show them as they
  are; do not multiply by 100.
- The median shows the typical company. The market-cap-weighted figure is driven by the
  largest names. When the two differ a lot, a few mega-caps are carrying (or dragging)
  the sector.
- as_of is the date the returns are measured to. n_symbols is the number of companies
  behind the row.

FLOW: pair with get_sector_volume_performance to see whether a move came on rising volume.
Use get_earnings_season_cohort(sector=...) to find the companies behind a move.

An empty result is a valid answer, not an error: `note` is set only then. A 422 means a
filter failed validation. A 401 means the sign-in expired (your MCP client re-runs
OAuth). A 429 means the rate limit or the plan quota was hit. Requires auth (your MCP
client attaches the OAuth bearer automatically); counts toward plan quota.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_sector_price_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectorsNoOnly these sectors, e.g. ["Technology", "Energy"]. Omit for all 11.
sp_indexNotrue = only S&P 500 members; false = only non-members. Omit for both.

Output Schema

NameRequiredDescriptionDefault
noteNoSet only when no rows came back: an empty result is a valid answer.
rowsYes
countYesRows returned, one per sector.
filtersYesThe request body sent to the backend (unset filters omitted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true, so the description carries the rest and does so thoroughly: percent-not-fraction units with an explicit 'do not multiply by 100' warning, interpretation guidance for when median and mcap-weighted diverge, auth expectations, quota/rate-limit consumption, and the meaning of 422/401/429 responses. This is behavior beyond what any structured field declares.

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?

Front-loaded with what the tool returns, then filters, then response shape, then flow, then errors — a sensible progression with bullet formatting that scans well. Minor waste: the full row-field enumeration duplicates an output schema that already exists, and the filter semantics are restated from the schema.

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

Completeness5/5

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

Complete for a two-parameter, read-only analytics call: units, row structure, empty-result handling, error codes, auth, and quota impact are all covered. Since an output schema exists, the agent does not need the description to explain return values, yet the extra unit warning is still genuinely load-bearing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes slightly further by spelling out the three-state semantics of sp_index (true/false/unset = both) and noting that unset filters are omitted from the request. The sectors filter is only lightly touched, but the schema handles the enum fully.

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?

States a specific resource (sector price returns) plus the exact time windows (1d, 1w, 1m, 3m, 6m, 12m, ytd) and the two return measures reported per row (median company and market-cap-weighted). Concrete example questions ('which sectors are leading this month') make the intended scope instantly recognizable and distinguish it from the volume-performance sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit usage contexts via example questions, plus a FLOW section that routes the agent to get_sector_volume_performance for volume confirmation and get_earnings_season_cohort(sector=...) to drill into constituent companies. It also tells the agent how to read an empty result ('a valid answer, not an error'), which prevents a wrong fallback path.

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