Skip to main content
Glama
deepvalues-mcp

deepvalues-mcp

by IvyFan19

Point-in-time fundamentals: what was filed as of a date, before restatement

as_filed
Read-only

Returns historical financial values known on a specified past date, so backtests and audits can compare original filings with later restatements.

Instructions

Call this when the question is about what was known on a past date (a backtest, an audit, "what did the 10-K say at the time"), not about the current restated figures. Returns, for each fiscal period filed on or before date, the value as it stood on that date (the original filing, or a later filing for the same period if it came before date), the filing date, the XBRL tag, a sec.gov link, and restated_after_date when a later filing changed it. Values are as printed, not split-adjusted. Inputs: ticker (path), date (YYYY-MM-DD, required), metrics (comma-separated snake_case names, default revenues,net_income,eps_diluted,operating_cash_flow,free_cash_flow,stockholders_equity,total_debt,shares_outstanding), period (annual|quarterly), limit (periods, default 4). Example: GET /as-filed/AAPL?date=2020-02-01&metrics=revenues,net_income. If the company had filed none of it by date, the answer has no periods, the flag nothing_filed_by_date and earliest_filed (the first filing date on record). A 503 as-filed-unavailable means there is no as-filed history for the company to answer from; it is not charged, and GET /fundamentals has the current figures. 0.02 credits. (GET https://app.deepvalues.ai/api/v1/as-filed/{ticker}, e.g. https://app.deepvalues.ai/api/v1/as-filed/AAPL?date=2020-02-01 — 0.02 credits per call; works with no credentials up to 5 call(s)/day per address) Missing data? Call request_data.

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": {
      "ticker": "<ticker>",
      "date": "<date>"
    },
    "name": "as_filed"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day to look back from (YYYY-MM-DD, 2009-01-01 or later, not in the future).
limitNoHow many of the most recent periods filed by `date` to return.
periodNoannual
tickerYesThe real ticker symbol, e.g. AAPL; share classes as BRK.B or BRK-B. Substitute it into the path (/fundamentals/AAPL), never the literal {ticker}.
metricsNoComma-separated metric names (snake_case), at most 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds the return shape (value, filing date, XBRL tag, sec.gov link, `restated_after_date`), the non-obvious 'as printed, not split-adjusted' semantics, the empty-result flags `nothing_filed_by_date`/`earliest_filed`, and 503 handling with 'not charged' billing behavior. Cost (0.02 credits) and the 5-calls/day credential-free limit are also disclosed.

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?

Front-loaded with the triggering condition and return shape, then inputs, then edge cases — a sensible order. It loses a point for redundancy: the 0.02 credit cost appears twice and the endpoint URL is repeated in the trailing parenthetical after already being implied by the example call.

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?

With no output schema and a moderate 5-parameter surface, the description still covers return fields, empty-result behavior, error semantics, billing, and rate limits. An agent can call this correctly and interpret every likely response without further sources.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 80%, setting a baseline of 3, but the description adds meaning the schema lacks — notably the full default `metrics` list (revenues, net_income, eps_diluted, operating_cash_flow, free_cash_flow, stockholders_equity, total_debt, shares_outstanding), which the schema declares with no default. The worked example also clarifies comma-separated syntax.

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

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title and first sentence name a specific verb+resource: return values as they stood on a past filing date, explicitly framed as 'not the current restated figures.' This directly distinguishes it from the `fundamentals` sibling without requiring the agent to open either schema.

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

Usage Guidelines5/5

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

It states the triggering conditions with concrete examples (backtest, audit, 'what did the 10-K say at the time') and an explicit exclusion, directing the agent to /fundamentals for current figures, including a named fallback when the 503 `as-filed-unavailable` fires.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.