Skip to main content
Glama

Screen all companies

screen
Read-onlyIdempotent

Screen every covered company on its latest period: range filters on metrics, a sort and paging, all applied on the server over the whole universe. A metric is a standardized concept id (from metrics_list, for example income_statement_total_revenues) or a ratio id (gross_margin, operating_margin, net_margin, fcf_margin, revenue_growth_yoy, roe, roa, asset_turnover, current_ratio, debt_to_equity, interest_coverage, eps_basic, eps_diluted, bank and insurer ratios) or a valuation id (market_cap, enterprise_value, pe_ttm, ps_ttm, pb, ev_ebitda_ttm, ev_ebit_ttm, fcf_yield, dividend_yield: the latest IEX close times the screened period, so use period_type ltm for trailing multiples) or a multi-year growth id (revenue_cagr_3y, revenue_cagr_5y, revenue_cagr_10y, net_income_cagr_3y, net_income_cagr_5y: compound annual growth from annual figures, the start matched by year, null when that year is missing or the figures are not positive). Filter bounds are raw values: 0.2 is 20 percent, amounts are in the reporting currency. A company with no value for a filtered metric does not match; when sorting, missing values come last. Each item has the company (with sector and industry), the period screened and one value object with proof per metric, so every number can be cited. data.total is the size of the whole match and data.next_cursor pages through it. as_of screens on what was known on a date. Use it to find or rank companies by fundamentals or valuation instead of calling each company in turn.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofNoKnowledge date (YYYY-MM-DD or RFC 3339): the answer is what was known at that instant. Omit for the current view.
limitNoMaximum number of periods or items to return (default 25, at most 200).
queryNoOptional name or ticker search to narrow the universe.
cursorNoOpaque cursor from a previous page (data.next_cursor).
sectorNoOptional exact sector (case-insensitive).
countryNoOptional ISO 3166-1 alpha-2 country code.
filtersNoRange filters, all of which must hold. Give min, max or both (inclusive, raw values).
metricsNoColumns to return: concept ids or ratio ids (default: revenue, net income, the three margins, revenue growth, return on equity).
sort_byNoA metric id, "name" or "ticker" (default name).
currencyNoReporting currency (ISO 4217), e.g. JPY. Amounts are never compared across currencies: a sort or filter on a money column without this screens the currency most companies of the screen report in (USD across the whole universe).
industryNoOptional exact industry (case-insensitive).
sort_dirNoSort direction (default asc).asc
period_typeNoWhich latest period to screen: annual (default), quarterly or ltm.annual
include_staleNoKeep companies whose latest period ended more than 18 months before as_of (left out by default; each item carries stale).

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "filters": [
      -      {
      -        "metric": "net_margin",
      -        "min": 0.2
      -      }
      -    ],
      -    "limit": 20,
      -    "sort_by": "roe",
      -    "sort_dir": "desc"
      -  },
      -  {
      -    "filters": [
      -      {
      -        "metric": "income_statement_total_revenues",
      -        "min": 1000000000
      -      },
      -      {
      -        "max": 1,
      -        "metric": "revenue_growth_yoy",
      -        "min": 0.1
      -      }
      -    ],
      -    "metrics": [
      -      "income_statement_total_revenues",
      -      "revenue_growth_yoy"
      -    ],
      -    "period_type": "ltm"
      -  },
      -  {
      -    "filters": [
      -      {
      -        "metric": "revenue_cagr_5y",
      -        "min": 0.15
      -      }
      -    ],
      -    "limit": 20,
      -    "metrics": [
      -      "revenue_cagr_5y",
      -      "net_income_cagr_5y"
      -    ],
      -    "sort_by": "revenue_cagr_5y",
      -    "sort_dir": "desc"
      -  }
      -]
    • changedInput schema / properties / as_of / description
      Previous value: -"Knowledge date or timestamp (YYYY-MM-DD or RFC 3339). The answer is what FinancialMD knew at that instant: only facts whose known interval contains as_of. Omit for the current view."New value: +"Knowledge date (YYYY-MM-DD or RFC 3339): the answer is what was known at that instant. Omit for the current view."
    • removedInput schema / properties / as_of / examples
      Removed value: -[
      -  "2024-11-15",
      -  "2025-02-01T00:00:00Z"
      -]
    • 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: -"{ items: [{ company { fmd_id, cik, name, country, reporting_template, primary_ticker, primary_mic, sector, industry }, period, stale, currency, values: { <metric id>: value object or null; a ratio over a zero or negative denominator has value null and withheld_reason } }], next_cursor, period_type, metrics: [{ id, kind, label, metric_format, formula }], sort, total, universe, currency (the one reporting currency screened, or null), stale_after_days, excluded { stale, other_currency }, notes }."
    • 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 / examples
      Previous value: -[
      -  {
      -    "filters": [
      -      {
      -        "metric": "net_margin",
      -        "min": 0.2
      -      }
      -    ],
      -    "limit": 20,
      -    "sort_by": "roe",
      -    "sort_dir": "desc"
      -  },
      -  {
      -    "filters": [
      -      {
      -        "metric": "income_statement_total_revenues",
      -        "min": 1000000000
      -      },
      -      {
      -        "max": 1,
      -        "metric": "revenue_growth_yoy",
      -        "min": 0.1
      -      }
      -    ],
      -    "metrics": [
      -      "income_statement_total_revenues",
      -      "revenue_growth_yoy"
      -    ],
      -    "period_type": "ltm"
      -  }
      -]New value: +[
      +  {
      +    "filters": [
      +      {
      +        "metric": "net_margin",
      +        "min": 0.2
      +      }
      +    ],
      +    "limit": 20,
      +    "sort_by": "roe",
      +    "sort_dir": "desc"
      +  },
      +  {
      +    "filters": [
      +      {
      +        "metric": "income_statement_total_revenues",
      +        "min": 1000000000
      +      },
      +      {
      +        "max": 1,
      +        "metric": "revenue_growth_yoy",
      +        "min": 0.1
      +      }
      +    ],
      +    "metrics": [
      +      "income_statement_total_revenues",
      +      "revenue_growth_yoy"
      +    ],
      +    "period_type": "ltm"
      +  },
      +  {
      +    "filters": [
      +      {
      +        "metric": "revenue_cagr_5y",
      +        "min": 0.15
      +      }
      +    ],
      +    "limit": 20,
      +    "metrics": [
      +      "revenue_cagr_5y",
      +      "net_income_cagr_5y"
      +    ],
      +    "sort_by": "revenue_cagr_5y",
      +    "sort_dir": "desc"
      +  }
      +]
  3. Changed3 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Reporting currency (ISO 4217), e.g. JPY. Amounts are never compared across currencies: a sort or filter on a money column without this screens the currency most companies of the screen report in (USD across the whole universe).",
      +  "pattern": "^[A-Za-z]{3}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_stale
      Added value: +{
      +  "default": false,
      +  "description": "Keep companies whose latest period ended more than 18 months before as_of (left out by default; each item carries stale).",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / data / description
      Previous value: -"{ items: [{ company { fmd_id, cik, name, country, reporting_template, primary_ticker, primary_mic, sector, industry }, period, values: { <metric id>: value object or null } }], next_cursor, period_type, metrics: [{ id, kind, label, metric_format, formula }], sort, total, universe }."New value: +"{ items: [{ company { fmd_id, cik, name, country, reporting_template, primary_ticker, primary_mic, sector, industry }, period, stale, currency, values: { <metric id>: value object or null; a ratio over a zero or negative denominator has value null and withheld_reason } }], next_cursor, period_type, metrics: [{ id, kind, label, metric_format, formula }], sort, total, universe, currency (the one reporting currency screened, or null), stale_after_days, excluded { stale, other_currency }, notes }."
  4. 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 readOnly/idempotent/safe, and the description layers on real behavior: filtering happens server-side over the full universe, a company with no value for a filtered metric does not match, missing values sort last, money columns are never compared across currencies without an explicit currency, and stale periods are dropped by default. These are non-obvious semantics an agent could not recover from the annotations.

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?

Purpose and scope are front-loaded and nearly every sentence carries information, but the metric-id enumeration runs as one very long sentence and makes the block dense. Slight trimming of the id lists, or splitting the taxonomy into its own sentence, would improve scanability without losing content.

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 14-parameter tool with an output schema and rich annotations, nothing essential is missing: metric id provenance, currency comparison caveat, stale handling, pagination via data.total/data.next_cursor, per-item proof for citation, and as_of semantics are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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, but the description adds substantial meaning: it defines the metric id taxonomy (concept ids, ratio ids, valuation ids, multi-year growth ids), states that filter bounds are raw values (0.2 = 20 percent), explains that valuation multiples are latest close times the screened period, and defines the CAGR null conditions. That is well beyond restating 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?

Opens with a specific verb and resource plus scope: 'Screen every covered company on its latest period', with server-side range filters, sort and paging over 'the whole universe'. It also names metrics_list as the id source and contrasts with 'calling each company in turn', so an agent can place it against the per-company siblings.

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?

Explicit when-to-use: 'find or rank companies by fundamentals or valuation instead of calling each company in turn', plus a usage rule that valuation ids require period_type ltm for trailing multiples. No when-not conditions or prerequisites (e.g., cursor handling rules) are spelled out, keeping it below a 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