Skip to main content
Glama

Poland Building Permits API – Pozwolenia na budowę (GUNB)

polish-building-permits-gunb
Read-onlyIdempotent

Query Poland's official GUNB register (RWDZ) for building permit decisions and construction notifications, filtered by region, category, dates and investor type, to find construction projects and leads.

Instructions

Returns building permit decisions (pozwolenia na budowę) and construction notifications (zgłoszenia) from the official GUNB register (RWDZ), newest first: project name, Construction Law category, cubature, location and dates; investors are named only when they are organisations, never private persons. Defaults to permits in Mazowieckie; set voivodeships to ALL or pass TERYT codes for other areas. Use it for construction projects and leads; for parcel boundaries and zoning use polish-land-parcels-uldk-zoning. Read-only: it only queries the public source and never writes to the registry; onlyNew merely keeps a stateKey memory in your own Apify account. Each call needs the APIFY_TOKEN env var and starts one paid run of the Apify Actor enterprising_hamster/polish-building-permits-gunb on your Apify account, billed pay-per-event per delivered project (named organisation investors cost more) 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.

Input Schema

NameRequiredDescriptionDefault
dateToNoLatest decision date (permits) or application date (notifications).
onlyNewNoSkip cases delivered by an earlier run with the same state key and unchanged since. Use with a schedule to get a daily feed of new permits.
dateFromNoEarliest decision date (permits) or application date (notifications).
daysBackNoOnly cases from the last N days (0 = no limit). Combined with 'From date', the later date wins.
keywordsNoAny of these words in the project name, e.g. 'hala', 'magazyn', 'fotowolta'. Case and Polish letters do not matter.
maxItemsNoNewest first. You pay per delivered result.
stateKeyNoName of the memory used by 'Only new or changed cases'. Use one key per monitored search.
registersNoPERMITS = building permit decisions (pozwolenia na budowę, with the investor where it is an organisation). NOTIFICATIONS = construction notifications without objection (zgłoszenia, whole country, no investor column). Empty = PERMITS.
categoriesNoConstruction Law categories. Empty = all.
terytCodesNoTERYT code prefixes: 2 digits for a voivodeship, 4 for a county (1465 = Warsaw, 1261 = Kraków, 3064 = Poznań, 0264 = Wrocław), 6-7 for a commune. When set, these replace the voivodeship list.
worksTypesNoEmpty = all.
minCubatureNoOnly projects at least this large (cubature as stated in the register; many entries have none).
voivodeshipsNoRegions to read. Not set = mazowieckie, so the first run is quick. Choose 'Whole country' for all 16. Ignored when TERYT codes are given.
investorTypesNoOnly permits whose investor is of these types (implies a named investor). Empty = any.
investmentKindsNoSingle-family house or anything else. Empty = both.
investorContainsNoText in the investor name, e.g. 'Dom Development' or 'Gmina'. Case and Polish letters do not matter. Implies a named investor.
onlyWithInvestorNoOnly permits whose investor is a company, public body, church, non-profit or housing community (named, with address and plots). Cases of private individuals are never named.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: discloses the APIFY_TOKEN requirement, that each call starts one paid Actor run billed pay-per-event (named-organisation investors cost more), the 300 s wait, and that onlyNew merely stores a stateKey memory in the caller's own Apify account. It also clarifies the privacy rule that private-person investors are never named, which affects result interpretation.

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?

Two long sentences, but front-loaded with what is returned before constraints, cost, and output shape. Some detail (billing breakdown, 256 KiB cap) is dense but each clause carries operational weight; slight over-packing in sentence two costs it a point.

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 17-parameter, zero-required scraping tool with no output schema, the description still supplies the return contract ({items, truncated}, at most maxItems up to 100 and 256 KiB), cost model, timeout, and auth requirement. Nothing an agent needs in order to invoke it correctly 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 adds value by summarising the implicit default (Mazowieckie unless voivodeships/TERYT set) and the investor-naming caveat that governs investorTypes/investorContains/onlyWithInvestor. It does not restate the per-parameter interaction rules already in the schema (e.g. daysBack vs dateFrom), so it adds context rather than duplicating.

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: returns building permit decisions (pozwolenia na budowę) and construction notifications (zgłoszenia) from the official GUNB RWDZ register, and enumerates the fields returned (project name, category, cubature, location, dates). It also names the sibling tool it is not (polish-land-parcels-uldk-zoning) for parcels/zoning, so an agent can route without opening either 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?

Gives explicit when-to-use ('construction projects and leads') and when-not ('for parcel boundaries and zoning use polish-land-parcels-uldk-zoning'), plus the geographic default behaviour (Mazowieckie first run, ALL or TERYT codes for others). Nothing essential is left to inference.

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