Skip to main content
Glama
fairquery-agent-trust-mcp

fairquery-agent-trust-mcp

Official

List the documents and exhibits of one SEC filing

edgar_get_filing_index
Read-onlyIdempotent

Lists every file in an SEC EDGAR filing index, including exhibits and XBRL data, with type, size, URL, and filing header facts to help you locate attachments or 8-K item numbers.

Instructions

WHAT: List every file of one SEC filing from its EDGAR index page: the primary document, exhibits (EX-21 subsidiaries, EX-99.1 press release) and XBRL data files, with SEC document type, description, size and a direct URL, plus filing header facts (form, filing date, acceptance time, period of report, 8-K items, filers). WHEN: When you need an exhibit or attachment rather than the primary document, or the 8-K item numbers. Pass a row's url to edgar_get_filing_document. WHEN NOT: To find filings use edgar_list_filings first. To read a document's text use edgar_get_filing_document. For financial values use edgar_get_company_facts. COST: Free. Direct sec.gov requests from this MCP server. No APIFY_TOKEN and no Apify billing. RETURNS: One "filing_document" row per file, in SEC sequence order (documents, then data files). meta holds the filing header. Errors: INVALID_INPUT, INVALID_URL, COMPANY_NOT_FOUND, NOT_FOUND, SEC_FETCH_FAILED (retryable). BEHAVIOR: HTTPS only to www.sec.gov and data.sec.gov. User-Agent is "Fairquery info@getfairquery.com". At most 5 requests/second, shared by every free edgar_* tool. Redirects are refused. Responses are size-capped. The ticker map is cached for 6 hours. APIFY_TOKEN is not read. One GET of the {accession}-index.htm page. Company resolution may add one cached ticker-map request. PARAMETERS: Give either indexUrl (index_url from edgar_list_filings; it wins when present) or company together with accessionNumber (both required, otherwise INVALID_INPUT). company only locates the filing folder: any CIK that filed or co-filed the accession works. docTypes filters rows by exact, case-insensitive SEC document type ("EX-21" does not match "EX-21.1") before paging. meta.document_count is SEC's own count and ignores the filter. XBRL data-file doc_type values look like "EX-101.SCH" or "XML". url points at the raw file (the inline-XBRL viewer prefix is removed) and can be passed to edgar_get_filing_document as documentUrl. EXAMPLE: {"company":"AAPL","accessionNumber":"0000320193-24-000123","docTypes":["EX-21.1"]} -> one row with doc_type "EX-21.1" and a www.sec.gov Archives url. meta.form is "10-K".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edgar_get_filing_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional page size: items to return, integer 1-500 (default 100). Example: 50
offsetNoOptional zero-based number of items to skip, integer 0-1000000 (default 0); pass nextOffset from the previous response, e.g. 100
companyNoOptional, 1-200 chars; required together with accessionNumber when indexUrl is omitted. Ticker ("AAPL"), CIK ("320193") or registrant-name fragment ("Apple"; the first SEC ticker-map match is used).
docTypesNoOptional, default omitted = all files. 1-50 exact SEC document types, case-insensitive. Example: ["EX-21.1","EX-99.1"]
indexUrlNoOptional (alternative to company + accessionNumber). index_url from edgar_list_filings; must start with https://www.sec.gov/Archives/edgar/data/ and end with -index.htm or -index.html (else INVALID_URL). Example: https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/0000320193-24-000123-index.htm
accessionNumberNoOptional; required together with company when indexUrl is omitted. Format 10-2-6 digits with optional dashes (pattern ^\d{10}-?\d{2}-?\d{6}$), e.g. "0000320193-24-000123" or "000032019324000123"

Output Schema

NameRequiredDescriptionDefault
metaNoTool-specific context (summary counts, cost notes, ...)
countYesNumber of items in this page
itemsYesResult rows for this page
totalYesTotal items before paging
offsetYesOffset of the first item in this page
hasMoreYesTrue if more items exist after this page
nextOffsetYesOffset to pass for the next page, or null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world, while the description discloses a shared 5 req/s ceiling, HTTPS-only hosts, the exact User-Agent, refused redirects, size caps, a 6-hour ticker-map cache, zero cost/no APIFY_TOKEN, and the exact number of HTTP GETs plus the retryable SEC_FETCH_FAILED error class. That is materially more than the annotations convey.

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?

Labeled sections (WHAT/WHEN/WHEN NOT/COST/RETURNS/BEHAVIOR/PARAMETERS/EXAMPLE) front-load purpose and routing, and the worked example anchors the accession format. It is dense and longer than most definitions; the BEHAVIOR block repeats the free-tier framing already covered under COST, costing a little tightness.

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 six-parameter, no-required-parameter tool with dual calling modes, the definition covers precedence between the two input forms, the failure modes, ordering of results, and where header metadata lives. With an output schema present it correctly avoids over-describing return values.

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?

Even at 100% schema coverage the description adds semantics the schema does not: indexUrl wins when both forms are supplied, company merely locates the filing folder (any filing/co-filing CIK works), docTypes matches exact case-insensitive types so "EX-21" does not match "EX-21.1", and filtering happens before paging while meta.document_count ignores the filter. It also clarifies that url strips the inline-XBRL viewer prefix.

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 WHAT line names a specific verb and resource — list every file of one SEC filing from its EDGAR index page — and enumerates exactly what comes back (primary document, exhibits, XBRL data files, plus header facts). It is unmistakable against siblings like edgar_get_filing_document (reads text) and edgar_list_filings (finds filings).

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?

Explicit WHEN and WHEN NOT blocks route the agent: use this for exhibits/attachments or 8-K item numbers, use edgar_list_filings to find filings, edgar_get_filing_document to read text, edgar_get_company_facts for financial values. It also states the handoff — pass a row's url to edgar_get_filing_document.

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