Skip to main content
Glama

Screen companies by market cap

screen_stocks
Read-onlyIdempotent

US-listed companies by market cap, largest first (dir=asc for smallest first), optionally within min_market_cap_usd and max_market_cap_usd (US dollars, both inclusive; give either, both or neither). For companies around $100 million, try for example min_market_cap_usd 50000000 and max_market_cap_usd 200000000. Market cap is the latest daily closing price of the company's primary ticker times the shares outstanding on its latest SEC 10-K, 10-Q or 20-F cover page (shares_as_of), adjusted for stock splits since then (split_factor, 1 = none). When the cover page lists a share class under its own ticker, as Berkshire Hathaway does with BRK.A and BRK.B, that class is priced at its own close and the classes are added up (shares is then the total of all classes); classes without a ticker of their own count at the primary ticker's close. Form 20-F filers are included only when the cover page shows that the US ticker is ordinary shares, not ADSs (for example NBIS); their share count is updated once a year. It is recalculated every US trading day after the close; close_date is the trading day of the close used. No stock price is returned. Companies without a market cap are not listed: no_price or stale_price (no daily close in the last 7 days, for example OTC or halted stocks), no_shares or stale_shares (no cover-page share count within about 400 days, or 500 days for Form 20-F filers: no recent XBRL 10-K, 10-Q or 20-F, or a cover page that could not be read; a cover that lists several share classes, such as GOOGL/GOOG or META, counts as the classes added up), foreign_filer (a Form 20-F filer whose US listing is ADSs, or whose 20-F cover page does not show that its US ticker is ordinary shares: the ADS ratio is not in SEC data), shares_mismatch (the cover-page share count does not match the listed shares: 13F institutions report holding more than 1.5 times the cover-page shares, which points to several share classes or ADSs, or the company has two or more traded common lines whose latest closes differ by more than 1.25 times and that the cover page does not tie to share classes of their own, such as multi-fund ETP trusts like ProShares Trust II that share one cover-page share count) or out_of_range (an implausible value, including a market cap below $1 million). So Form 20-F issuers whose US shares are ADSs and multi-fund ETP trusts are missing. One row per company: ticker (the priced ticker), name, exchange, SIC industry, market_cap_usd, close_date, shares, shares_as_of, split_factor and url (the stock page). total counts every matching company and as_of is the newest close date. To research a company, follow up with get_stock, get_financials and get_insider_trades. At most 200 rows per call; use page.

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_stocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
dirNodesc = largest market cap first (default); asc = smallest first.desc
pageNoPage number starting at 1; each page has `limit` rows. Check has_more.
limitNoMaximum rows to return (1-200, default 25).
max_market_cap_usdNoLargest market cap in US dollars, inclusive; not below min_market_cap_usd. Default: no maximum.
min_market_cap_usdNoSmallest market cap in US dollars, inclusive (100000000 = $100 million). Default: no minimum.

Output Schema

NameRequiredDescriptionDefault
noteYes
pageYes
as_ofYesThe newest close date in the market cap data; null before it is loaded.
limitYes
totalYesNumber of companies matching the range (all pages).
filtersYes
has_moreYes
companiesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description still adds substantial behavior: market cap computed from latest daily close times SEC cover-page shares, split-adjusted, recalculated every US trading day after close, no stock price returned, plus a full enumeration of exclusion reasons (no_price, stale_price, no_shares, foreign_filer, shares_mismatch, out_of_range). That tells the agent what the result set will silently omit — genuinely useful context beyond 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and filters are correctly front-loaded, and the pagination limit appears near the end where it belongs. However, the middle is a dense wall of taxonomy — the 13F 1.5x heuristic and the ProShares Trust II ETP example — that is heavier than needed for tool selection and could be compressed into a short list of exclusion reasons.

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 5-param, zero-required screening tool with an output schema, the definition still names the returned columns (ticker, name, exchange, SIC industry, market_cap_usd, close_date, shares, shares_as_of, split_factor, url) and the envelope fields total and as_of. Nothing an agent needs to call this correctly or interpret coverage gaps is missing.

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, but the description adds usable meaning: both bounds are inclusive in US dollars, either/both/neither may be supplied, and the sample values show the numeric format expected. It also restates dir semantics and the page/limit relationship, exceeding what the schema alone conveys.

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-less but unambiguous statement of resource and ordering: 'US-listed companies by market cap, largest first (dir=asc for smallest first)', with the filter dimension named (min/max_market_cap_usd). It also routes onward ('To research a company, follow up with get_stock, get_financials and get_insider_trades'), so an agent can separate this screening tool from the per-company lookup 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?

Gives explicit operating context: filters are optional ('give either, both or neither'), a worked example range for ~$100M companies, and the 200-row cap with 'use page'. It does not name a competing screening alternative or state when *not* to screen, but the follow-up routing sentence makes the intended workflow clear.

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