Skip to main content
Glama

EdgarStack

Extract a specific Item section from a filing

get_filing_section
Read-onlyIdempotent

Fetch a 10-K or 10-Q and extract one Item section's text (e.g. itemNumber '1A' for Risk Factors, '7' for MD&A in a 10-K, '2' for MD&A in a 10-Q). Use list_recent_filings first to get the accessionNumber and primaryDocument. If what the user asked for doesn't map cleanly to one Item — e.g. "the financial section" could mean Item 7 (Management's Discussion and Analysis of Financial Condition and Results of Operations, i.e. MD&A — management's narrative) or Item 8 (Financial Statements and Supplementary Data, i.e. the actual audited statements) in a 10-K — ask which they mean, naming both Item numbers AND their official headings, instead of picking one silently; pulling the wrong section wastes the call and can read as if it answered the question when it didn't. The extractor anchors on line-level Item headings and returns a qualityWarning for unusually short sections; it is still heuristic, so check the linked SEC filing when the passage matters.

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>",
      "accessionNumber": "<accessionNumber>",
      "primaryDocument": "<primaryDocument>",
      "formType": "<formType>",
      "itemNumber": "<itemNumber>"
    },
    "name": "get_filing_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickerYes
formTypeYes
itemNumberYese.g. '1A', '7', '2'
accessionNumberYesFrom list_recent_filings, e.g. 0000320193-26-000026
primaryDocumentYesFrom list_recent_filings, e.g. aapl-20240928.htm

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accessionNumber / description
      Previous value: -"From list_recent_filings, e.g. 0000320193-24-000123"New value: +"From list_recent_filings, e.g. 0000320193-26-000026"
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description still adds real value beyond them: the line-level heading anchoring method, the qualityWarning emitted for unusually short sections, and the caveat that the extractor is heuristic and should be verified against the linked SEC filing. It does not cover truncation limits or text-size behavior on very long Items, so it falls short of the top of the scale.

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 purpose and examples before the disambiguation policy, and every sentence carries operational weight. The mid-sentence definition of MD&A and Item 8's full official heading is somewhat verbose but justified by the ambiguity instruction it supports.

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?

With no output schema, the description responsibly discloses what comes back (extracted section text plus a qualityWarning) and flags the heuristic reliability caveat. Missing only secondary details like maximum extractable section length or behavior for a section that cannot be located.

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 only 60%, so description must compensate, and it does for the most error-prone parameter: itemNumber's meaning varies by form type ('7' is MD&A in a 10-K but '2' is MD&A in a 10-Q). It also reinforces where accessionNumber and primaryDocument come from, and formType is enum-constrained in the schema. ticker receives no discussion, leaving a small gap.

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 a 10-K/10-Q and extract one Item section's text — and grounds it with concrete itemNumber examples ('1A' Risk Factors, '7' MD&A in a 10-K, '2' MD&A in a 10-Q). An agent can distinguish this from list_recent_filings or diff_filing_sections without opening either schema.

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?

Explicitly prescribes the prerequisite step ('Use list_recent_filings first to get the accessionNumber and primaryDocument') and gives a when-not rule: if the request doesn't map cleanly to one Item, ask the user rather than guessing. The Item 7 vs Item 8 ambiguity example makes the disambiguation policy concrete.

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