Execute a deterministic public query
query_executeExecute one supported deterministic query, compute immutable manifest hashes, persist the manifest and the result, and optionally return the result payload. Supported query types are financial_state_time_series, metric_time_series, metric_bundle_time_series, financials_as_of and financials_as_of_page; financials_as_of is the whole as-of financials read, financials_as_of_page one page of it, and both require as_of_date. Parameters the query type does not take are ignored and not stored. The same query over the same data always yields the same replay_token, and each organization receives a manifest of its own: running a query again returns your organization's first manifest for it, with its created_at.
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": {
"query_type": "<query_type>"
},
"name": "query_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of_date | No | Optional no-lookahead boundary date applied by supported query types. | |
| parameters | No | Query parameters for the selected query type. Keys the query type does not take are ignored and not stored. | |
| query_type | Yes | Supported deterministic query type: 'financial_state_time_series', 'metric_time_series', 'metric_bundle_time_series', 'financials_as_of' or 'financials_as_of_page'. 'financials_as_of' takes cik, and optionally audit_mode, and requires as_of_date. 'financials_as_of_page' is one page of that read, as GET /v1/edgar/as-of/{date}/financials/{cik}/page selects it: it takes cik, and optionally audit_mode, statement_type, fiscal_year_from, fiscal_year_to, fiscal_period, latest_only, offset, limit (1-50, default 20) and as_of_timestamp (a timestamp with an offset, falling on as_of_date), and requires as_of_date. Not available here: "financials_as_of", as a company's whole as-of history is larger than one tool result; use financials_as_of_page, or include_result false to mint a replay token whose figures are read from the HTTP API. | |
| include_result | No | Whether to include the executed result payload in the response body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | Yes | ||
| request_id | No | ||
| source_status | Yes |