Skip to main content
Glama

Poland Company Lookup API – REGON, NIP, KRS

polish-company-lookup-regon
Read-onlyIdempotent

Look up known Polish companies by NIP, REGON, or KRS in the official GUS REGON register to retrieve registration details, status, address, PKD codes, and optional VAT status.

Instructions

Looks up Polish companies and other registered subjects by NIP, REGON or KRS number in the official GUS REGON register (Statistics Poland, BIR1.2 API): for each identifier one item with registered name, REGON, NIP, KRS, entity type, legal and ownership form, seat address with TERYT, prevailing and other PKD codes, status (active, suspended, closed) and register dates, optionally VAT taxpayer status from the Ministry of Finance white list (WL2) and nested local units. No phone, fax or email; for sole traders the street is omitted unless soleTraderFullAddress is set. No GUS key is needed (gusApiKey is optional). onlyChanged defaults to false. The first successful run with it on stores a baseline and charges nothing. Later runs charge the company price only when suspension, deletion, or VAT status changes. Use it to identify a known company; for newly registered companies use polish-new-companies-krs. Read-only: it only queries the public source and never writes to the registry. Each call needs the APIFY_TOKEN env var and starts one paid run of the Apify Actor enterprising_hamster/polish-company-lookup-regon on your Apify account, billed pay-per-event per delivered company plus any Apify platform usage; the server waits up to 300 s for the run and returns JSON {items, truncated} with at most maxItems (max 100) items and 256 KiB.

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": "polish-company-lookup-regon"
  }
}

Input Schema

NameRequiredDescriptionDefault
nipsNoTax identifiers (NIP). Spaces, hyphens and a leading PL are ignored. Invalid checksums are returned as found=false and are not charged.
regonsNo9-digit subjects or 14-digit local units. Checksums are validated.
maxItemsNoStop after this many charged companies. Empty means no cap. Not-found rows and skipped sole traders do not count.
gusApiKeyNoOptional. Your own production BIR1 user key from GUS. Leave empty: the Actor uses its own production key.
krsNumbersNoCourt numbers. Shorter values are zero-padded to 10 digits. Looked up one at a time.
identifiersNoOptional prefixes NIP:, REGON: and KRS:. Without a prefix, 9 or 14 digits are a REGON and 10 digits with a valid NIP checksum are a NIP. Anything else returns the error "ambiguous, use prefix".
onlyChangedNoCompare suspension, deletion and VAT status with the previous run. The first successful monitor run stores a baseline and charges nothing. Later runs charge the normal company price only when a watched status changes.
checkVatStatusNoAsk the Ministry of Finance WL2 status method. Adds vatStatus, vatCheckedAt and vatRequestId. On failure the company is still returned with vatError. No bank accounts and no people.
includeLocalUnitsNoNest up to 50 local units (14-digit REGON) on each company. No extra charge. A 14-digit REGON in the input is its own row.
includeSoleTradersNoWhen false, a sole trader (JDG) is returned with found=true and skipped=sole_trader and is not charged.
useTestEnvironmentNoWhen no production key is set, call the public GUS test service. Data is anonymized and frozen around 8 November 2014. Ignored when a key is set.
soleTraderFullAddressNoInclude street, building and apartment for a sole trader. Default is city, postal code, municipality, county and voivodeship only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • addedInput schema / properties / onlyChanged
      Added value: +{
      +  "default": false,
      +  "description": "Compare suspension, deletion and VAT status with the previous run. The first successful monitor run stores a baseline and charges nothing. Later runs charge the normal company price only when a watched status changes.",
      +  "editor": "checkbox",
      +  "title": "Only status changes",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, yet the description still adds substantial operational context: APIFY_TOKEN requirement, a paid pay-per-event run on the user's account, a 300 s server-side wait, the {items, truncated} return shape and the 256 KiB / maxItems=100 cap. It also discloses data limits (no phone, fax or email; street omitted for sole traders by default) and the baseline/charge semantics of onlyChanged. What is missing is failure behavior beyond truncation, so it stops short of a 5.

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 source are front-loaded, and most sentences carry real information (cost model, return envelope, data caveats). It is a single dense block, though, with billing and pricing detail interleaved among data semantics, which makes some facts harder to scan than they need to be.

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 12-parameter, zero-required, paid lookup tool with no output schema, the description covers the missing pieces an agent needs: billing and run semantics, auth prerequisite, latency ceiling, and the exact response envelope {items, truncated} with caps. Nothing essential to calling it correctly is absent.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each of the 12 parameters is already documented there, so the baseline is 3. The description largely restates schema content (onlyChanged defaulting to false, sole-trader street omission, optional GUS key) rather than adding new per-parameter meaning such as precedence between nips/regons/krsNumbers and identifiers when several are supplied.

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 ('Looks up Polish companies and other registered subjects') plus the exact keying identifiers (NIP, REGON, KRS) and the authoritative source (GUS REGON / BIR1.2). It also explicitly separates itself from the sibling polish-new-companies-krs, so an agent can disambiguate without opening another 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?

The routing rule is explicit: 'Use it to identify a known company; for newly registered companies use polish-new-companies-krs.' That names both the use case and the alternative tool with the condition that selects it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.