Skip to main content
Glama

companies_search

Paginated search across the shared database of 35M+ companies. Use this as the first step of prospecting: narrow to companies matching the user's ideal customer profile (ICP), then call company_persons_list to see the people at each company, then leads_bulk_add_to_segment to pull selected people into a workspace segment as leads.

Filters — all optional, AND-combined. Pass as query params. Multi-value filters take a list of integer IDs (django REST style: ?countries=3&countries=5 or countries=[3,5] in JSON-body MCP calls). Use the listed lookup tools to resolve human terms to IDs.

Full-text:

  • name — websearch full-text against company name (e.g. "Acme OR Globex"). Filters AND ranks: matches sort by relevance.

  • about — same, but against the company description. Use specific multi-word phrases for precision (single weak terms can be too loose). Combine with industry/country to narrow.

Geo (multi-select; lookup IDs via discovery_countries_list / discovery_regions_list / discovery_localities_list):

  • countries — list of country IDs. Singular country also works (single ID).

  • regions — list of region IDs (states/provinces). Singular region ok.

  • cities — list of locality IDs. Singular city ok.

Industry — prefer industry_tags:

  • industry_tags — comma-separated slugs from the Layer 2 taxonomy, e.g. ?industry_tags=b2b-saas,fintech. Resolve slugs with discovery_industry_tags_list first; free text does not match and neither do names. That tool's q parameter searches labels, descriptions and synonyms, so 'swag' finds promotional-products. Most companies carry more than one tag (1.68 on average), and matching is OR across the slugs given.

  • industry_confidence_min — defaults to what the product shows. Every tag the classifier produced is stored including low-confidence ones, so lower this only when deliberately trading precision for reach.

  • include_unclassified — a tag filter otherwise excludes every company not yet classified, which is still most of the corpus. Pass true to keep them.

Legacy industry / keywords (multi-select; IDs via discovery_industries_list / discovery_keywords_list):

  • industries — list of industry IDs against the old free-text industry field. Superseded by industry_tags; kept for stored filters. Singular industry matches the primary only.

  • keywords — list of keyword IDs. Companies tagged with any of the listed keywords match (e.g. 'SaaS', 'hiring', 'recently-funded').

Firmographics:

  • size — list of size buckets (integer enum): 1=Micro 1-9, 2=Small 10-49, 3=Medium 50-249, 4=Large 250+.

  • founded_year — exact year. Use founded_year_from / founded_year_to for ranges.

  • website — case-insensitive substring match on website URL.

  • has_website / has_email / has_phone — booleans; restrict to companies with a non-empty value in that field.

  • has_profiles — comma-separated SocialMediaType IDs. Companies must have a profile for EACH listed platform (AND). IDs: 1=LinkedIn, 2=Twitter/X, 3=Facebook, 4=Instagram, 5=GitHub, 6=YouTube, 7=Reddit, 8=Pinterest, 9=Snapchat, 10=TikTok, 11=WhatsApp, 12=Telegram, 13=Discord, 14=Product Hunt, 15=Blog, 16=App Store, 17=Play Store, 18=AngelList, 19=Threads, 20=Medium, 22=Foursquare, 23=WeChat, 24=Signal, 25=Wikidata, 26=OpenStreetMap, 27=Owler.

Date filters (relative to now, ideal for saved searches):

  • updated_within_days — companies updated within N days.

  • updated_older_than_days — companies NOT updated in N days.

  • created_within_days — companies created within N days.

  • created_older_than_days — companies created more than N days ago.

Format gotcha. The companies_search endpoint accepts plain integer IDs only. The UI persists multi-value filters in SavedSearch.params_json as [{"value": 3, "label": "United States"}, …] for display, and SavedSearch extracts .value before running. So when you call saved_searches_create you may pass either shape in params_json; when you call companies_search directly, pass integers.

Cost. Listing is free, but returns 402 if the account's connects balance is zero — a guard against unauthenticated scraping. Actually pulling people into a segment via leads_bulk_add_to_segment charges connects per lead.

Ranking. When name or about is used, results sort by FTS relevance. Otherwise default model ordering.

Result shape. Each company has a guid (UUID, NOT a sqid) used by downstream tools; name, size, industry, country, website, linkedin_url, about, and tagged keywords/industries.

