Skip to main content
Glama

Filing document: links, PDF and page images

filing_document
Read-onlyIdempotent

Return where a filing's documents are: the primary document on EDGAR, the filing index, the full submission text, the inline XBRL viewer, a FinancialMD URL that serves the primary HTML document, and URLs for the same document as a PDF with selectable text and as page images. format "pages" renders the PDF if needed and returns its page count; add page to get the URL of that page's PNG image, so an answer can cite a page. The first render of a document can take some seconds; an upstream_unavailable error with a retry time means it is still rendering. A document past the rendering limits answers not_covered with the EDGAR link. Use it when you need to read, link or cite a page of the text of a filing.

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

Input Schema

NameRequiredDescriptionDefault
pageNoA page number of the PDF, from 1. Implies format "pages"; the answer names that page's image URL.
formatNolinks (default): the document URLs. pages: the PDF page count and its URLs.
accessionYesAccession number, e.g. 0000320193-24-000123.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "accession": "0000320193-24-000123"
      -  },
      -  {
      -    "accession": "0000320193-24-000123",
      -    "page": 12
      -  }
      -]
    • removedOutput schema / description
      Removed value: -"The FinancialMD envelope (docs/API.md section 2): data plus meta (request_id, as_of knowledge time, matched company, coverage, pipeline_version, licence, terms, proof_base). Every numeric value inside data is an object with value, unit, currency, period, known interval, restated flag, method and a proof pointing at the filing. On failure the result is isError with an error object instead."
    • removedOutput schema / properties / data / description
      Removed value: -"links: { accession, registry, form, filed, primary_doc, document_url, index_url, full_text_url, inline_xbrl_viewer_url, html_url, pdf: { available, url, pages_url, page_image_url_template, note } }. pages: { accession, form, filed, document_url, pages, pdf_url, pdf_bytes, page_image_url_template, page_image, images_inlined, images_skipped, render_version, rendered_at }"
    • removedOutput schema / properties / error / description
      Removed value: -"Present only on isError results: the API error code and message plus remedy hints."
    • removedOutput schema / properties / error / properties
      Removed value: -{
      -  "available_datasets": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "code": {
      -    "type": "string"
      -  },
      -  "docs": {
      -    "type": "string"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "request_id": {
      -    "type": "string"
      -  },
      -  "retry_after": {
      -    "type": [
      -      "integer",
      -      "string"
      -    ]
      -  },
      -  "status": {
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / meta / description
      Removed value: -"Request metadata: request_id, as_of, company resolution, coverage, pipeline_version, licence, terms, proof_base."
    • removedOutput schema / properties / meta / properties
      Removed value: -{
      -  "as_of": {
      -    "type": "string"
      -  },
      -  "attribution": {
      -    "description": "Citations a source requires on anything shown from the answer.",
      -    "items": {
      -      "properties": {
      -        "source": {
      -          "type": "string"
      -        },
      -        "text": {
      -          "type": "string"
      -        },
      -        "url": {
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "company": {
      -    "properties": {
      -      "cik": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "fmd_id": {
      -        "type": "string"
      -      },
      -      "matched_by": {
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "coverage": {
      -    "properties": {
      -      "from": {
      -        "type": "string"
      -      },
      -      "periods": {
      -        "type": "integer"
      -      },
      -      "to": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "licence": {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  "pipeline_version": {
      -    "type": "string"
      -  },
      -  "proof_base": {
      -    "type": "string"
      -  },
      -  "request_id": {
      -    "type": "string"
      -  },
      -  "terms": {
      -    "type": "string"
      -  }
      -}
  2. Changed4 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "accession": "0000320193-24-000123"
      -  }
      -]New value: +[
      +  {
      +    "accession": "0000320193-24-000123"
      +  },
      +  {
      +    "accession": "0000320193-24-000123",
      +    "page": 12
      +  }
      +]
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "links (default): the document URLs. pages: the PDF page count and its URLs.",
      +  "enum": [
      +    "links",
      +    "pages"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "A page number of the PDF, from 1. Implies format \"pages\"; the answer names that page's image URL.",
      +  "maximum": 1500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / data / description
      Previous value: -"{ accession, registry, form, filed, primary_doc, document_url, index_url, full_text_url, inline_xbrl_viewer_url, html_url, pdf }"New value: +"links: { accession, registry, form, filed, primary_doc, document_url, index_url, full_text_url, inline_xbrl_viewer_url, html_url, pdf: { available, url, pages_url, page_image_url_template, note } }. pages: { accession, form, filed, document_url, pages, pdf_url, pdf_bytes, page_image_url_template, page_image, images_inlined, images_skipped, render_version, rendered_at }"
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations by disclosing real runtime behavior: a first render can take seconds, an upstream_unavailable error carries a retry time while rendering continues, and documents beyond rendering limits fall back to not_covered with the EDGAR link. It also explains that requesting a page triggers rendering of the whole PDF.

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?

The return-value inventory is front-loaded and every subsequent sentence adds operational detail (rendering, errors, fallback) rather than restating the schema. It is dense as a single block, but no sentence is redundant; only the long URL enumeration could be tightened.

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 three-parameter read tool with an output schema, annotations and full schema coverage, nothing needed for correct invocation is missing: return artifacts, the page/format interaction, latency, failure modes and fallback are all covered.

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 already 100%, so the baseline is 3, and the description adds genuine meaning on top: 'pages' renders the PDF and yields a page count, while adding page implies format 'pages' and names that page's image URL. That implicit-parameter interplay is not obvious from the schema alone.

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 description opens with a specific verb and resource ('Return where a filing's documents are') and enumerates exactly which artifacts come back: EDGAR primary document, filing index, submission text, XBRL viewer, FinancialMD URL, PDF and page PNGs. That inventory implicitly separates it from data-oriented siblings like filing_facts, but no sibling is named so the differentiation is inferred 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?

It closes with an explicit use trigger: 'Use it when you need to read, link or cite a page of the text of a filing,' and the format/page mechanics show the intended reading-versus-citing paths. There are no stated exclusions or named alternatives for cases where a caller wants filing metadata or extracted facts instead.

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