Skip to main content
Glama

get_fund_holdings

Read-only

Per-security holdings from SEC Form N-PORT: one row per holding line in a mutual fund, ETF or closed-end fund's monthly portfolio report, parsed from the filing's primary_doc.xml; filing_id ties each row to get_nport_filings. Use it for which funds hold a security, a fund's portfolio, derivative exposure or repo positions. Size a derivative with min_notional, not min_value_usd: fair value and exposure differ by orders of magnitude. Derivative and debt terms are being backfilled: a null term on an older filing means not yet extracted, not absent from the source. Coverage: N-PORT filings FILED from 2024-06-01; an empty result for a filing means not extracted, not an empty fund. Field list and details: keyvex.com/docs/tools/get_fund_holdings

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_fund_holdings"
  }
}

Input Schema

NameRequiredDescriptionDefault
isinNoExact; present only where the filer gave one.
nameNoIssuer-name substring. 1-2 letters: whole word, newest 20,000 holdings only.
cusipNoExact 9-character CUSIP; the most reliable identifier in N-PORT.
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on period_ending.
untilNoYYYY-MM-DD, inclusive, on period_ending.
tickerNoExact; present only where the filer gave one (less often than CUSIP).
countryNoISO-2 country code of the holding.
sort_byNoDefault value_usd (fair value, which understates derivatives).
asset_catNoSEC code, case-insensitive: EC common equity; EP preferred equity; DBT debt, Treasuries included; LON loan; ABS-MBS asset-backed, mortgage; ABS-O asset-backed, other; ABS-CBDO asset-backed, CDO/CBO; ABS-APCP asset-backed commercial paper; SN structured note; STIV short-term investment vehicle, money-market and liquidity pools; RA repurchase and reverse-repurchase agreement; RE real estate; COMM commodity; DE equity derivative; DIR interest-rate derivative; DFE foreign-exchange derivative; DCR credit derivative; DCO commodity derivative; DO other derivative; OTHER other. Other codes are refused.
filer_cikNoFund trust CIK, 10-digit: the precise form, one trust.
filing_idNoEDGAR accession: every holding in one fund-month filing.
filer_nameNoTrust-name substring; it matches a FAMILY ('BlackRock': five+ trusts, 300,000+ rows). Use filer_cik, or narrow with period_ending.
sort_orderNoDefault desc.
counterpartyNoCounterparty substring, case-insensitive. The source's literal 'N/A' is kept, not nulled.
min_notionalNoMinimum notional in the contract's currency (exposure). Excludes rows with none, options included.
is_derivativeNotrue: derivative rows only; false: non-derivative only.
min_value_usdNoMinimum fair value in USD (what it is worth, not exposure).
period_endingNoReporting month-end, YYYY-MM-DD.
maturity_sinceNoYYYY-MM-DD, inclusive, on debt_maturity_date (debt only).
maturity_untilNoYYYY-MM-DD, inclusive, on debt_maturity_date (debt only).
payoff_profileNo
derivative_typeNo
expiration_sinceNoYYYY-MM-DD, inclusive, on deriv_expiration_date; rows whose expiration is 'N/A' are excluded.
expiration_untilNoYYYY-MM-DD, inclusive, on deriv_expiration_date.
min_pct_of_portfolioNoMinimum % of fund net assets, 0-100 scale.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changed
    • changedInput schema / properties / asset_cat / description
      Previous value: -"SEC's asset-category code, case-insensitive. The data holds exactly these: EC common equity; EP preferred equity; DBT debt, Treasuries included; LON loan; ABS-MBS asset-backed, mortgage; ABS-O asset-backed, other; ABS-CBDO asset-backed, CDO/CBO; ABS-APCP asset-backed commercial paper; SN structured note; STIV short-term investment vehicle, money-market and liquidity pools; RA repurchase and reverse-repurchase agreement; RE real estate; COMM commodity; DE equity derivative; DIR interest-rate derivative; DFE foreign-exchange derivative; DCR credit derivative; DCO commodity derivative; DO other derivative; OTHER other. An unknown code is refused with the list rather than searched for — Treasuries are DBT, money-market positions are STIV, and a repurchase agreement is RA."New value: +"SEC code, case-insensitive: EC common equity; EP preferred equity; DBT debt, Treasuries included; LON loan; ABS-MBS asset-backed, mortgage; ABS-O asset-backed, other; ABS-CBDO asset-backed, CDO/CBO; ABS-APCP asset-backed commercial paper; SN structured note; STIV short-term investment vehicle, money-market and liquidity pools; RA repurchase and reverse-repurchase agreement; RE real estate; COMM commodity; DE equity derivative; DIR interest-rate derivative; DFE foreign-exchange derivative; DCR credit derivative; DCO commodity derivative; DO other derivative; OTHER other. Other codes are refused."
    • changedInput schema / properties / counterparty / description
      Previous value: -"Case-insensitive substring against the derivative counterparty (the dealer or clearing house on the other side). Answers exposure-concentration questions — e.g. counterparty='Morgan Stanley' across funds. Cleared derivatives name an exchange or clearing house (CME, Chicago Board of Trade) rather than a bank. Note the source writes the literal 'N/A' where no counterparty is disclosed, and that value is preserved rather than nulled."New value: +"Counterparty substring, case-insensitive. The source's literal 'N/A' is kept, not nulled."
    • changedInput schema / properties / country / description
      Previous value: -"ISO-2 country code of the holding (e.g., 'US', 'GB', 'JP')."New value: +"ISO-2 country code of the holding."
    • changedInput schema / properties / cusip / description
      Previous value: -"Exact 9-character CUSIP. Most reliable identifier for equity and debt holdings in N-PORT."New value: +"Exact 9-character CUSIP; the most reliable identifier in N-PORT."
    • removedInput schema / properties / derivative_type / description
      Removed value: -"Structural derivative type, derived from which `<derivativeInfo>` child element is present in the filing."
    • changedInput schema / properties / expiration_since / description
      Previous value: -"ISO date (YYYY-MM-DD). Only derivatives expiring on or after this date. Normalized across contract types — futures expDate, option expDt, swap terminationDt, forward settlementDt all populate it, and deriv_category tells you which. Rows whose value is not a real date (the source writes 'N/A') are excluded from the window rather than compared."New value: +"YYYY-MM-DD, inclusive, on deriv_expiration_date; rows whose expiration is 'N/A' are excluded."
    • changedInput schema / properties / expiration_until / description
      Previous value: -"ISO date (YYYY-MM-DD). Only derivatives expiring on or before this date. Pair with expiration_since for a rollover window."New value: +"YYYY-MM-DD, inclusive, on deriv_expiration_date."
    • changedInput schema / properties / filer_cik / description
      Previous value: -"Fund trust CIK (10-digit, padded with leading zeros). Returns the trust's holdings across all reporting months. This is the precise form of filer_name: one trust, rather than a name substring that can match a whole family of them."New value: +"Fund trust CIK, 10-digit: the precise form, one trust."
    • changedInput schema / properties / filer_name / description
      Previous value: -"Case-insensitive substring against fund trust name (e.g., 'iShares', 'Vanguard', 'SPDR'). ⚠ A name substring matches a FAMILY, not a fund: 'BlackRock' matches at least five separate trusts (0000893818, 0000844779, 0001761055, 0000355916, 0001804196) and 300,000+ holdings rows, so it asks for the whole family's book and reads far more than a caller usually wants. filer_cik is the precise form — one trust. To narrow a name search instead, add period_ending."New value: +"Trust-name substring; it matches a FAMILY ('BlackRock': five+ trusts, 300,000+ rows). Use filer_cik, or narrow with period_ending."
    • changedInput schema / properties / filing_id / description
      Previous value: -"EDGAR accession number — returns all holdings from one specific N-PORT filing (one fund-month)."New value: +"EDGAR accession: every holding in one fund-month filing."
    • changedInput schema / properties / is_derivative / description
      Previous value: -"True returns only derivative rows (asset_cat starting with 'D'). False returns only non-derivative rows. Omit for both."New value: +"true: derivative rows only; false: non-derivative only."
    • changedInput schema / properties / isin / description
      Previous value: -"Exact ISIN if filer included it in the identifiers block."New value: +"Exact; present only where the filer gave one."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum records to return. Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / maturity_since / description
      Previous value: -"ISO date (YYYY-MM-DD). Only debt holdings maturing on or after this date. Applies to the 33.6% of rows that are bond-like; pair with maturity_until to build a maturity ladder."New value: +"YYYY-MM-DD, inclusive, on debt_maturity_date (debt only)."
    • changedInput schema / properties / maturity_until / description
      Previous value: -"ISO date (YYYY-MM-DD). Only debt holdings maturing on or before this date."New value: +"YYYY-MM-DD, inclusive, on debt_maturity_date (debt only)."
    • changedInput schema / properties / min_notional / description
      Previous value: -"Minimum derivative NOTIONAL amount in the contract's currency. This is EXPOSURE, not fair value, and for derivatives the two differ by orders of magnitude — a real interest-rate swap in this dataset carries value_usd -49,184 against a notional of 6,795,000. Use min_notional (not min_value_usd) to ask 'how big is the bet'; use min_value_usd to ask 'how much is the position worth today'. Rows with no notional are excluded by any positive floor: options carry share count + strike instead and legitimately have none."New value: +"Minimum notional in the contract's currency (exposure). Excludes rows with none, options included."
    • changedInput schema / properties / min_pct_of_portfolio / description
      Previous value: -"Minimum percentage of fund net assets (0-100 scale). Use to focus on concentrated positions."New value: +"Minimum % of fund net assets, 0-100 scale."
    • changedInput schema / properties / min_value_usd / description
      Previous value: -"Minimum fair value in USD. Use to focus on large positions only."New value: +"Minimum fair value in USD (what it is worth, not exposure)."
    • changedInput schema / properties / name / description
      Previous value: -"Case-insensitive substring against the holding issuer name (e.g., 'Apple', 'Treasury', 'Goldman Sachs'). A name of 1-2 characters (e.g. 'GE', '3M') matches as a whole word within the newest 20,000 holdings by period_ending only, and the answer says so; cusip, ticker or isin search the full history."New value: +"Issuer-name substring. 1-2 letters: whole word, newest 20,000 holdings only."
    • removedInput schema / properties / payoff_profile / description
      Removed value: -"Filter to long or short positions per N-PORT payoffProfile field."
    • changedInput schema / properties / period_ending / description
      Previous value: -"Reporting month-end (YYYY-MM-DD). Restricts results to one reporting period."New value: +"Reporting month-end, YYYY-MM-DD."
    • changedInput schema / properties / since / description
      Previous value: -"ISO date (YYYY-MM-DD). Only holdings whose period_ending >= this date."New value: +"YYYY-MM-DD, inclusive, on period_ending."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Default: value_usd."New value: +"Default value_usd (fair value, which understates derivatives)."
    • changedInput schema / properties / sort_order / description
      Previous value: -"Default: desc (largest / most recent first)."New value: +"Default desc."
    • changedInput schema / properties / ticker / description
      Previous value: -"Exact ticker symbol if filer included it in the identifiers block (less common than CUSIP)."New value: +"Exact; present only where the filer gave one (less often than CUSIP)."
    • changedInput schema / properties / until / description
      Previous value: -"ISO date (YYYY-MM-DD). Only holdings whose period_ending <= this date."New value: +"YYYY-MM-DD, inclusive, on period_ending."
  2. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Case-insensitive substring against the holding issuer name (e.g., 'Apple', 'Treasury', 'Goldman Sachs')."New value: +"Case-insensitive substring against the holding issuer name (e.g., 'Apple', 'Treasury', 'Goldman Sachs'). A name of 1-2 characters (e.g. 'GE', '3M') matches as a whole word within the newest 20,000 holdings by period_ending only, and the answer says so; cusip, ticker or isin search the full history."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive, and the description adds substantial context beyond them: coverage starts at filings filed 2024-06-01, null derivative/debt terms mean not-yet-extracted rather than absent, and an empty result means not extracted rather than an empty fund. These are exactly the behavioral caveats an agent needs.

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?

Dense and front-loaded: the core definition leads, followed by use cases, then caveats, then a docs link. Every sentence carries information, though the derivative-sizing and backfill caveats make it longer than a minimal definition.

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?

For a 26-parameter tool with no output schema, the description supplies the coverage window, null-handling semantics, empty-result meaning, and a field-list link. Nothing an agent needs to call it correctly appears to be missing.

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 92%, so the baseline is 3, but the description adds real meaning: it warns to size derivatives with min_notional rather than min_value_usd because fair value and exposure differ by orders of magnitude, and notes sort_by value_usd understates derivatives. It also flags that filer_name matches a family, steering toward filer_cik.

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 verb and resource ('Per-security holdings from SEC Form N-PORT: one row per holding line') and names the source document (primary_doc.xml). It explicitly ties itself to the sibling get_nport_filings via filing_id, so an agent can distinguish the two without opening either schema.

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 concrete use cases ('which funds hold a security, a fund's portfolio, derivative exposure or repo positions') and points to get_nport_filings for the filing-level view. It lacks an explicit when-not-to-use statement, but the coverage and empty-result caveats effectively bound expectations.

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