Method: GET /api/v1/discovery/companies/

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": "companies_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
nameNo
sizeNoHeadcount bands, any-of. Reads `size_bucket` where a source stated a number and falls back to the legacy `size` where none did. Band 5 (1000+) exists only in `size_bucket`. * `1` - 1-9 * `2` - 10-49 * `3` - 50-249 * `4` - 250-999 * `5` - 1000+
aboutNo
limitNoNumber of results to return per page.
citiesNo
offsetNoThe initial index from which to return the results.
regionNo
countryNo
regionsNo
web_hasNoWatched parameter terms, comma-separated, each `parameter` or `parameter:value`, e.g. `cms:wordpress,ad_tag:google_ads`. Parameters: hiring_role_family, hiring_role_family_board, ats_board, ad_tag, tag_manager, analytics, cms, ecommerce, consent_platform, chat_widget, booking_tool, crm_hint, marketing_automation, error_monitoring, certification_badge, reviews_platform, api_docs, privacy_policy, languages_offered, copyright_year, careers_page, job_count_bucket, mx_provider, dmarc_policy, contact_mail_domain. Values are listed by GET /api/v1/discovery/watched-parameters/. Matches what the site carries now, as of the last successful crawl. Values of one parameter are any-of; different parameters must all match, so `cms:wordpress,ad_tag` is a WordPress site with some ad tag.
websiteNo
industryNo
keywordsNo
relationNoHow a row relates to the entity it belongs to: headquarters, subsidiary, branch, franchise, division, location. Empty for a company that is the entity. Repeatable; any-of. * `1` - Headquarters * `2` - Subsidiary * `3` - Branch * `4` - Franchise * `5` - Division * `6` - Location
countriesNo
has_emailNo
has_phoneNo
web_lacksNoWatched parameter terms, comma-separated, each `parameter` or `parameter:value`, e.g. `cms:wordpress,ad_tag:google_ads`. Parameters: hiring_role_family, hiring_role_family_board, ats_board, ad_tag, tag_manager, analytics, cms, ecommerce, consent_platform, chat_widget, booking_tool, crm_hint, marketing_automation, error_monitoring, certification_badge, reviews_platform, api_docs, privacy_policy, languages_offered, copyright_year, careers_page, job_count_bucket, mx_provider, dmarc_policy, contact_mail_domain. Values are listed by GET /api/v1/discovery/watched-parameters/. Companies whose site was read and does NOT carry it now, e.g. `consent_platform` for sites with no cookie banner. Every term must be absent. A company never crawled successfully matches nothing here: not seen is not absent.
has_signalNoCompanies observed doing something, as a comma-separated list; any-of. One or more of: hiring, advertising, filing, cert, contract_award, funding, product_launch, site_change. Combine with signal_within_days to require each named signal inside that window, e.g. has_signal=hiring&signal_within_days=30 for companies whose newest job posting is less than 30 days old.
industriesNo
stat_codesNoOfficial classification codes, comma-separated, each written `scheme:code`; any-of. Schemes: nace21, naics2022, chsic, isic5. Resolve codes with /api/v1/discovery/stat-codes/?q=. A code matches itself and everything beneath it, so nace21:62 finds every class in that division. NACE accepts either form, 62.10 or 6210. An unresolvable selection returns no rows rather than being dropped from the query.
has_websiteNo
independentNoTrue for businesses that buy for themselves: a company with no parent, or a franchise. False for sites of someone else's business -- a branch, a location or a division. A franchisee counts as independent because it has its own owner and its own budget, which is a commercial distinction and the reason this filter exists.
founded_yearNo
has_profilesNo
web_appearedNoWatched parameter terms, comma-separated, each `parameter` or `parameter:value`, e.g. `cms:wordpress,ad_tag:google_ads`. Parameters: hiring_role_family, hiring_role_family_board, ats_board, ad_tag, tag_manager, analytics, cms, ecommerce, consent_platform, chat_widget, booking_tool, crm_hint, marketing_automation, error_monitoring, certification_badge, reviews_platform, api_docs, privacy_policy, languages_offered, copyright_year, careers_page, job_count_bucket, mx_provider, dmarc_policy, contact_mail_domain. Values are listed by GET /api/v1/discovery/watched-parameters/. Companies where it appeared on the site between two crawls -- new, back after a confirmed absence, or (mail provider, DMARC) replacing the previous value. Any-of. Narrow with web_change_within_days.
email_allowedNotrue = only companies in countries where cold B2B email is allowed (compliance tiers allow_footer, allow_with_source, conditional). Countries that need the recipient's prior consent, and companies with no country, are left out. false or absent = no restriction.
industry_tagsNo
founded_year_toNo
web_disappearedNoWatched parameter terms, comma-separated, each `parameter` or `parameter:value`, e.g. `cms:wordpress,ad_tag:google_ads`. Parameters: hiring_role_family, hiring_role_family_board, ats_board, ad_tag, tag_manager, analytics, cms, ecommerce, consent_platform, chat_widget, booking_tool, crm_hint, marketing_automation, error_monitoring, certification_badge, reviews_platform, api_docs, privacy_policy, languages_offered, copyright_year, careers_page, job_count_bucket, mx_provider, dmarc_policy, contact_mail_domain. Values are listed by GET /api/v1/discovery/watched-parameters/. Companies where it disappeared: missing at two successful crawls in a row. Any-of. Narrow with web_change_within_days.
founded_year_fromNo
signal_within_daysNoSeen within this many days. Alone it means any signal at all; alongside has_signal it applies to each named signal instead, so the two together never read as 'that signal ever, and some signal recently'.
created_within_daysNo
updated_within_daysNo
include_unclassifiedNo
primary_industry_tagNoTag slugs, comma-separated; any-of. Matches only a company's single primary tag, unlike industry_tags which matches any assigned tag.
web_change_within_daysNoNoticed within this many days. With web_appeared or web_disappeared it applies to those; alone it means any website change at all.
created_older_than_daysNo
industry_confidence_minNo
updated_older_than_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose genuinely non-obvious traits: listing is free but returns 402 when connects balance is zero, pulling people via leads_bulk_add_to_segment charges connects per lead, and ranking switches to FTS relevance when `name`/`about` are used. It also explains the ID-shape gotcha between saved_searches_create's params_json and this endpoint's plain integers. It stops short of permissions, rate limits, or pagination behavior (only limit/offset in schema), so the mutation-adjacent cost picture is the main thing covered.

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?

