Skip to main content
Glama

EdgarStack

Build a cited evidence pack for an analyst-style report

build_report_pack
Read-onlyIdempotent

One call returns everything needed to write an analyst-style report from SEC filings: the relevant data sections, SEC filing citations for each section, writing rules and a report outline. You (the model) then write the report from the pack only. Report types:

  • "earnings_recap" (~12k tokens): latest quarterly XBRL results, 8-K earnings release (Ex-99.1), TTM ratios, segments, guidance language, changed MD&A/Risk Factors passages, insider trades.

  • "tenk_red_flags" (~18k tokens): earnings-quality indicators, growth anomalies, five-year ratios, off-balance-sheet items, risk-factor changes, revised XBRL facts, auditor-change/restatement 8-Ks, balance-sheet tie-out.

  • "initiation" (~25k tokens): business description, five-year financials and ratios, segments, market multiples, peers, capital allocation, guidance track record, risk changes, ownership, insiders. Market multiples need the requesting user's own Tiingo key (X-Tiingo-Key header, see /docs#prices); without one the valuation section carries SEC fundamentals with a note instead of price-based fields. Packs stay under a hard token budget; lower-priority sections are trimmed first and listed in trimmedSections, and failed sections are listed in unavailableSections. If the user's request doesn't clearly map to one report type (e.g. "write me a report on X"), ask which of the three they want, with a one-line description of each, rather than guessing. For "initiation", if the user named no peers, ask for 2–5 comparable companies (suggest a few) before calling; peers are optional if they decline. Text sections cover US 10-K/10-Q filers. Not investment advice.

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>",
      "reportType": "<reportType>"
    },
    "name": "build_report_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
peersNoinitiation only: up to five comparable tickers
tickerYesUS ticker symbol, e.g. AAPL
reportTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive), so credit goes to the added context: per-type token costs (~12k/18k/25k), a hard token budget with lower-priority sections trimmed first and reported in trimmedSections, failed sections surfaced in unavailableSections, the X-Tiingo-Key requirement, and a coverage limit to US 10-K/10-Q filers. With no output schema, this is exactly the behavioral detail an agent needs to set expectations and handle partial results.

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 core contract in the first sentence, then a scannable bulleted breakdown of report types followed by edge-case rules. Dense rather than padded, though the per-type bullet lists are long enough that the clarification rules at the end could be pushed higher for visibility.

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?

For a 3-parameter read tool with no output schema, the definition covers request disambiguation, prerequisite credentials, token budget and trimming semantics, and failure reporting. Nothing an agent needs in order to call it correctly or explain the result to a user is missing.

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

Parameters5/5

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

Schema coverage is 67%, and the description more than compensates: reportType elides all three enum values with concrete contents, peers is scoped to initiation with a 2–5 range and a fallback when declined, and ticker is implied by the SEC-filer scope. This is meaning well beyond what the schema conveys.

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?

"One call returns everything needed to write an analyst-style report from SEC filings" states a specific verb, resource, and output shape, then enumerates the three report types and what each contains. An agent can distinguish this from build_research_report or build_financial_model because the description frames it explicitly as an evidence pack the model writes from, not a finished report or a model.

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?

Strong conditional guidance: if the request doesn't map cleanly to a report type, ask which of the three rather than guessing; for initiation with no peers, ask for 2–5 comparables and proceed if the user declines. It also flags the Tiingo-key prerequisite for the valuation section. The only gap is that it never routes against sibling tools, so the agent must infer when a targeted tool beats the pack.

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