{"server":"io.github.ContentWriterco/compabase","count":50,"tools":[{"name":"add_to_watchlist","title":"Add Company to Watchlist","description":"Add a company to the user's watchlist. Identify by KRS (10-digit) or NIP (10-digit). Supports both KRS companies and CEIDG sole proprietorships (via NIP).","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (10 digits, zero-padded)."},"nip":{"type":"string","description":"NIP tax number (10 digits). Used for CEIDG if no KRS match."}}},"output_schema":null,"annotations":{"title":"Add Company to Watchlist","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"add_watchlist_batch","title":"Batch Add Companies to Watchlist","description":"Add multiple companies to watchlist in one call. Provide an array of KRS/NIP identifiers (max 500). Resolves identifiers to companies, skips duplicates, respects plan limits.","input_schema":{"type":"object","required":["identifiers"],"properties":{"identifiers":{"type":"array","items":{"type":"string"},"description":"Array of KRS numbers (10 digits) or NIP numbers (10 digits)."}}},"output_schema":null,"annotations":{"title":"Batch Add Companies to Watchlist","readOnlyHint":false,"openWorldHint":false,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"check_signup","title":"Check Compabase Signup Status","description":"Poll a request_signup session. When the user has confirmed email, returns mcp_key once and cursor_mcp_json to write to MCP config. Call every 3 seconds until status is ready, expired, or already_delivered. No auth required.","input_schema":{"type":"object","required":["setup_id"],"properties":{"client":{"enum":["cursor","claude","vscode","other"],"type":"string","description":"Optional client hint for the key name."},"setup_id":{"type":"string","description":"setup_id from request_signup."}}},"output_schema":null,"annotations":{"title":"Check Compabase Signup Status","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"count_companies","title":"Count Polish Companies","description":"Count KRS companies matching given filters. Returns a single number — no company list. Does not count JDG in this tool (full CEIDG is in Compabase; listing is RODO-gated). Sparse or zero counts in JDG-dominated PKDs include a `hint`.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number."},"pkd":{"type":"string","description":"Primary PKD code prefix, e.g. '46.90.Z' or '46'."},"city":{"type":"string","description":"City name — KRS uses uppercase."},"name":{"type":"string","description":"Company name fragment (case-insensitive). Matches display name and full KRS name; legal-form suffixes like 'sp. z o.o.' are ignored."},"year":{"type":"integer","description":"Filter to companies whose latest financial_period_to falls within this calendar year. Use only for sector/ranking browse — omit when looking up a company by name, KRS, or NIP."},"county":{"type":"string","description":"County / powiat (lowercase)."},"region":{"type":"string","description":"Voivodeship (lowercase)."},"all_pkd":{"type":"string","description":"Match any PKD code in the company's activity list (not just primary)."},"has_email":{"type":"boolean","description":"true = only companies with email on record. Omit otherwise."},"is_active":{"type":"boolean","description":"true = active only, false = closed only. Omit for all."},"ebitda_max":{"type":"number","description":"Maximum EBITDA in PLN."},"ebitda_min":{"type":"number","description":"Minimum EBITDA in PLN."},"legal_form":{"type":"string","description":"Legal form fragment."},"profit_max":{"type":"number","description":"Maximum net profit in PLN."},"profit_min":{"type":"number","description":"Minimum net profit in PLN."},"capital_max":{"type":"number","description":"Maximum share capital in PLN."},"capital_min":{"type":"number","description":"Minimum share capital in PLN."},"has_website":{"type":"boolean","description":"true = only companies with website on record. Omit otherwise."},"revenue_max":{"type":"number","description":"Maximum total revenue in PLN."},"revenue_min":{"type":"number","description":"Minimum total revenue in PLN."},"total_assets_max":{"type":"number","description":"Maximum total assets in PLN."},"total_assets_min":{"type":"number","description":"Minimum total assets in PLN."},"estimated_value_max":{"type":"number","description":"Maximum Ohlson estimated equity value in PLN."},"estimated_value_min":{"type":"number","description":"Minimum Ohlson estimated equity value in PLN."},"profit_operating_max":{"type":"number","description":"Maximum operating profit in PLN."},"profit_operating_min":{"type":"number","description":"Minimum operating profit in PLN."},"registration_date_max":{"type":"string","description":"Latest KRS registration date, YYYY-MM-DD (inclusive)."},"registration_date_min":{"type":"string","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."}}},"output_schema":null,"annotations":{"title":"Count Polish Companies","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"create_api_key","title":"Create REST API Key","description":"Create a new REST API key (cb_…). The raw key is returned once and cannot be retrieved later.","input_schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Human-readable label for the key (max 100 chars)."}}},"output_schema":null,"annotations":{"title":"Create REST API Key","readOnlyHint":false,"openWorldHint":false,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"create_mcp_key","title":"Create MCP Key","description":"Create a new MCP key (mcpk_…). The raw key is returned once and cannot be retrieved later.","input_schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Human-readable label for the key (max 100 chars)."}}},"output_schema":null,"annotations":{"title":"Create MCP Key","readOnlyHint":false,"openWorldHint":false,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"delete_api_key","title":"Revoke REST API Key","description":"Revoke (deactivate) a REST API key by its ID. The key stops working immediately.","input_schema":{"type":"object","required":["key_id"],"properties":{"key_id":{"type":"string","description":"UUID of the API key to revoke (from list_api_keys)."}}},"output_schema":null,"annotations":{"title":"Revoke REST API Key","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"delete_byok_key","title":"Remove Bring-Your-Own-Key Provider","description":"Remove a configured BYOK provider key. After removal, the platform falls back to its own model access.","input_schema":{"type":"object","required":["provider"],"properties":{"provider":{"enum":["openai","claude","gemini"],"type":"string","description":"Provider to remove key for."}}},"output_schema":null,"annotations":{"title":"Remove Bring-Your-Own-Key Provider","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"delete_mcp_key","title":"Revoke MCP Key","description":"Revoke (deactivate) an MCP key by its ID. Cannot revoke the key currently in use. The key stops working immediately.","input_schema":{"type":"object","required":["key_id"],"properties":{"key_id":{"type":"string","description":"UUID of the MCP key to revoke (from list_mcp_keys)."}}},"output_schema":null,"annotations":{"title":"Revoke MCP Key","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"execute_sql","title":"Execute Read-Only SQL","description":"Execute a read-only SQL SELECT query against the Compabase database. Use when dedicated tools are not enough (aggregations, joins, custom analysis).","input_schema":{"type":"object","required":["query"],"properties":{"query":{"type":"string","description":"A read-only SQL SELECT or WITH…SELECT statement."}}},"output_schema":null,"annotations":{"title":"Execute Read-Only SQL","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"export_companies","title":"Export Companies to CSV","description":"Bulk file export of companies matching filters (CSV / XLSX / JSON). Up to 500 rows per call. Default `fields=contacts_only`: name, NIP, KRS, city, email, phone, website — small enough to use in-chat. `fields=summary` adds location, PKD, latest revenue/profit. `fields=full` is the complete dump (change history, rankings, people, enrichments, CSV twins) and often exceeds MCP client limits. Consumes export quota only after the file is built successfully. For a short list of emails after search_companies, use search with fields=contacts_only instead.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (exports that one company)."},"nip":{"type":"string","description":"NIP tax number (exports matching companies)."},"pkd":{"type":"string","description":"Primary PKD code prefix, e.g. '80.10', '80.10.Z', or '80' (same prefix matching as search_companies)."},"city":{"type":"string","description":"City name."},"name":{"type":"string","description":"Company name fragment (case-insensitive)."},"limit":{"type":"integer","maximum":500,"minimum":1,"description":"Max rows to export (default: 50, max: 500)."},"county":{"type":"string","description":"County / powiat (lowercase). Same filter as search_companies / count_companies."},"fields":{"enum":["contacts_only","summary","full"],"type":"string","description":"Payload size. Default contacts_only (name, NIP, KRS, city, email, phone, website). summary adds county/region, PKD, latest revenue/profit. full is the complete profile dump — often too large for MCP clients; use only when asked for the full file."},"format":{"enum":["csv","xlsx","json"],"type":"string","description":"Export format (default: csv). Column set follows `fields` (contacts_only by default)."},"locale":{"enum":["en","pl","de"],"type":"string","description":"Column/label language (default: en)."},"region":{"type":"string","description":"Voivodeship (e.g. mazowieckie)."},"all_pkd":{"type":"string","description":"Match any PKD code in the company's activity list (not just primary)."},"is_active":{"type":"boolean","description":"true = active companies only."},"revenue_max":{"type":"number","description":"Maximum total revenue."},"revenue_min":{"type":"number","description":"Minimum total revenue."}}},"output_schema":null,"annotations":{"title":"Export Companies to CSV","readOnlyHint":false,"openWorldHint":false,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_byok_keys","title":"Get Bring-Your-Own-Key Providers","description":"List configured Bring-Your-Own-Key (BYOK) provider keys status. Shows which providers (openai, claude, gemini) have keys configured, with prefix and last-used date. Never returns the actual key.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"Get Bring-Your-Own-Key Providers","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company","title":"Get Company Profile","description":"Get company registry profile and headline financials for one latest filed period (`financials.period_to` / `financial_period_to`): revenue, profit, costs, assets, estimated_value (Ohlson/RIM equity estimate), PKD, address, plus contacts when on record, full address, share capital, representation, recent KRS changes and `vat` (MF white list: VAT status, VAT registration date, bank accounts, removal/restoration, date Compabase checked it). All money fields in this response are that same period — there is no nested summary from a different year. NIP lookup also returns a CEIDG/JDG firm when it has a public contact email (RODO). Does NOT include balance-sheet line items (cash, receivables, inventories). For those or earlier years, use get_financials.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (10 digits, zero-padded)."},"nip":{"type":"string","description":"NIP tax number (10 digits, dashes optional)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown (legal-form suffix optional)."}}},"output_schema":null,"annotations":{"title":"Get Company Profile","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_articles","title":"Get Articles of Association","description":"Get full text of the company's articles of association or statute (umowa spółki / statut) from RAR (Repozytorium Akt Rejestrowych). Use when the user asks about: share transfer consent, preemption rights, non-compete clauses, company duration, voting rights, special share classes, representation rules from the deed, or any clause in the founding document. Returns doc metadata + full extracted text. KRS companies only.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP — used to resolve KRS when needed."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."},"doc_id":{"type":"string","description":"Optional: specific rar_doc_id. Omit for the latest articles / statute."}}},"output_schema":null,"annotations":{"title":"Get Articles of Association","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_beneficiaries","title":"Get Ultimate Beneficial Owners (CRBR)","description":"Get CRBR beneficial owners for a KRS company. All names are returned (same as zarząd / wspólnicy). PESEL is never included (birth_year only). JDG are not in CRBR.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (required path for CRBR)."},"nip":{"type":"string","description":"NIP — used to resolve KRS when needed."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Ultimate Beneficial Owners (CRBR)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_court_gazette","title":"Get Court and Commercial Gazette (MSiG)","description":"Get Court and Commercial Gazette (MSiG) notices for one company. Matched by KRS or NIP (creditor calls, dissolution, mergers, liquidation).","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP (CEIDG / when KRS unknown)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Court and Commercial Gazette (MSiG)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_debt_registry","title":"Get National Debt Register (KRZ)","description":"Get KRZ insolvency / restructuring proceedings. KRS companies via company_krz; sole proprietors via CEIDG KRZ by NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP (CEIDG / when KRS unknown)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get National Debt Register (KRZ)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_energy_licenses","title":"Get Energy Regulatory Office Licenses (URE)","description":"Get URE energy concessions for a company — full list of electricity, gas, heat, and liquid fuels, with validity dates and pending applications. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for URE)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Energy Regulatory Office Licenses (URE)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_eu_funds","title":"Get EU Funds Projects","description":"Get European Funds (Fundusze Europejskie) projects for a company — official MFiPR lists, EU co-financing, programme and dates. Keyed by NIP. Identify company by name, KRS, or NIP. Cohesion/shared-management funds; not TED procurement, not FTS Commission grants, and not SUDOP state aid.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for FE)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get EU Funds Projects","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_eu_tenders","title":"Get EU Tenders Daily (TED)","description":"Get TED EU-threshold public procurement — full awards as contractor and notices as buyer. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for TED)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get EU Tenders Daily (TED)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_financial_supervision","title":"Get KNF Financial Supervision Register","description":"KNF register (Polish Financial Supervision Authority): licences and entries of a financial company — banks, payment / e-money institutions, investment firms, insurers, lending institutions, agents. Returns entries with kind, KNF number, status, registration / decision / strike-off dates and services. Keyed by NIP; null when the company has no KNF entry.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get KNF Financial Supervision Register","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_nfz_contracts","title":"Get National Health Fund Contracts (NFZ)","description":"Get contracts between the company (as a healthcare provider) and Poland's National Health Fund (NFZ) — value of NFZ contracts in the latest year and every year since 2008, types of care (hospital, outpatient, dental, rehabilitation, pharmacy etc.) with NFZ regional branch, and the largest contracts. Amounts are annual contract values in PLN. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for NFZ)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get National Health Fund Contracts (NFZ)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_people","title":"Get Company People & Management","description":"Get people associated with a company — management board, supervisory board, shareholders, proxies. Returns display names, role labels, and relationship types (management, supervisory, ownership, procuration). Identify by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown (legal-form suffix optional)."},"relationship_type":{"type":"string","description":"Filter: management, supervisory (rada nadzorcza), ownership, procuration. Omit for all."}}},"output_schema":null,"annotations":{"title":"Get Company People & Management","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_procurement","title":"Get EU Grants (FTS)","description":"Get European Commission FTS awards for a company — Horizon, LIFE, Erasmus and other direct/indirect-management grants. Keyed by NIP (VAT). Identify by name, KRS, or NIP. Not cohesion funds (get_company_fe) and not TED procurement.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for FTS)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get EU Grants (FTS)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_procurement_disputes","title":"Get Procurement Disputes (KIO)","description":"Get National Appeal Chamber (Krajowa Izba Odwoławcza, KIO) rulings in public procurement disputes involving the company — as appellant (with upheld / dismissed / discontinued / rejected counts), as participant or as contracting authority — with case numbers, dates, other party and outcome. Parties are matched by name and city. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Procurement Disputes (KIO)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_public_aid","title":"Get Public Aid (SUDOP)","description":"Get SUDOP public aid / grants for a company — full case list with amounts, grantor, measure, purpose. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for SUDOP)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Public Aid (SUDOP)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_public_contracts","title":"Get Public Sector Contracts (CRU)","description":"Get contracts from Poland's Central Register of Contracts (CRU JSFP, Ministry of Finance) where the company is the contractor of a public-sector unit (ministries, municipalities, schools, hospitals) — count, total value, top public buyers and the 50 most recent contracts (date, subject, value in PLN, buyer, link). Register live since July 2026; covers contracts below tender thresholds too. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for CRU)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Public Sector Contracts (CRU)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_public_tenders","title":"Get Public Procurement Bulletin (BZP)","description":"Get BZP public procurement data — full awards as contractor and notices as buyer, with award values. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for BZP)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Public Procurement Bulletin (BZP)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_rankings","title":"Get Company Sector Rankings","description":"Get a company's revenue rank positions within its industry (PKD), region (voivodeship), and all of Poland. Returns rows from company_financial_rankings — one row per scope (pkd_full, pkd_division, pkd_section, region, country). Use for questions like: where does company X rank in Poland / its industry / its region?","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (10 digits, zero-padded)."},"nip":{"type":"string","description":"NIP tax number (10 digits, dashes optional)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."},"scope_type":{"enum":["pkd_full","pkd_division","pkd_section","region","country"],"type":"string","description":"Optional. Filter to a single scope. Omit to get all scopes."}}},"output_schema":null,"annotations":{"title":"Get Company Sector Rankings","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_real_estate","title":"Get Company Real Estate","description":"Company real estate from the latest financial statement (period ending 2025+): land incl. perpetual usufruct, buildings and premises, investment property (book values in PLN/EUR/USD) plus property locations named as mortgage collateral (address, land-register KW numbers, creditor). Keyed by KRS; null when the balance sheet shows no real estate (micro and small entities have no such breakdown).","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Company Real Estate","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_sanctions","title":"Get sanctions listing (MSWiA)","description":"Official MSWiA sanctions listing for one company. Returns measures and legal grounds when the company is listed; null when it is not. Matched by KRS, NIP, or REGON. The same payload is included on get_company as sanctions.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get sanctions listing (MSWiA)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_secured_liabilities","title":"Get Secured Liabilities (Mortgages, Pledges)","description":"Secured liabilities from the latest financial-statement notes (period ending 2025+): mortgages (hipoteki), registered / financial pledges (zastawy), transfers of ownership, assignments — with creditor, amount, secured debt, asset and land-register (KW) numbers. Keyed by KRS; null when nothing is disclosed.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Secured Liabilities (Mortgages, Pledges)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_stock_market","title":"Get Warsaw Stock Exchange Data (GPW)","description":"Get Warsaw Stock Exchange listing for a company — ticker, ISIN, market (GPW main / NewConnect / GlobalConnect), last close and change, market cap, shares outstanding, TTM EPS, TTM P/E (falls back to last annual filing), last quarterly results, next earnings date, dividend per share and yield. Quotes delayed ~15 minutes, in PLN. Snapshot plus a few recent daily bars — not full OHLCV history. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for GPW)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Warsaw Stock Exchange Data (GPW)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_trademarks","title":"Get Trademarks (UPRP)","description":"Get Polish Patent Office (UPRP) trademarks owned or applied for by the company — mark name, application number, Nice classes, status (protected / pending / expired / refused), filing, registration and expiry dates, plus counts. Owners are matched by company name and city (UPRP does not publish NIP). Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Trademarks (UPRP)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_company_waste_registry","title":"Get Waste Management Registry (BDO)","description":"Get BDO waste and packaging register data — registration number, EUP site count, activity flags, and headquarters decisions with issue and validity dates. Keyed by NIP. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number (preferred for BDO)."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown."}}},"output_schema":null,"annotations":{"title":"Get Waste Management Registry (BDO)","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_financials","title":"Get Full Financial Statements","description":"Get full financial statement metrics per fiscal period — all entity_financial_metrics columns. Includes cash_and_equivalents, inventories, receivables, liabilities, equity, cost breakdown, revenue lines. Identify company by name, KRS, or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number."},"nip":{"type":"string","description":"NIP tax number."},"name":{"type":"string","description":"Company name when KRS/NIP is unknown (legal-form suffix optional)."},"year_to":{"type":"integer","description":"Latest fiscal year to include (e.g. 2023)."},"year_from":{"type":"integer","description":"Earliest fiscal year to include (e.g. 2019)."}}},"output_schema":null,"annotations":{"title":"Get Full Financial Statements","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_financial_stats","title":"Get Sector Financial Statistics","description":"Get precomputed aggregate financial statistics for a sector, region, PKD branch, or country. Returns median, p25/p75/p90, winsorized mean, mean, total, n_companies, min/max. Use for questions like: what is the median revenue / average profit / assets in industry X or region Y? Prefer median or winsor_mean over mean. cost_wages is PLN-only.","input_schema":{"type":"object","properties":{"metric":{"enum":["revenue_total","profit_net","total_assets","cost_wages"],"type":"string","description":"Financial metric. Omit to return all metrics."},"currency":{"enum":["PLN","EUR","USD"],"type":"string","description":"Currency (default: PLN). cost_wages is PLN-only."},"dimension_key":{"type":"string","description":"Key for the dimension, e.g. 'PL', 'G', '46', '46.90.Z', 'mazowieckie'. Prefix match applied."},"dimension_type":{"enum":["country","pkd_section","pkd_division","pkd_class","pkd_full","region","county","city"],"type":"string","description":"Granularity: 'country'=Poland; 'pkd_section'=A–U; 'pkd_division'=2-digit; 'pkd_full'=full code; 'region'=voivodeship; etc."}}},"output_schema":null,"annotations":{"title":"Get Sector Financial Statistics","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_plan","title":"Get Current Subscription Plan","description":"Get the user's active billing plan details — plan name, price, status, limits, prepaid credit balance, and billing period reset date.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"Get Current Subscription Plan","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"get_usage","title":"Get Account Usage & Quota","description":"Get current billing period usage and remaining quota — mcp_queries, api_requests, export_companies, ask_ai_credits, watchlist_companies. Includes limits and reset date.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"Get Account Usage & Quota","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"list_api_keys","title":"List REST API Keys","description":"List all active REST API keys (cb_…) for the user's account. Returns id, name, key_prefix, created_at, last_used_at.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"List REST API Keys","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"list_mcp_keys","title":"List MCP Keys","description":"List all active MCP keys (mcpk_…) for the user's account. Returns id, name, key_prefix, created_at, last_used_at.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"List MCP Keys","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"list_plans","title":"List Compabase Subscription Plans","description":"List Compabase billing plans and limits. No auth required. After sign-up, use upgrade_plan to get a Stripe Checkout URL.","input_schema":{"type":"object","properties":{}},"output_schema":null,"annotations":{"title":"List Compabase Subscription Plans","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"list_watchlist","title":"List Watchlist Companies","description":"List companies on the user's watchlist with company data (name, KRS, NIP, revenue, city). Supports pagination via limit/offset.","input_schema":{"type":"object","properties":{"limit":{"type":"integer","maximum":100,"minimum":1,"description":"Max results (default: 20, max: 100)."},"offset":{"type":"integer","minimum":0,"description":"Pagination offset (default: 0)."}}},"output_schema":null,"annotations":{"title":"List Watchlist Companies","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"remove_from_watchlist","title":"Remove Company from Watchlist","description":"Remove a company from the user's watchlist. Identify by KRS or NIP.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (10 digits, zero-padded)."},"nip":{"type":"string","description":"NIP tax number (10 digits)."}}},"output_schema":null,"annotations":{"title":"Remove Company from Watchlist","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":true},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"request_signup","title":"Request Compabase Signup","description":"Start Compabase account setup for an email. Sends a magic link. After the user clicks it, poll check_signup with the returned setup_id until status is ready — then you receive an MCP key automatically. Do not ask the user to generate a key in the portal. No auth required.","input_schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"User email to create or sign in to a Compabase account."},"client":{"enum":["cursor","claude","vscode","other"],"type":"string","description":"AI client, used to label the generated MCP key."},"locale":{"enum":["en","pl","de"],"type":"string","description":"Email language (default en)."}}},"output_schema":null,"annotations":{"title":"Request Compabase Signup","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"search_companies","title":"Search Polish Companies","description":"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). Do not call export_companies just to get a handful of emails or phones.","input_schema":{"type":"object","properties":{"krs":{"type":"string","description":"KRS registry number (10 digits, zero-padded, e.g. '0000028860')."},"nip":{"type":"string","description":"NIP tax number (10 digits, no dashes)."},"pkd":{"type":"string","description":"Primary PKD code prefix, e.g. '46.90.Z' or '46'."},"city":{"type":"string","description":"City name — KRS records use uppercase, e.g. 'WARSZAWA', 'POZNAŃ'."},"name":{"type":"string","description":"Company name fragment (case-insensitive). Matches display name and full KRS name; legal-form suffixes like 'sp. z o.o.' are ignored."},"year":{"type":"integer","description":"Filter 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."},"limit":{"type":"integer","maximum":50,"minimum":1,"description":"Max results (default: 10, max: 50)."},"county":{"type":"string","description":"County / powiat (lowercase)."},"fields":{"enum":["contacts_only","summary","full"],"type":"string","description":"Response 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."},"region":{"type":"string","description":"Voivodeship (lowercase), e.g. 'mazowieckie', 'wielkopolskie'."},"all_pkd":{"type":"string","description":"Match any PKD code in the company's activity list (not just primary)."},"sort_by":{"enum":["revenue_total","profit_net","total_assets","profit_operating","ebitda","capital_total","estimated_value","registration_date","revenue_growth_pct"],"type":"string","description":"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)."},"currency":{"enum":["pln","usd","eur"],"type":"string","description":"Currency for monetary filters. Default: pln."},"sort_dir":{"enum":["asc","desc"],"type":"string","description":"Sort direction (default: desc)."},"has_email":{"type":"boolean","description":"true = only companies with email on record. Matching rows include contacts.email. Omit otherwise."},"is_active":{"type":"boolean","description":"true = active only, false = closed only. Omit for all."},"ebitda_max":{"type":"number","description":"Maximum EBITDA."},"ebitda_min":{"type":"number","description":"Minimum EBITDA."},"legal_form":{"type":"string","description":"Legal form fragment, e.g. 'spółka z o.o.' or 'akcyjna'."},"profit_max":{"type":"number","description":"Maximum net profit."},"profit_min":{"type":"number","description":"Minimum net profit."},"capital_max":{"type":"number","description":"Maximum share capital."},"capital_min":{"type":"number","description":"Minimum share capital."},"has_website":{"type":"boolean","description":"true = only companies with website on record. Matching rows include contacts.website. Omit otherwise."},"postal_code":{"type":"string","description":"Postal code prefix, e.g. '00-9' or '61-'."},"revenue_max":{"type":"number","description":"Maximum total revenue."},"revenue_min":{"type":"number","description":"Minimum total revenue."},"total_assets_max":{"type":"number","description":"Maximum total assets."},"total_assets_min":{"type":"number","description":"Minimum total assets."},"estimated_value_max":{"type":"number","description":"Maximum Ohlson estimated equity value in PLN."},"estimated_value_min":{"type":"number","description":"Minimum Ohlson estimated equity value in PLN."},"profit_operating_max":{"type":"number","description":"Maximum operating profit (PLN). Omit if unused."},"profit_operating_min":{"type":"number","description":"Minimum operating profit (PLN). Negative allowed. Omit if unused."},"registration_date_max":{"type":"string","description":"Latest KRS registration date, YYYY-MM-DD (inclusive)."},"registration_date_min":{"type":"string","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."}}},"output_schema":null,"annotations":{"title":"Search Polish Companies","readOnlyHint":true,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"set_byok_key","title":"Set Bring-Your-Own-Key Provider","description":"Add or update a BYOK provider API key. Key is encrypted at rest (AES-256-GCM). Requires paid plan (Pro+). Providers: openai (sk-…), claude (sk-ant-…), gemini (AIza… or AQ.…).","input_schema":{"type":"object","required":["provider","api_key"],"properties":{"api_key":{"type":"string","description":"Raw API key for the provider."},"provider":{"enum":["openai","claude","gemini"],"type":"string","description":"AI provider name."}}},"output_schema":null,"annotations":{"title":"Set Bring-Your-Own-Key Provider","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"set_notification_preferences","title":"Set Notification Preferences","description":"Get or update email notification preferences for watchlist changes. When email_notifications=true, you will receive an email whenever a watched company's data changes (registry updates, new financial statements, deregistration, etc.).","input_schema":{"type":"object","required":["action"],"properties":{"action":{"enum":["get","set"],"type":"string","description":"'get' returns current preferences, 'set' updates them."},"notification_email":{"type":"string","description":"Override email address for notifications. Omit to use account email."},"email_notifications":{"type":"boolean","description":"Enable/disable email notifications for watchlist changes (required for 'set')."}}},"output_schema":null,"annotations":{"title":"Set Notification Preferences","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"set_webhook_url","title":"Configure Webhook URL","description":"Configure, view, or remove webhook for watchlist event notifications. Events: watchlist.company_changed, watchlist.financials_updated, watchlist.company_removed_from_registry.","input_schema":{"type":"object","required":["action"],"properties":{"url":{"type":"string","description":"HTTPS webhook endpoint URL (required for action=set)."},"action":{"enum":["get","set","delete"],"type":"string","description":"Action: 'get' to view config, 'set' to configure, 'delete' to remove."},"events":{"type":"array","items":{"type":"string"},"description":"Event types to subscribe to. Defaults to all available events."}}},"output_schema":null,"annotations":{"title":"Configure Webhook URL","readOnlyHint":false,"openWorldHint":false,"idempotentHint":true,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"},{"name":"upgrade_plan","title":"Upgrade Subscription Plan","description":"Create a Stripe Checkout session for a plan upgrade. Shows current plan and available upgrades. Pass plan_id ('pro' or 'scale') to get a checkout_url on checkout.stripe.com — open it in the browser for the user to pay. Do not send the user to the marketing pricing page.","input_schema":{"type":"object","properties":{"locale":{"enum":["en","pl","de"],"type":"string","description":"UI locale for the success/cancel return URLs (default en)."},"plan_id":{"enum":["pro","scale"],"type":"string","description":"Target plan ID. Required to create a Stripe Checkout URL."},"currency":{"enum":["PLN","USD","EUR"],"type":"string","description":"Checkout currency. Defaults from locale (pl → PLN, otherwise USD)."}}},"output_schema":null,"annotations":{"title":"Upgrade Subscription Plan","readOnlyHint":false,"openWorldHint":true,"idempotentHint":false,"destructiveHint":false},"source":"probe","observed_at":"2026-10-19T19:07:17.386Z"}],"next_cursor":null,"next_actions":[{"action":"get_connection","description":"Connection block to call these tools","href":"/v1/servers/io.github.ContentWriterco%2Fcompabase/connection?target=mcpServers","arguments":{"name":"io.github.ContentWriterco/compabase","target":"mcpServers"}},{"action":"get_server","description":"Full descriptor with trust and connectability","href":"/v1/servers/io.github.ContentWriterco%2Fcompabase","arguments":{"name":"io.github.ContentWriterco/compabase"}}]}