Long, but the length is largely earned for a 41-parameter filter surface. Bold section headers (Filters, Geo, Industry, Firmographics, Date filters, Format gotcha, Cost, Ranking, Result shape) make it scannable and front-load the workflow before the field catalog. Minor inefficiency: the size bucket list and some legacy-vs-new industry commentary duplicate or drift from the schema.

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?

Given 41 params, no annotations, no output schema, and low schema description coverage, this is about as complete as a description can be. It supplies the missing behavioral layer (cost, 402 guard, ranking) and a 'Result shape' section naming `guid` (UUID, not a sqid) plus the usable downstream fields, compensating for the absent output schema.

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 only 37% across 41 params, so the description does real work: it explains AND-combination of all filters, the multi-value query syntax (`?countries=3&countries=5` or a JSON list), OR-vs-AND matching semantics for tags and has_profiles, and which lookup tool resolves each ID domain. One inaccuracy exists: it documents `size` as 1=Micro through '4=Large 250+' and omits bucket 5, while the schema defines 4=250-999 and 5=1000+. Several rich params (web_has/web_lacks/web_appeared, has_signal, stat_codes, independent, email_allowed, primary_industry_tag) are left entirely to their schema text, which is a reasonable division of labor but leaves the description incomplete on semantics it could have summarized.

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 with scope: 'Paginated search across the shared database of 35M+ companies.' It immediately distinguishes itself from siblings by placing itself as step one of a three-tool workflow (companies_search → company_persons_list → leads_bulk_add_to_segment) and by pointing to discovery_* lookup tools for ID resolution.

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?

Explicit sequential guidance ('use this as the first step of prospecting') plus per-filter steering: prefer `industry_tags` over `industries`, resolve slugs with `discovery_industry_tags_list` first, lower `industry_confidence_min` only when deliberately trading precision, pass `include_unclassified` to keep unclassified companies. It even warns which filter needs a lookup tool and what input will silently fail ('free text does not match and neither do names').

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.