Skip to main content
Glama

MetricDuck — Financial Analysis

Screen Companies by Metrics

screen_companies
Read-only

Screen companies that file with the SEC by financial metrics. Find stocks matching quantitative criteria. Foreign private issuers report annually, so they match balance-sheet (ss) filters but rarely TTM, growth or valuation filters.

Metric IDs, period types (incl. growth: period_type="ttm.yoy") and sector codes are listed on the filters / sectors parameters. LATEST-snapshot values; full history via get_metric_history.

Tag filtering (required_tags / excluded_tags) selects by business-model classification; unclassified companies are excluded from tag-filtered results.

Use Cases:

  • "High ROIC tech stocks" -> filters=[{metric_id:"roic", operator:"gt", value:0.15}], sectors=["TECH"]

  • "Undervalued profitable industrials" -> filters=[{metric_id:"pe_ratio", operator:"lt", value:15}, {metric_id:"pe_ratio", operator:"gt", value:0}], sectors=["IND"], sort_by="pe_ratio", sort_order="asc"

  • "Revenue growing >10% YoY" -> filters=[{metric_id:"revenues", operator:"gt", value:0.10, period_type:"ttm.yoy"}], sort_by="revenue_growth"

  • "AI infrastructure companies not exposed to China supply chain" -> required_tags=["ai_ml_infrastructure"], excluded_tags=["china_supply_chain_heavy"]

  • "Profitable subscription businesses" -> filters=[{metric_id:"net_margin", operator:"gt", value:0.10}], required_tags=["subscription_recurring"]

To screen by filing SIGNALS (tone, covenant risk, material weakness, etc.), use screen_filing_signals — a universe-correct cross-company signal screen — then intersect with a metric screen here.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (`limit` rows per page); the reply gives the page count.
limitNoRows per page (default 20, max 50). Responses cap at ~20K chars: a lower limit or stricter filters keep them whole.
filtersYesMetric filters
sectorsNoSector codes: TECH, FIN, HEALTH, CONS_STAPLES, CONS_DISC, IND, ENERGY, UTIL, RE, MAT, COMM.
sort_byNoMetric to sort by (default market_cap): a metric ID, revenue_growth / earnings_growth, or a reply's column key (e.g. revenues_ttm_yoy). An unsupported sort is an error.
tickersNoOnly these tickers (max 50), e.g. a watchlist.
sort_orderNo'desc' (default) or 'asc' (e.g. lowest P/E first). Companies with no value sort last.desc
excluded_tagsNoClassification tags results must NOT have (e.g., ['china_supply_chain_heavy', 'regulated_industry']).
required_tagsNoClassification tags all results must have (e.g., ['ai_ml_infrastructure', 'subscription_recurring']). Tags: cloud_infrastructure, saas_enterprise, saas_smb, marketplace_platform, semiconductor_design, semiconductor_foundry, financial_services_traditional, insurance_carrier, investment_management, pharmaceutical_discovery, medical_devices, retail_physical, ecommerce_direct, media_streaming, subscription_recurring, usage_based, hardware_sale, transaction_fee, advertising_based, government_contract, services_project, ai_ml_core_product, ai_ml_infrastructure, semiconductor_advanced_node, data_center_hyperscale, cybersecurity, autonomous_vehicles, electric_vehicle, renewable_energy, biotech_genomics, mrna_platform, robotics_automation, enterprise_b2b_large, smb_focused, consumer_direct, developer_platform, china_revenue_heavy, china_supply_chain_heavy, us_domestic_only, global_diversified, regulated_industry, export_controlled, dual_use_technology, foreign_private_issuer, holding_company_structure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / filters / items / properties / period_type / description
      Previous value: -"Period: 'ttm' (default), 'ss' (balance-sheet snapshot), growth pairs revenues/net_income/eps_basic/eps_diluted/fcf/roic @ 'ttm.yoy', revenues/fcf @ 'ttm.cagr3', ttl_assets @ 'ss.yoy', and 'q.med8'/'q.trend8'/'q.stdv8' valuation-quality series (pe_ratio, ev_ebitda, ev_fcf, roic). LATEST-snapshot values only; an unsupported metric+period returns a 422 naming the supported set (full history: get_metric_history)."New value: +"Period: 'ttm' (default), 'ss' (balance-sheet snapshot), growth pairs revenues/net_income/eps_basic/eps_diluted/fcf/roic @ 'ttm.yoy', revenues/fcf @ 'ttm.cagr3', ttl_assets @ 'ss.yoy', 'fy' for stock_repurch/buyback_yield/total_shareholder_yield (each company's latest fiscal year), 'q.med8'/'q.trend8'/'q.stdv8' valuation-quality series (pe_ratio, ev_ebitda, ev_fcf, roic). LATEST-snapshot values only; an unsupported metric+period returns a 422 naming the supported set (full history: get_metric_history)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20, max 50). Responses cap at ~20K chars: a lower limit or stricter filters keep them whole."New value: +"Rows per page (default 20, max 50). Responses cap at ~20K chars: a lower limit or stricter filters keep them whole."
    • addedInput schema / properties / page
      Added value: +{
      +  "default": 1,
      +  "description": "Page number, 1-based (`limit` rows per page); the reply gives the page count.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / sort_by / description
      Previous value: -"Metric ID to sort by (default: 'market_cap')"New value: +"Metric to sort by (default market_cap): a metric ID, revenue_growth / earnings_growth, or a reply's column key (e.g. revenues_ttm_yoy). An unsupported sort is an error."
    • addedInput schema / properties / sort_order
      Added value: +{
      +  "default": "desc",
      +  "description": "'desc' (default) or 'asc' (e.g. lowest P/E first). Companies with no value sort last.",
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / tickers
      Added value: +{
      +  "description": "Only these tickers (max 50), e.g. a watchlist.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, but the description adds behavior not covered there: results are latest-snapshot only, unsupported metric+period combinations return a 422 naming the supported set, unclassified companies are dropped from tag-filtered results, and foreign private issuers behave differently across period types. That is substantive operational context beyond the safety profile.

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, then caveats, then a scannable Use Cases block that maps natural-language asks to concrete payloads. The section is somewhat long and the pointer to 'filters / sectors parameters' is slightly redundant with the schema, but almost every sentence carries distinct information.

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?

For a nine-parameter screening tool with no output schema, the description covers filtering semantics, period-type quirks, tag classification, pagination risk (via the limit guidance) and alternative-tool routing. It stops short of describing the shape of returned rows or columns, though sort_by's schema note on reply column keys partially compensates.

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 is 3; the description adds real meaning by showing how filters compose (multiple clauses on pe_ratio to exclude loss-makers), how period_type growth values are expressed ('ttm.yoy'), and how tag filtering interacts with the metric screen. It does not attempt to re-enumerate every metric ID or sector code, correctly delegating those to the schema.

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 ('Screen companies that file with the SEC by financial metrics') and an explicit scope boundary ('LATEST-snapshot values; full history via get_metric_history'). It also names the sibling that handles a different screening mode (screen_filing_signals), so an agent can distinguish this tool from its nearest alternative without opening a 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?

Provides five concrete when-to-use examples with literal filter payloads, plus explicit routing rules: use screen_filing_signals for tone/covenant/material-weakness screening, and get_metric_history for historical series. It also states a meaningful exclusion (foreign private issuers rarely match TTM/growth/valuation filters) and clarifies tag-filtering behavior for unclassified companies.

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