Skip to main content
Glama

EdgarStack

Screen all SEC filers by a metric or a computed ratio

screen_companies
Read-onlyIdempotent

Find and rank companies across all SEC filers for a calendar-year (optionally quarterly) frame, using SEC's XBRL Frames API. Screen by EITHER:

  • metric: one reported value (revenue, grossProfit, operatingIncome, netIncome, epsBasic, epsDiluted, totalAssets, currentAssets, totalLiabilities, currentLiabilities, longTermDebt, totalEquity, cashAndEquivalents, operatingCashFlow, capex, rdExpense, operatingExpenses); or

  • a ratio: a named preset (grossMargin, operatingMargin, netMargin, opexRatio, rdIntensity, capexIntensity, fcfMargin, currentRatio, debtToEquity, returnOnAssets, returnOnEquity, cashToAssets, assetTurnover) or a custom numerator/denominator from the same metric list. Ratio inputs are joined only when all source metrics share the same periodEnd, denominators must be positive, and unusually large ratios carry a dataQualityFlags warning. Revenue uses the preferred tag and two known US-GAAP synonyms; the response lists tags queried and each result reports the tag selected. SEC calendar-year frames can contain an issuer's closest fiscal period rather than one ending December 31, so compare periodEnd (and sourceAccessionNumbers) across results. Ask for a min/max threshold when one is needed rather than guessing.

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": {
      "year": "<year>"
    },
    "name": "screen_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNoMaximum value (metric) or ratio filter
minNoMinimum value (metric) or ratio filter
sortNodesc
yearYesCalendar year for the frame period
limitNo
ratioNoA named preset ratio
metricNoScreen by one reported metric. Do not combine with ratio/numerator/denominator.
quarterNoOmit for full fiscal year (duration metrics) or a Q4 year-end snapshot (balance-sheet metrics)
numeratorNoCustom ratio numerator metric, if not using a preset
denominatorNoCustom ratio denominator metric, if not using a preset

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / ratio / enum
      Previous value: -[
      -  "grossMargin",
      -  "operatingMargin",
      -  "netMargin",
      -  "rdIntensity",
      -  "capexIntensity",
      -  "fcfMargin",
      -  "currentRatio",
      -  "debtToEquity",
      -  "returnOnAssets",
      -  "returnOnEquity",
      -  "cashToAssets",
      -  "assetTurnover"
      -]New value: +[
      +  "grossMargin",
      +  "operatingMargin",
      +  "netMargin",
      +  "opexRatio",
      +  "rdIntensity",
      +  "capexIntensity",
      +  "fcfMargin",
      +  "currentRatio",
      +  "debtToEquity",
      +  "returnOnAssets",
      +  "returnOnEquity",
      +  "cashToAssets",
      +  "assetTurnover"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safe-read profile, and the description adds real substance: ratio joins require matching periodEnd, denominators must be positive, large ratios raise dataQualityFlags, revenue uses a preferred tag with synonyms and reports the tag chosen. It also warns that SEC calendar-year frames may contain off-calendar fiscal periods, though it omits pagination and result-shape details.

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-loads the verb and resource, then uses a bulleted EITHER/OR structure that maps cleanly onto the parameter modes. The 18-item metric list is long but functional; the closing data-quality caveats are dense and slightly buried but still relevant.

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 and 10 parameters, the description does a solid job of describing what comes back (tags queried, selected tag per result, dataQualityFlags) and the pitfalls of comparing periodEnd across results. Minor gaps remain around ordering/truncation semantics, which the schema's limit and sort defaults partially cover.

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 80%, so the baseline is 3, but the description earns an upgrade by enumerating the allowed metric set (far richer than the schema's "Screen by one reported metric") and explaining that custom numerator/denominator draw from that same list. It adds little on min/max, sort, and limit, which the schema already documents.

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 scope ("Find and rank companies across all SEC filers") plus the data source and the two distinct screening modes. An agent can tell this apart from compute_ratios or peer_compare 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?

Clearly frames the two mutually exclusive paths (single metric vs preset/custom ratio) and instructs the agent to request min/max thresholds rather than guessing them. It does not name sibling tools or state explicit exclusions, which keeps it at 4 rather than 5.

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