get_filing_size
Check an SEC filing document's exact size before downloading to decide whether to read its text or share the link only.
Instructions
Get the exact size of a filing document BEFORE downloading it.
Use this to decide between reading the text (download_filing_text) and giving the user the link only. Sizes come from the EDGAR filing index.
Args: filing_url: Filing document URL (https://www.sec.gov/Archives/edgar/data/...)
Returns: size_bytes, size_mb, recommendation ('read_text' or 'link_only') and filing_url
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": {
"filing_url": "<filing_url>"
},
"name": "get_filing_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filing_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |