Skip to main content
Glama

markets

Read-onlyIdempotent

Public company and market data from SEC filings and live quotes (Yahoo): company snapshots and fundamentals, stock screens, investor portfolios from Form 13F, and US House member trades.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "markets"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoColumn to order by (default: the rank column of the preset)
as_ofNoYYYY-MM-DD: the newest daily snapshot on or before this day (for backtests). Default: the newest.
limitNoscreen: Rows to return (default 25, max 200) investor_portfolio: Max holdings returned, largest first (default 500, max 5000). politician_trades, congress_trades: Max trades returned, newest first (default 200, max 2000). politician_leaderboard: Max members (default 100, max 500).
orderNoasc | desc (default: best first)
partyNoR | D | I (only members in the current House carry a party).
actionYesWhich operation to run. snapshot = current quote and key metrics of one company, needs ticker; fundamentals = SEC fundamentals of one company over time, needs ticker; screen = daily stock screens by growth, value, range or moving average; investors = the investors whose Form 13F autario reads; investor_portfolio = one investor's holdings and moves for a quarter, needs investor; who_holds = which tracked investors hold a company, needs ticker; politicians = US House members with reported trades; politician_trades = one member's reported stock trades, needs politician; congress_trades = US House trades in one stock, needs ticker; politician_leaderboard = US House members ranked by their purchases against the S&P 500; politician_performance = trades of one member scored against the S&P 500, needs politician.
formatNoOutput wire format for this MCP call. Default 'toon' (Token-Oriented Notation, fewest tokens, best for tabular rows). 'compact' = minified JSON. 'json' = pretty JSON for readability. The REST API always returns JSON regardless.
metricNoavg_excess_since (default) | avg_excess_30 | avg_excess_90 | avg_excess_365 | hit_rate_30 | hit_rate_90 | hit_rate_365 | hit_rate_since | avg_return_since
presetNogrowth | profitability | value | near-52-week-high | near-52-week-low | below-200-week-ma | most-held-by-13f
tickerNosnapshot: Stock ticker symbol, e.g. AAPL, MSFT, INTC, NVDA, SAP, BMW fundamentals: Stock ticker, e.g. AAPL, MSFT, KO who_holds: Stock ticker, e.g. AAPL, KO, GOOGL congress_trades: Stock ticker, e.g. NVDA, AAPL, MSFT
windowNofundamentals: Time window: 1y, 3y, 5y, 10y, max, or from:to as YYYY-MM-DD:YYYY-MM-DD (either side may be empty). Default 5y. politician_trades: 30d | 90d | 1y | 2y | all (default 1y), by transaction date. congress_trades: 30d | 90d | 1y | 2y | all (default 1y).
filtersNoColumn ranges, e.g. {"net_margin":{"min":10},"pct_vs_200w_ma":{"max":-20}}. A row without the column is excluded.
metricsNosnapshot: Metrics to return: price metrics (price, open, high, low, volume, perf_1d, perf_1w, perf_1m, perf_3m, perf_1y, perf_ytd, latest_date) and/or fundamental metric keys (e.g. revenue, roe, price-to-book, dividend-yield, revenue-growth-5y) or fundamentals for every fundamental row. If omitted, returns price + perf_1d + perf_ytd. fundamentals: Fields to return (see the list above). Default: close, adj_close, revenue, net_income, eps_diluted.
quarterNoQuarter end date (2026-06-30) or label (2026-Q2). Omit for the latest reported quarter.
intervalNoRow spacing: the value known on the last trading day of each period. Default quarterly (token-efficient); daily for a backtest.
investorNoInvestor slug from markets action "investors" (e.g. berkshire-hathaway, scion-asset-management), its display name, or its SEC CIK.
min_scoredNoMinimum scored purchases a member needs for a rank (default 5).
politicianNoSlug from markets action "politicians" (josh-gottheimer-nj) or a full or last name that matches exactly one member.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"Which operation to run. snapshot = current quote and key metrics of one company, needs ticker; fundamentals = SEC fundamentals of one company over time, needs ticker; screen = daily stock screens by growth, value, range or moving average; investors = the investors whose Form 13F autario reads; investor_portfolio = one investor's holdings and moves for a quarter, needs investor; who_holds = which tracked investors hold a company, needs ticker; politicians = US House members with reported trades; politician_trades = one member's reported stock trades, needs politician; congress_trades = US House trades in one stock, needs ticker."New value: +"Which operation to run. snapshot = current quote and key metrics of one company, needs ticker; fundamentals = SEC fundamentals of one company over time, needs ticker; screen = daily stock screens by growth, value, range or moving average; investors = the investors whose Form 13F autario reads; investor_portfolio = one investor's holdings and moves for a quarter, needs investor; who_holds = which tracked investors hold a company, needs ticker; politicians = US House members with reported trades; politician_trades = one member's reported stock trades, needs politician; congress_trades = US House trades in one stock, needs ticker; politician_leaderboard = US House members ranked by their purchases against the S&P 500; politician_performance = trades of one member scored against the S&P 500, needs politician."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "snapshot",
      -  "fundamentals",
      -  "screen",
      -  "investors",
      -  "investor_portfolio",
      -  "who_holds",
      -  "politicians",
      -  "politician_trades",
      -  "congress_trades"
      -]New value: +[
      +  "snapshot",
      +  "fundamentals",
      +  "screen",
      +  "investors",
      +  "investor_portfolio",
      +  "who_holds",
      +  "politicians",
      +  "politician_trades",
      +  "congress_trades",
      +  "politician_leaderboard",
      +  "politician_performance"
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"screen: Rows to return (default 25, max 200) investor_portfolio: Max holdings returned, largest first (default 500, max 5000). politician_trades, congress_trades: Max trades returned, newest first (default 200, max 2000)."New value: +"screen: Rows to return (default 25, max 200) investor_portfolio: Max holdings returned, largest first (default 500, max 5000). politician_trades, congress_trades: Max trades returned, newest first (default 200, max 2000). politician_leaderboard: Max members (default 100, max 500)."
    • addedInput schema / properties / metric
      Added value: +{
      +  "description": "avg_excess_since (default) | avg_excess_30 | avg_excess_90 | avg_excess_365 | hit_rate_30 | hit_rate_90 | hit_rate_365 | hit_rate_since | avg_return_since",
      +  "type": "string"
      +}
    • addedInput schema / properties / min_scored
      Added value: +{
      +  "description": "Minimum scored purchases a member needs for a rank (default 5).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / party
      Added value: +{
      +  "description": "R | D | I (only members in the current House carry a party).",
      +  "type": "string"
      +}
  2. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description does add provenance: data comes from SEC filings and live Yahoo quotes, which tells an agent something about source and freshness. It says nothing about latency, rate limits, snapshot/backtest semantics, or that one invocation fans out across eleven very different operations, so added behavioral value is modest.

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?

A single dense sentence that front-loads the data domain and then lists capability groups in a scannable order; there is no filler or marketing language. It is a long sentence, but every clause maps to a real capability group and nothing is redundant.

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?

For an 18-parameter, eleven-action tool with no output schema, the description covers the capability surface but omits the operational model: that a single required 'action' selects the operation, that results are tabular rows shaped by 'format', and that 'as_of'/'window' support historical or backtest views. The richly documented schema compensates for the parameter side, but the description adds little beyond a domain label.

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 description coverage is 100% and the action enum itself documents all eleven operations, including which parameter each one requires. The description contributes no parameter meaning of its own; it merely mirrors the capability list. Baseline 3 is correct when the schema carries the full burden.

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?

The description names a specific resource set: company snapshots and fundamentals, stock screens, 13F investor portfolios, and US House member trades, sourced from SEC filings and Yahoo quotes. That is far more specific than the name 'markets' alone. It stops short of stating that this is one multi-action tool with an 'action' dispatch, and it gives no contrast against siblings such as find_data, get_data, or charts.

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?

Usage is only implied by the enumerated data domains (screening, 13F holdings, congress trades), so an agent can guess when the tool is relevant. There is no explicit when-to-use condition, no when-not-to-use, and no named alternative among the sibling tools. Guidance beyond domain matching is left entirely to the action enum in the schema.

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.