Skip to main content
Glama

Arche: SEC EDGAR Fundamentals MCP Server and API

Execute a deterministic public query

query_execute
Idempotent

Execute 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

NameRequiredDescriptionDefault
as_of_dateNoOptional no-lookahead boundary date applied by supported query types.
parametersNoQuery parameters for the selected query type. Keys the query type does not take are ignored and not stored.
query_typeYesSupported 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_resultNoWhether to include the executed result payload in the response body.

Output Schema

NameRequiredDescriptionDefault
responseYes
request_idNo
source_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query_type / description
      Previous value: -"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."New value: +"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."
  2. Changed4 schema fields changed
    • addedInput schema / properties / as_of_date / description
      Added value: +"Optional no-lookahead boundary date applied by supported query types."
    • addedInput schema / properties / include_result / description
      Added value: +"Whether to include the executed result payload in the response body."
    • addedInput schema / properties / parameters / description
      Added value: +"Query parameters for the selected query type. Keys the query type does not take are ignored and not stored."
    • addedInput schema / properties / query_type / description
      Added value: +"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."
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations declare idempotentHint=true and readOnlyHint=false, and the description backs that up with substantive context: immutable manifest hashes, persisted manifest and result, per-organization manifest isolation, and the guarantee that reruns return the organization's first manifest with its original created_at. That is genuine disclosure beyond the annotations. It does not cover failure modes, permission requirements, or what happens when the underlying data changes (new manifest vs. same token), so it is not a 5.

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?

Purpose and supported types are front-loaded, and the closing sentences about replay_token stability and per-org manifests each carry non-obvious information. It loses a point for restating schema-level detail (the financials_as_of_page parameter list, the ignored-keys rule) in long, comma-heavy sentences that could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return shape, and it correctly focuses on query-type selection, persistence, and idempotency. For a tool with five query types and a free-form nested parameters object, that covers the decisions an agent must make. Error behavior and the interaction between reruns and changed underlying data remain unstated.

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 baseline is 3. The description does reinforce two things — that as_of_date is required for the as-of query types, and that unsupported parameter keys are ignored and not stored — but both of those statements already appear verbatim in the schema's property descriptions, so the added meaning is minimal.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 statement (execute a deterministic query) and then enumerates the five supported query types and the side effects (manifest hashing, persistence, optional payload return). That is far more concrete than a restated title. It stops short of 5 because it never names a sibling tool (query_replay, query_verify_snapshot, edgar_as_of_financials) as the alternative, so differentiation is only implicit.

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?

It gives real selection guidance inside the tool: financials_as_of vs financials_as_of_page, the as_of_date requirement for both, and the explicit escape hatch 'include_result false to mint a replay token whose figures are read from the HTTP API.' What is missing is cross-tool guidance — nothing tells the agent when to reach for query_execute rather than query_replay or the edgar_companies_* time-series siblings.

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