Skip to main content
Glama

Search Polish Companies

search_companies
Read-onlyIdempotent

Search and filter Polish KRS companies (spółki). Compabase also holds the full CEIDG/JDG register; this tool does not browse JDG — those without a public contact email are hidden because of RODO. Default fields=summary returns a compact row (name, NIP, KRS, location, PKD, latest financials, email/phone/website) — small enough for MCP clients. fields=contacts_only is name/NIP/KRS/city/email/phone/website only. fields=full returns every company_search column plus contacts and may exceed client size limits. Use for rankings, sector filters, city/county/region browsing, name search, or NIP/KRS lookup. When a PKD is mostly JDG, a sparse result includes a hint (full CEIDG is in the database; listing is RODO-gated). For a handful of emails or phones, fields=contacts_only here is enough; export_companies is meant for bulk files.

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

Input Schema

NameRequiredDescriptionDefault
krsNoKRS registry number (10 digits, zero-padded, e.g. '0000028860').
nipNoNIP tax number (10 digits, no dashes).
pkdNoPrimary PKD code prefix, e.g. '46.90.Z' or '46'.
cityNoCity name — KRS records use uppercase, e.g. 'WARSZAWA', 'POZNAŃ'.
nameNoCompany name fragment (case-insensitive). Matches display name and full KRS name; legal-form suffixes like 'sp. z o.o.' are ignored.
yearNoFilter to companies whose latest financial_period_to falls within this calendar year (e.g. 2024). Use only for sector/ranking browse — omit when looking up a company by name, KRS, or NIP.
limitNoMax results (default: 10, max: 50).
naicsNoDetailed industry: NAICS 6-digit codes, comma-separated (any of them), e.g. '541511,541512'. AI classification of what the company actually does.
nicheNoDetailed industry in words (Polish, English or German), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering', 'Verpackungen'.
countyNoCounty / powiat (lowercase).
fieldsNoResponse size. Default summary (name, NIP, KRS, location, PKD, latest financials, email/phone/website). contacts_only: name, NIP, KRS, city, email, phone, website. full: every company_search column plus contacts — often too large for MCP clients.
regionNoVoivodeship (lowercase), e.g. 'mazowieckie', 'wielkopolskie'.
all_pkdNoMatch any PKD code in the company's activity list (not just primary).
serviceNoService the company offers (Compabase services dictionary, from company websites): service name in Polish/English/German, e.g. 'księgowość', 'heat pumps', or slugs from compabase.com/services, comma-separated (any of them).
sort_byNoSort field (default: revenue_total). registration_date + sort_dir=desc lists the newest registrations first. revenue_growth_pct + sort_dir=desc lists the fastest-growing companies (y/y revenue growth from KRS financial statements; combine with revenue_min to skip small companies).
currencyNoCurrency for monetary filters. Default: pln.
sort_dirNoSort direction (default: desc).
has_emailNotrue = only companies with email on record. Matching rows include contacts.email. Omit otherwise.
is_activeNotrue = active only, false = closed only. Omit for all.
ebitda_maxNoMaximum EBITDA.
ebitda_minNoMinimum EBITDA.
legal_formNoLegal form fragment, e.g. 'spółka z o.o.' or 'akcyjna'.
profit_maxNoMaximum net profit.
profit_minNoMinimum net profit.
capital_maxNoMaximum share capital.
capital_minNoMinimum share capital.
has_websiteNotrue = only companies with website on record. Matching rows include contacts.website. Omit otherwise.
postal_codeNoPostal code prefix, e.g. '00-9' or '61-'.
revenue_maxNoMaximum total revenue.
revenue_minNoMinimum total revenue.
family_businessNotrue = family business (people with the same surname hold ≥50%).
total_assets_maxNoMaximum total assets.
total_assets_minNoMinimum total assets.
estimated_value_maxNoMaximum Ohlson estimated equity value in PLN.
estimated_value_minNoMinimum Ohlson estimated equity value in PLN.
ownership_structureNoOwnership: pl_independent = Polish company controlled by individuals; pl_group = part of a Polish group (a Polish company holds ≥50%); foreign_group = foreign shareholders ≥50% or foreign parent (GLEIF / CRBR).
profit_operating_maxNoMaximum operating profit (PLN). Omit if unused.
profit_operating_minNoMinimum operating profit (PLN). Negative allowed. Omit if unused.
registration_date_maxNoLatest KRS registration date, YYYY-MM-DD (inclusive).
registration_date_minNoEarliest KRS registration date, YYYY-MM-DD (inclusive). For newly registered companies use today's date for both registration_date_min and registration_date_max.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / niche / description
      Previous value: -"Detailed industry in words (Polish), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering'."New value: +"Detailed industry in words (Polish, English or German), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering', 'Verpackungen'."
  2. Changed1 schema field changed
    • addedInput schema / properties / service
      Added value: +{
      +  "description": "Service the company offers (Compabase services dictionary, from company websites): service name in Polish/English/German, e.g. 'księgowość', 'heat pumps', or slugs from compabase.com/services, comma-separated (any of them).",
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • addedInput schema / properties / family_business
      Added value: +{
      +  "description": "true = family business (people with the same surname hold ≥50%).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / naics
      Added value: +{
      +  "description": "Detailed industry: NAICS 6-digit codes, comma-separated (any of them), e.g. '541511,541512'. AI classification of what the company actually does.",
      +  "type": "string"
      +}
    • addedInput schema / properties / niche
      Added value: +{
      +  "description": "Detailed industry in words (Polish), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering'.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ownership_structure
      Added value: +{
      +  "description": "Ownership: pl_independent = Polish company controlled by individuals; pl_group = part of a Polish group (a Polish company holds ≥50%); foreign_group = foreign shareholders ≥50% or foreign parent (GLEIF / CRBR).",
      +  "enum": [
      +    "pl_independent",
      +    "pl_group",
      +    "foreign_group"
      +  ],
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort field (default: revenue_total). registration_date + sort_dir=desc lists the newest registrations first."New value: +"Sort field (default: revenue_total). registration_date + sort_dir=desc lists the newest registrations first. revenue_growth_pct + sort_dir=desc lists the fastest-growing companies (y/y revenue growth from KRS financial statements; combine with revenue_min to skip small companies)."
    • changedInput schema / properties / sort_by / enum
      Previous value: -[
      -  "revenue_total",
      -  "profit_net",
      -  "total_assets",
      -  "profit_operating",
      -  "ebitda",
      -  "capital_total",
      -  "estimated_value",
      -  "registration_date"
      -]New value: +[
      +  "revenue_total",
      +  "profit_net",
      +  "total_assets",
      +  "profit_operating",
      +  "ebitda",
      +  "capital_total",
      +  "estimated_value",
      +  "registration_date",
      +  "revenue_growth_pct"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / registration_date_max
      Added value: +{
      +  "description": "Latest KRS registration date, YYYY-MM-DD (inclusive).",
      +  "type": "string"
      +}
    • addedInput schema / properties / registration_date_min
      Added value: +{
      +  "description": "Earliest KRS registration date, YYYY-MM-DD (inclusive). For newly registered companies use today's date for both registration_date_min and registration_date_max.",
      +  "type": "string"
      +}
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort field (default: revenue_total)."New value: +"Sort field (default: revenue_total). registration_date + sort_dir=desc lists the newest registrations first."
    • changedInput schema / properties / sort_by / enum
      Previous value: -[
      -  "revenue_total",
      -  "profit_net",
      -  "total_assets",
      -  "profit_operating",
      -  "ebitda",
      -  "capital_total",
      -  "estimated_value"
      -]New value: +[
      +  "revenue_total",
      +  "profit_net",
      +  "total_assets",
      +  "profit_operating",
      +  "ebitda",
      +  "capital_total",
      +  "estimated_value",
      +  "registration_date"
      +]
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description layers on non-obvious behavior: JDG records without a public email are hidden for RODO reasons, sparse PKD results carry a `hint` field, and fields=full may exceed MCP client size limits. These are result-shape and data-availability caveats an agent could not infer from annotations or schema.

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 and the JDG exclusion, then response-size modes, then use cases, then the sibling hand-off — a sensible priority order. It is dense but not padded; the only waste is the restatement of the `fields` enum contents, which the schema already spells out almost identically.

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 40-parameter, no-output-schema search tool this covers what matters: default result shape, size trade-offs, data-availability gaps, and result hints. Absence of pagination (limit max 50, no offset) is implicitly handled by routing bulk needs to export_companies, so no critical call-time information 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; the description goes further by explaining the trade-off between the three `fields` modes in terms of payload size and by constraining `year` usage ('Use only for sector/ranking browse — omit when looking up a company by name, KRS, or NIP'). It does not, however, add cross-parameter guidance for the many filter/sort combinations beyond those two.

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+resource ('Search and filter Polish KRS companies') and immediately scopes what it does NOT cover (JDG/CEIDG register), so an agent can distinguish it from get_company and export_companies without opening schemas. It also names the concrete artefacts returned (name, NIP, KRS, financials, contacts).

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?

Enumerates concrete use cases (rankings, sector filters, city/county/region browsing, name search, NIP/KRS lookup) and draws an explicit boundary against a named sibling: 'For a handful of emails or phones, fields=contacts_only here is enough; export_companies is meant for bulk files.' It also tells the agent when a sparse result is expected and why (RODO-gated JDG), so misleading zero-results are pre-empted.

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.