Skip to main content
Glama

Arche: SEC EDGAR Fundamentals MCP Server and API

Replay a query from its replay token

query_replay
Read-onlyIdempotent

Return the response a replay token was minted for, exactly as first returned, beside its immutable manifest, and re-verify it. The query is re-executed at the manifest's as-of date and the recomputation's hash compared with the recorded one: replay_mode is 'recomputed_verified' with matches_original_result true when they match, 'recomputed_format_changed' when the same filings and values come back in a response whose bytes differ, and 'recomputed_diverged' when the underlying data has changed since; in both of those matches_original_result is false and recomputed_result carries what the query returns now. When the query can no longer be re-executed, replay_mode is 'stored_manifest' and the original result is still returned. A replay token is shareable: anyone whose plan covers the query's company can replay it. The manifest returned is your organization's own when it executed the query, and otherwise the token's first manifest.

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": {
      "replay_token": "<replay_token>"
    },
    "name": "query_replay"
  }
}

Input Schema

NameRequiredDescriptionDefault
replay_tokenYesStable replay token returned by POST /v1/query/execute.

Output Schema

NameRequiredDescriptionDefault
responseYes
request_idNo
source_statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / replay_token / description
      Added value: +"Stable replay token returned by POST /v1/query/execute."
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations cover read-only, idempotent and non-destructive behavior, and the description goes well beyond that. It enumerates the three replay_mode outcomes, states what matches_original_result and recomputed_result carry in each case, explains the fallback to stored_manifest when re-execution is impossible, and discloses the access rule that plan coverage of the query's company governs who may replay.

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?

The core action is front-loaded in the first sentence, and every subsequent sentence carries substantive behavioral detail about outcomes or access. The sentences are long and multi-clause, which makes the outcome taxonomy harder to scan than a short enumerated list would, but nothing is padding.

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?

A single-parameter tool with an output schema and full annotation coverage is well served here: the description explains the outcome states, the divergence fallback, and the sharing/manifest-ownership rules that the output schema alone would not make intuitive. An agent has enough to decide when to call it and how to interpret each replay_mode.

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?

There is a single required parameter with 100% schema description coverage stating it is the stable replay token returned by POST /v1/query/execute, so the schema already carries the syntax. The description adds meaning about the token's portability across organizations and which manifest is returned, but nothing about token format or validity lifetime beyond the schema.

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 opening sentence states a specific verb and resource: return the original response for a replay token, alongside its immutable manifest, and re-verify it. That is far more than a restatement of the title. It does not explicitly distinguish itself from the sibling replay_verify, which also sounds like a verification tool, so an agent must infer the boundary rather than being told it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the tool applies when you hold a replay token, and the description notes anyone whose plan covers the query's company can replay it. There is no explicit when-to-use versus when-not-to-use guidance and no named alternative such as replay_verify or query_verify_snapshot, leaving the agent to infer which verification tool to pick.

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