Skip to main content
Glama
SEC EDGAR MCP Server

SEC EDGAR MCP Server

Latest SEC filing

get_latest_filing
Read-onlyIdempotent

Fetches a stock ticker's newest SEC EDGAR filing with official links, optionally filtered by form type such as 10-K or 10-Q, resolving the ticker to its CIK.

Instructions

Newest SEC filing for a stock ticker, with official EDGAR links.

Resolves the ticker to its SEC CIK and returns the filing with the latest filing_date (the date the SEC received it). forms restricts the search to exact form types, case-insensitive: ["10-K"] matches 10-K but not 10-K/A; omit it to consider every form. report_date (the period the filing covers) is returned as context only, so a 10-K filed in January 2026 for the fiscal year ending September 2025 has a 2026 filing_date.

Args: ticker: Stock ticker symbol, e.g. "AAPL". Case and surrounding whitespace are ignored; BRK.B and BRK-B are equivalent. forms: Optional list of SEC form types, e.g. ["10-K", "10-Q"]. cik: Optional SEC CIK (1-10 digits, string or integer) to pick one issuer when a previous call returned "ambiguous"; it must be listed under ticker.

Returns: A JSON object with status and a one-line message. On "ok": company {cik, name, ticker, exchange}, forms (normalised list or null) and filing {form, filing_date, report_date, accession_number, filing_url, primary_document_url}, or filing null when the company has no filing of those forms; filing_url (the filing index page) is always present, primary_document_url may be null. The other statuses (not_found, ambiguous with candidates, invalid_input with field, upstream_error with retryable) are defined in the server instructions.

Example: get_latest_filing("AAPL", ["10-K"]) returns Apple's most recent annual report.

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

Input Schema

NameRequiredDescriptionDefault
cikNo
formsNo
tickerYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and openWorld, so the safety profile is covered before the description starts. The description adds genuinely useful behavior: the non-`ok` statuses (`not_found`, `ambiguous` with `candidates`, `invalid_input` with `field`, `upstream_error` with `retryable`), and the guarantee that `filing_url` is always present while `primary_document_url` may be null. However, much of the Returns block restates fields the output schema already carries, so the net addition beyond structured data is moderate.

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?

Well front-loaded: the one-line purpose precedes Args, Returns and Example, and each section is scannable. The Returns block is long and largely duplicates an output schema that already exists, which is the main fat. Nothing is confusing, but a tighter Returns section would earn full marks.

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?

For a three-parameter, single-issuer lookup this is essentially complete: inputs, edge cases, ambiguity recovery path, and a worked example are all present, and the status vocabulary is deferred sensibly to server instructions. The redundancy with the output schema and the absent explicit sibling routing are the only real gaps.

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 description coverage is 0%, so the description carries the full burden and does so thoroughly: ticker case/whitespace tolerance and `BRK.B`/`BRK-B` equivalence, `forms` exact-form-type case-insensitive matching with a concrete counterexample, and `cik` as a 1-10 digit string-or-integer disambiguator that must be listed under the ticker. It also clarifies the easily confused `report_date` versus `filing_date` distinction with a fiscal-year example.

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 names a specific resource and selector: the newest SEC filing for a ticker, with EDGAR links, and later pins the ordering key to `filing_date`. That makes the single-latest semantics unmistakable. It never names the siblings `list_filings_by_year` or `list_form_types`, so the differentiation from them is left implicit rather than stated.

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?

Clear operational guidance: omit `forms` to consider every form, supply `cik` only when a prior call returned `ambiguous`, and expect `filing` null when no matching form exists. The `10-K` vs `10-K/A` exact-match rule tells the agent precisely how to scope a query. What is missing is an explicit routing statement telling the agent when to prefer `list_filings_by_year` over this tool.

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