{"openapi":"3.1.0","info":{"title":"PlumbPower API for AI agents","version":"1.3.0","description":"PlumbPower: public pipe-system projects in buildings (plumbing, heating, drinking-water pipework, underfloor heating, re-piping, maintenance, water-supply pipes) — 13,150 projects in 79 countries, 51 open tenders, 513 awarded contracts ending within 18 months, 6,078 installers and suppliers. Read tools need no key. Projects are anonymised (no buyer names); values are yearly estimates in US dollars. Start with get_market_stats or search_projects; to act, use submit_project_request or register_provider_interest (consent required) and follow up with get_request_status.","contact":{"email":"mr@brnz.com"}},"servers":[{"url":"https://brnz.cc/PlumbPower"}],"paths":{"/agents/api/stats":{"get":{"operationId":"get_market_stats","summary":"Market figures","description":"Totals of the PlumbPower map: projects by type and source, open tenders, countries, providers, yearly value, contracts ending in 18 months, counts per category.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[]}},"/agents/api/projects":{"get":{"operationId":"search_projects","summary":"Search projects","description":"Search public pipe-system projects in buildings: open tenders, awarded contracts and planned purchases. Filter by country, region, category, type, minimum yearly value or free text. Buyer names are not included.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"query","in":"query","required":false,"description":"Free text, e.g. \"hospital heating Lyon\" or \"legionella\".","schema":{"type":"string"}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries).","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Region code.","schema":{"type":"string","enum":["EU","AS","NA","SA","AF","OC"]}},{"name":"category","in":"query","required":false,"description":"Category slug.","schema":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}},{"name":"type","in":"query","required":false,"description":"Project type.","schema":{"type":"string","enum":["open_tender","tender","awarded_contract","planned_purchase"]}},{"name":"open","in":"query","required":false,"description":"Only tenders that are still open.","schema":{"type":"boolean"}},{"name":"min_value_usd","in":"query","required":false,"description":"Minimum estimated yearly value in US dollars.","schema":{"type":"number"}},{"name":"sort","in":"query","required":false,"description":"Order of results.","schema":{"type":"string","enum":["relevance","value","newest","deadline"]}},{"name":"limit","in":"query","required":false,"description":"Results per page (1-100, default 20).","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"description":"Skip this many results (paging).","schema":{"type":"integer","minimum":0}}]}},"/agents/api/project/{id}":{"get":{"operationId":"get_project","summary":"Get one project","description":"One project by id (PP-00001): type, country, city, categories, label, dates, term, estimated end and yearly value estimate.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"id","in":"path","required":true,"description":"Project id, e.g. PP-00006.","schema":{"type":"string"}}]}},"/agents/api/ending":{"get":{"operationId":"search_ending_contracts","summary":"Contracts ending soon","description":"Awarded plumbing, heating and water-pipework contracts whose estimated end falls in the next months: the buyer has to re-tender or renew. End dates are estimated from award date plus term.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"months","in":"query","required":false,"description":"Look-ahead window in months (1-36, default 18).","schema":{"type":"integer","minimum":1,"maximum":36}},{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries).","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Region code.","schema":{"type":"string","enum":["EU","AS","NA","SA","AF","OC"]}},{"name":"category","in":"query","required":false,"description":"Category slug.","schema":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}},{"name":"limit","in":"query","required":false,"description":"Results per page (1-100, default 20).","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"description":"Skip this many results (paging).","schema":{"type":"integer","minimum":0}}]}},"/agents/api/tenders":{"get":{"operationId":"list_open_tenders","summary":"Open tenders","description":"Tenders that are still open on the day the data was built, soonest deadline first.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries).","schema":{"type":"string"}},{"name":"region","in":"query","required":false,"description":"Region code.","schema":{"type":"string","enum":["EU","AS","NA","SA","AF","OC"]}},{"name":"category","in":"query","required":false,"description":"Category slug.","schema":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}},{"name":"limit","in":"query","required":false,"description":"Results per page (1-100, default 20).","schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"offset","in":"query","required":false,"description":"Skip this many results (paging).","schema":{"type":"integer","minimum":0}}]}},"/agents/api/categories":{"get":{"operationId":"list_categories","summary":"List categories","description":"The eight pipe-system categories with project, provider and yearly value counts.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[]}},"/agents/api/category/{category}":{"get":{"operationId":"get_category","summary":"Get one category","description":"One category: what it covers, typical contract facts, projects, open tenders, providers, yearly value and the top countries.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"category","in":"path","required":true,"description":"Category slug.","schema":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}}]}},"/agents/api/countries":{"get":{"operationId":"list_countries","summary":"List countries","description":"Countries with projects, open tenders, providers and the estimated yearly value.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"region","in":"query","required":false,"description":"Region code.","schema":{"type":"string","enum":["EU","AS","NA","SA","AF","OC"]}}]}},"/agents/api/country/{country}":{"get":{"operationId":"get_country","summary":"Get one country","description":"The pipe-system market of one country: projects by type and category, open tenders, contracts ending in 18 months, providers and yearly value.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"country","in":"path","required":true,"description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries).","schema":{"type":"string"}}]}},"/agents/api/regions":{"get":{"operationId":"list_regions","summary":"List regions","description":"World regions with countries, projects, open tenders and yearly value.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[]}},"/agents/api/coverage":{"get":{"operationId":"get_provider_coverage","summary":"Provider coverage","description":"How many installers and suppliers have won public pipe-system contracts in a country and category, with their wins and awarded value. Names are not included.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"country","in":"query","required":false,"description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries).","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"Category slug.","schema":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}}]}},"/agents/api/platform":{"get":{"operationId":"get_platform_info","summary":"How PlumbPower works","description":"What PlumbPower is, the partner roles and their proposed rates, how requests are handled, contact and all agent endpoints.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[]}},"/agents/api/requests/{request_id}":{"get":{"operationId":"get_request_status","summary":"Request status","description":"Status of a request sent through submit_project_request, register_provider_interest or the website form. Needs the request id and the e-mail used.","tags":["read"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"parameters":[{"name":"request_id","in":"path","required":true,"description":"Request id, e.g. PP-R-261125-001.","schema":{"type":"string"}},{"name":"email","in":"query","required":true,"description":"The e-mail address used in the request.","schema":{"type":"string"}}]}},"/agents/api/project-requests":{"post":{"operationId":"submit_project_request","summary":"Send a project request","description":"For buyers, building owners and contractors: describe a plumbing, heating or water-pipework job and get matched installers and the pipe-system supplier. The PlumbPower team answers by e-mail. Requires consent: true (the person agreed to be contacted about this request).","tags":["send"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"string","description":"Company or organisation."},"email":{"type":"string","description":"E-mail for the reply."},"description":{"type":"string","description":"What is needed: building, scope, quantities, timing."},"consent":{"type":"boolean","description":"true = the person agreed to be contacted by PlumbPower about this request."},"name":{"type":"string","description":"Contact person."},"phone":{"type":"string","description":"Phone (optional)."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country code, e.g. FR, GB, US (see list_countries)."},"category":{"type":"string","description":"Category slug.","enum":["pipes","floor","potable","heating","install","repipe","service","network"]},"project_id":{"type":"string","description":"Related project id (optional)."}},"required":["company","email","description","consent"]},"example":{"company":"Example Housing Ltd","email":"facilities@example.com","description":"Re-piping of 120 flats in an occupied building, start Q2","category":"repipe","country":"GB","consent":true}}}}}},"/agents/api/provider-interest":{"post":{"operationId":"register_provider_interest","summary":"Apply as partner","description":"For installers, distributors and partners: apply for a seat (one installer partner per country and category) or a partner role, optionally for one project. The PlumbPower team answers by e-mail. Requires consent: true.","tags":["send"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"429":{"description":"Rate limit"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"string","description":"Company name."},"email":{"type":"string","description":"E-mail for the reply."},"role":{"type":"string","description":"Role you apply for.","enum":["installer","distributor","bid_partner","country_partner","introducer"]},"consent":{"type":"boolean","description":"true = the person agreed to be contacted by PlumbPower."},"categories":{"type":"array","description":"Categories you deliver.","items":{"type":"string","enum":["pipes","floor","potable","heating","install","repipe","service","network"]}},"countries":{"type":"array","description":"Countries you work in (ISO alpha-2).","items":{"type":"string"}},"message":{"type":"string","description":"Anything we should know (team size, references, certifications)."},"name":{"type":"string","description":"Contact person."},"phone":{"type":"string","description":"Phone (optional)."},"project_id":{"type":"string","description":"Project id you want to bid on (optional)."}},"required":["company","email","role","consent"]},"example":{"company":"Example Plumbing SAS","email":"contact@example.fr","role":"installer","categories":["heating","install"],"countries":["FR"],"consent":true}}}}}},"/agents/api/call":{"post":{"operationId":"call_tool","summary":"Call any tool by name","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tool":{"type":"string","enum":["search_projects","get_project","search_ending_contracts","list_open_tenders","list_categories","get_category","list_countries","get_country","list_regions","get_provider_coverage","get_market_stats","get_platform_info","get_request_status","submit_project_request","register_provider_interest"]},"arguments":{"type":"object"}},"required":["tool"]}}}},"responses":{"200":{"description":"{ ok, result }"}}}},"/agents/api/tools":{"get":{"operationId":"list_tools","summary":"All tools with JSON schemas","responses":{"200":{"description":"OK"}}}}}}