Skip to main content
Glama

Kaleidoscope MCP (SEC & financial data)

Sector Funding Flow (aggregate $ by sector by month, w/ breakdown) [beta]

mars_sector_funding_flow
Read-onlyIdempotent

Aggregate funding-flow time series by sector — the macro/thematic tool. "How much money flowed into AI infrastructure by month over the last 12 months?"

Required bounds: period_start + period_end + aggregation ('week'|'month'|'quarter'). Max period 5 years — larger errors invalid_input.

Optional breakdown: breakdown_by='stage' splits each bucket by funding_subcategory; breakdown_by='country' splits by companies_v2.country; breakdown_by='top_investor' adds a top-10-investors-by-total-deployed table alongside the base series.

PIT: as_of gates round_date <= as_of (applied AFTER period_end via LEAST).

Sparse buckets returned as zero-count entries so a time-plot renders monotone.

Currency: total_usd aggregates amount_usd_converted (FX-normalized via exchangerate.host at round_date; >95% coverage). A row without a converted value falls back to amount_usd ONLY when its own currency is USD or NULL (2026-10-10 fix — a non-USD row with no converted value is excluded from the aggregate rather than counted at its raw foreign-currency face value, which was silently inflating/deflating sums by up to ~1,457x on the ~0.6% of rows this hit per names/mars's #825). Long-window comparisons (>3y) may drift with historical FX rates.

deal_kind (2026-07-18 — the event-mix fix): funding_deals_v2 now carries a 9-value deal_kind classification (100% populated), so the old event-mix pollution is fixable at the query. Pass deal_kind='operating_raise' for a clean VC / company-primary series (strips bank_debt / fund_formation / pipe / grant — e.g. May-2026's $1.03T decomposes to 35% operating_raise / 29% bank_debt), or breakdown_by='deal_kind' to see the full mix per bucket. WITHOUT a deal_kind filter, broad-sector totals still mix all event types (bank debt + PE fund formations can dominate Financial Services) — so always set deal_kind for a company-funding series.

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": {
      "period_start": "<period_start>",
      "period_end": "<period_end>",
      "aggregation": "<aggregation>"
    },
    "name": "mars_sector_funding_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoISO 8601 UTC. Default now().
sectorNoFilter to one companies_v2.sector.
top_byNoWhen breakdown_by='top_investor', rank by this dimension. Default 'total_capital'. 'recent_momentum_90d' compares trailing 90d capital vs prior 90d and filters to investors with ≥3 trailing-90d deals.total_capital
countryNoISO 3166 alpha-2.
deal_kindNoFilter to one deal_kind. Pass 'operating_raise' for a clean VC/company-raise series (strips bank_debt/fund_formation/pipe). 100% populated.
industriesNoFilter to companies whose industries[] overlaps this array.
period_endYesYYYY-MM-DD. Required. > period_start.
aggregationYesBucket size. Required.
pit_gate_onNoColumn the as_of PIT gate applies to. 'round_date' (default) = real round timeline; 'first_seen_at' = leak-free (when the deal became knowable in the corpus) for honest backtests.round_date
breakdown_byNo
period_startYesYYYY-MM-DD. Required.
funding_subcategoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly/idempotent/non-destructive); the description adds substantial undisclosed behavior: PIT gating applied after period_end via LEAST, sparse buckets emitted as zero-count rows for monotone plots, FX normalization source and fallback rules, and the effect of omitting deal_kind on broad-sector totals.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with a clear one-line summary and bolded sections, which is good structure, but it is bloated with release-note archaeology — the 2026-10-10 FX incident narrative (~1,457x, #825, 0.6% of rows) and the May-2026 $1.03T decomposition example add length without changing how an agent calls the tool.

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

Completeness4/5

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

For a 12-parameter aggregation tool with no output schema, it covers the critical gotchas (time bounds, PIT, deal_kind mixing, FX drift, zero-filled buckets, the extra investor table). What it still lacks is a description of the returned row/column shape or how the top_investor table is joined to the base series.

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 83% so the baseline is already high, yet the description still adds real meaning: what each breakdown_by value splits on, that top_investor adds a separate top-10 table, and the practical purpose of deal_kind. It does not explain sector/industries/country interaction or top_by beyond the schema.

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?

States a specific verb and resource ('Aggregate funding-flow time series by sector') and self-labels as 'the macro/thematic tool', with a concrete example question. This clearly separates it from deal-level siblings, though it never names an actual alternative tool to route away from.

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?

Gives actionable usage rules: required bounds (period_start/period_end/aggregation, max 5 years or invalid_input), and an explicit directive that 'you should always set deal_kind for a company-funding series' with the rationale. It covers how to pick breakdown_by variants, but gives no explicit 'use X instead when you need deal-level rows' routing.

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