Skip to main content
Glama

Search a filing document

search_document
Read-onlyIdempotent

Find where one filing document mentions something: every match of query, each with a viewer URL that highlights it, a snippet, and the heading it sits under. Use it for "does X's 10-K mention Y", "where does the proxy talk about Z", or to find the exact sentence before linking it. The query is matched as a phrase first (case, whitespace and curly quotes ignored); if the phrase isn't there and it has two or more words, it returns the paragraphs that contain all of them. Name the filing by accession, or by company plus form for that form's newest filing; with neither form nor accession it searches the newest annual report (10-K, 20-F, 40-F), else the newest 10-Q. No web search or latest_filing call needed first. For a section heading, find_section is better.

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": {
      "query": "<query>"
    },
    "name": "search_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
cikNoSEC Central Index Key, padded or not: "1318605"
formNoForm type, e.g. "10-K", "10-Q", "8-K", "DEF 14A" (case-insensitive; a dash may stand for a space), or "periodic" for 10-K, 10-Q, 20-F and 40-F. Searches that form's newest readable filing.
limitNoHits to return, in document order. Default 10.
queryYesWords or a phrase to find, e.g. "Shanghai" or "going concern"
offsetNoSkip this many hits, for paging. Default 0.
tickerNoExchange ticker, e.g. "TSLA"
companyNoCompany name to look up when you don't know the CIK or ticker, e.g. "Anthropic" or "Berkshire Hathaway". The best match is used; the reply names it and lists other matches, so check it is the company you meant.
filenameNoWith `accession`: a document inside the filing, e.g. ex21.htm. Omit for the primary document.
accessionNoSearch this filing instead (dashed or not, or an EDGAR URL).
amendmentsNoWith `form`, also consider its amendments (10-K/A with 10-K).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description goes well beyond them: it discloses the two-stage matching strategy (phrase first with case/whitespace/curly-quote normalization, then all-words paragraph fallback), the default filing resolution chain (newest annual report, else newest 10-Q), and the shape of each hit.

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 purpose and output shape, then usage, then matching behavior, then filing selection, then the sibling pointer — a sensible ordering with little waste. The matching-fallback sentence is dense and long, costing a bit of readability.

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 10-parameter tool with no output schema, the description covers what an agent needs: what a result contains, how the target filing is resolved when under-specified, and how matching degrades when the exact phrase is absent. Nothing material is left to guesswork.

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 100%, so the baseline would be 3, but the description adds real meaning the schema does not: the three mutually exclusive filing-selection paths (accession, company+form, or neither with its fallback chain) and the interaction between filename and accession. It does not add much on limit/offset beyond what the schema already says.

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 — 'Find where one filing document mentions something' — and immediately characterizes the output (viewer URL with highlight, snippet, heading). It also distinguishes itself from siblings by naming find_section for section headings and saying latest_filing is unnecessary.

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?

It gives concrete use cases ("does X's 10-K mention Y", "where does the proxy talk about Z", finding the exact sentence before linking) plus an explicit exclusion: 'For a section heading, find_section is better.' It also preempts a common wrong turn with 'No web search or latest_filing call needed first.'

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