13F Portfolio Overlap
thirteenf_overlapCompute portfolio overlap between two 13F managers from their FULL holdings (postgres-backed — no top-50 cap, so small-tail overlaps are included). Returns the shared CUSIPs with each manager's position (shares, value_dollars), plus overlap statistics: shared count, shared value, and overlap percent on each side (shared_value / manager's total_value). Useful for 'do BRK and Bridgewater agree on anything?' or 'how much do two activists overlap'. Common-stock-long convention (share_type='SH', put_call IS NULL). Data mirrors EDGAR 13F on a ~4h cycle; report_date defaults to the latest mature quarter. manager_a / manager_b each carry accession + filing_url (that manager's 13F for the quarter; open with get_filing) and accessions (every 13F/amendment behind it).
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": {
"cik_a": "<cik_a>",
"cik_b": "<cik_b>"
},
"name": "thirteenf_overlap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cik_a | Yes | First manager CIK (e.g. 1067983 = Berkshire Hathaway). | |
| cik_b | Yes | Second manager CIK to compare against. | |
| report_date | No | Point-in-time quarter (YYYY-MM-DD). Default: latest. When historical, routes to postgres current_holdings_mat and computes overlap from full holdings (not top-50 cap). Echoes as_of_effective. |