Skip to main content
Glama

filing_text

Fetch one document of an SEC filing by accession number as clean plain text (HTML/iXBRL stripped). Primary document by default, or any exhibit by file name. Returns form, filing date, company, a text window (paging via max_chars and offset) and the list of documents in the filing. Pass company if an agent filed it. Data: SEC EDGAR public APIs, no API key. Not-found, unsupported (PDF/images) and upstream errors are not charged. Costs $0.004 USDC per call via x402. Free sample: GET /v1/sample.

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": {
      "accession_number": "<accession_number>"
    },
    "name": "filing_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter offset to start from (for paging, default 0)
companyNoTicker or CIK of the filer (recommended; needed when an agent filed it)
documentNoFile name inside the filing (default: primary document)
max_charsNoMax characters of text to return (500-100000, default 20000)
accession_numberYesAccession number, e.g. 0000320193-26-000024

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the data source (SEC EDGAR, no API key), cost ($0.004 USDC via x402), that not-found, PDF/image and upstream errors are not charged, and that text is truncated into a window with paging. Unsupported-format handling and payment mechanics are exactly the kind of operational detail an agent needs before calling.

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 action and output, then terse sentences covering paging, return fields, failure modes and pricing. Dense and largely waste-free, though the pricing and sample-endpoint sentences sit slightly apart from the calling decision.

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?

Five parameters and no output schema, so the description must explain returns — it does, enumerating form, filing date, company, the text window, and the filing's document list. Combined with error and payment semantics, an agent has enough to call this correctly on the first try.

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%, and the schema already documents defaults for document, offset and max_chars. The description re-states those defaults rather than adding new semantics, though 'needed when an agent filed it' for company adds a genuine nuance not spelled out in the schema.

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?

States a specific verb and resource — 'Fetch one document of an SEC filing by accession number' — plus the output format (clean plain text, HTML/iXBRL stripped). This clearly separates it from siblings like recent_filings and company_facts, which list or summarize rather than retrieve a single document body.

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?

Gives concrete selection guidance: primary document by default, any exhibit by file name, and 'Pass company if an agent filed it.' It does not name a sibling or state when to prefer a listing tool like recent_filings first, so a small routing gap remains.

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