Skip to main content
Glama

Search filing text

filing_search
Read-onlyIdempotent

Keyword search across the text of EDGAR documents filed since 2001 (10-K, 10-Q, 8-K and their exhibits, proxies, S-1s...) through SEC EDGAR full-text search. Put a phrase in double quotes. Returns documents, best match first, each with its form, filing date, the companies on it (FinancialMD ids where covered) and links to the document and the filing index. Use it to find which companies mention a risk, customer, product or term; then read numbers with financials_standardized or the document with filing_document.

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": {
      "q": "<q>"
    },
    "name": "filing_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesWords to find; a phrase in double quotes matches exactly. Letters, digits, spaces and common punctuation.
toNoFiled on or before (YYYY-MM-DD).
fromNoFiled on or after (YYYY-MM-DD).
pageNoPage number, 1-based.
formsNoComma-separated form types, for example "10-K,10-Q".
limitNoMaximum number of periods or items to return (default 10, at most 100).
companyNoOptional: only this company's documents. Company: "ticker:AAPL" (or bare "AAPL", or "ticker:AAPL.XNAS"), "cik:320193", "fmd_01H...", or for a non-SEC EU/UK issuer "lei:<LEI>".

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "forms": "10-K",
      -    "from": "2026-01-01",
      -    "q": "\"going concern\""
      -  },
      -  {
      -    "company": "ticker:AAPL",
      -    "q": "tariffs"
      -  }
      -]
    • changedInput schema / properties / company / description
      Previous value: -"Optional: only this company's documents. Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI (\"lei:IOG4E947OATN0KJYSD45\") or its fmd_ id."New value: +"Optional: only this company's documents. Company: \"ticker:AAPL\" (or bare \"AAPL\", or \"ticker:AAPL.XNAS\"), \"cik:320193\", \"fmd_01H...\", or for a non-SEC EU/UK issuer \"lei:<LEI>\"."
    • removedInput schema / properties / company / examples
      Removed value: -[
      -  "ticker:AAPL",
      -  "cik:320193",
      -  "fmd_01HZX8Q3K9W2M4N6P8R0T2V4X6"
      -]
    • 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: -"{ total, items: [{ accession, form, file_type, filed, period_ending, companies: [{ cik, name, fmd_id, ticker }], document_url, index_url }], next_page, source }"
    • 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. Changed1 schema field changed
    • changedInput schema / properties / company / description
      Previous value: -"Optional: only this company's documents. Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL."New value: +"Optional: only this company's documents. Company identifier: a FinancialMD id (\"fmd_01H...\"), an SEC CIK (\"cik:320193\"), or a ticker (\"ticker:AAPL\", optionally with the MIC \"ticker:AAPL.XNAS\"). A bare ticker like \"AAPL\" is accepted and sent as ticker:AAPL. An issuer on an EU or UK regulated market that does not file with the SEC has no CIK: pass its LEI (\"lei:IOG4E947OATN0KJYSD45\") or its fmd_ id."
  3. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description adds real context beyond them: the coverage window (filings since 2001), result ordering ('best match first'), and the exact fields returned (form, filing date, companies with FinancialMD ids, document and index links). It does not mention rate limits or result-cap behavior, but the schema's limit/page fields cover paging.

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?

Three sentences, front-loaded with the scope and coverage window, then syntax, then what comes back, then the next-tool routing. No filler. The only minor waste is the return-field enumeration, which the output schema already carries.

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 full-text search tool with a complete input schema, an output schema and full annotation coverage, the description supplies everything needed to call it correctly: what corpus, what syntax, what ordering, what is returned, and which sibling to use next. Nothing material is left to inference.

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%, so the schema already documents every parameter including the double-quote phrase rule, date ranges, form lists and the company identifier formats. The description's 'Put a phrase in double quotes' restates the q schema description rather than adding syntax the agent could not already see. Baseline 3 is appropriate.

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 description names a specific verb and resource ('Keyword search across the text of EDGAR documents filed since 2001'), scopes it to concrete form types (10-K, 10-Q, 8-K, exhibits, proxies, S-1s), and explicitly positions it against siblings ('read numbers with financials_standardized or the document with filing_document'). An agent can distinguish this from filings_list or filing_document without opening any schema.

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 gives a clear positive use case ('find which companies mention a risk, customer, product or term') and names the downstream alternatives with the condition that selects them (financials_standardized for numbers, filing_document for full text). What is missing is a negative boundary — e.g., when to prefer filings_list or filing_get over a keyword sweep — but the routing guidance is unusually 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