Skip to main content
Glama

13F Portfolio Clone Backtest

GetInstitutionCloneBacktest
Read-only

Backtest how cloning an institutional filer's reported 13F portfolio would have performed against a market benchmark, either over a trailing window (windowYears) or an explicit fromDate/toDate range. Reconstructs the filer's portfolio at each quarterly 13F snapshot, rebalances on the SEC filing lag, and values each exact listed security on raw closing prices. Returns price return (dividends excluded), CAGR, and max drawdown for the clone and benchmark, plus price-return alpha. Returns are unavailable when a held security or benchmark crosses a captured split without a certified price basis; the requested window is not shortened to hide it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toDateNoOptional window end in YYYY-MM-DD format (defaults to today when only fromDate is given)
fromDateNoOptional window start in YYYY-MM-DD format for an anchored historical backtest (e.g. 2015-01-01); overrides windowYears
benchmarkNoBenchmark ticker to compare against (default: SPY)SPY
institutionYesInstitution name or SEC CIK (e.g., 'Berkshire Hathaway', '1067983', or zero-padded '0001067983'). Unique partials and verified aliases resolve; ambiguous partials return candidate CIKs.
windowYearsNoTrailing window length in years anchored at today (default: 3, clamped to 1-20; ignored when fromDate/toDate are supplied)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses substantial behavioral detail: quarterly portfolio reconstruction, rebalancing on SEC filing lag, valuation on raw closing prices, exclusion of dividends, and a specific limitation where returns become unavailable after a captured split without a certified price basis. It also explicitly states that the window is not shortened to hide this issue, which is unusually transparent.

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

Conciseness5/5

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

The description is well-structured with four purposeful sentences: purpose/scope, methodology, return metrics, and a critical limitation. Each sentence earns its place without fluff, and the most important information is front-loaded.

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 moderately complex backtest tool with no output schema, the description sufficiently covers input modes, methodology, return metrics, and edge-case behavior. It explains what the agent can expect from the result, including the important caveat about unavailable returns, making the definition complete for a competent agent.

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%, so the schema already documents all five parameters in detail. The description adds conceptual context by linking windowYears to trailing mode and fromDate/toDate to anchored mode, but it does not significantly extend meaning beyond the parameter descriptions already present in the schema.

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?

The description opens with a specific verb and resource: 'Backtest how cloning an institutional filer's reported 13F portfolio would have performed against a market benchmark.' This clearly identifies the tool's unique function and distinguishes it from sibling tools like GetInstitutionPortfolio or CompareInstitutionPortfolios, which provide holdings or comparisons rather than clone performance backtesting.

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?

The description clearly establishes context by explaining that the tool can run over a trailing window or an explicit date range, with fromDate overriding windowYears. It does not explicitly name alternative tools or state when not to use this tool, but the core usage context is unambiguous enough for an agent to select it appropriately.

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.