Repository navigation
Expand file tree
/
Copy pathserver-card.json
More file actions
2351 lines (2351 loc) · 88 KB
/
Copy pathserver-card.json
File metadata and controls
2351 lines (2351 loc) · 88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "compabase",
"displayName": "Compabase — Polish Companies MCP Server",
"title": "Compabase — Polish Companies MCP Server",
"description": "Direct access to 3M+ Polish companies from KRS (National Court Register) and CEIDG registries. Query financials, ownership, management boards, rankings, and public aid.",
"homepage": "https://compabase.com",
"websiteUrl": "https://compabase.com",
"website": "https://compabase.com",
"icon": "https://compabase.com/logo.png",
"iconUrl": "https://compabase.com/logo.png",
"icons": [
{
"src": "https://compabase.com/logo.png",
"mimeType": "image/png"
}
],
"serverInfo": {
"name": "compabase",
"version": "1.7.0",
"title": "Compabase — Polish Companies MCP Server",
"displayName": "Compabase — Polish Companies MCP Server",
"description": "Direct access to 3M+ Polish companies from KRS (National Court Register) and CEIDG registries. Query financials, ownership, management boards, rankings, and public aid.",
"homepage": "https://compabase.com",
"websiteUrl": "https://compabase.com",
"website": "https://compabase.com",
"icon": "https://compabase.com/logo.png",
"iconUrl": "https://compabase.com/logo.png"
},
"configSchema": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"title": "Compabase MCP Key",
"description": "MCP API key (mcpk_...). Optional for initial signup and tier listing. Generate your key at https://compabase.com/mcp."
}
}
},
"config_schema": {
"type": "object",
"properties": {
"apiKey": {
"type": "string",
"title": "Compabase MCP Key",
"description": "MCP API key (mcpk_...). Optional for initial signup and tier listing. Generate your key at https://compabase.com/mcp."
}
}
},
"authentication": {
"required": false
},
"tools": [
{
"name": "request_signup",
"title": "Request Compabase Signup",
"description": "Start Compabase account setup for an email. Sends a magic link. After the user clicks it, check_signup with the returned setup_id reports status ready and returns the MCP key automatically. No key has to be generated in the portal. No auth required.",
"inputSchema": {
"type": "object",
"required": [
"email"
],
"properties": {
"email": {
"type": "string",
"description": "User email to create or sign in to a Compabase account."
},
"locale": {
"type": "string",
"enum": [
"en",
"pl",
"de"
],
"description": "Email language (default en)."
},
"client": {
"type": "string",
"enum": [
"cursor",
"claude",
"vscode",
"other"
],
"description": "AI client, used to label the generated MCP key."
}
}
},
"annotations": {
"title": "Request Compabase Signup",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": true
}
},
{
"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.",
"inputSchema": {
"type": "object",
"required": [
"setup_id"
],
"properties": {
"setup_id": {
"type": "string",
"description": "setup_id from request_signup."
},
"client": {
"type": "string",
"enum": [
"cursor",
"claude",
"vscode",
"other"
],
"description": "Optional client hint for the key name."
}
}
},
"annotations": {
"title": "Check Compabase Signup Status",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": true
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {}
},
"annotations": {
"title": "List Compabase Subscription Plans",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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). For a handful of emails or phones, fields=contacts_only here is enough; export_companies is meant for bulk files.",
"inputSchema": {
"type": "object",
"properties": {
"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."
},
"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)."
},
"city": {
"type": "string",
"description": "City name — KRS records use uppercase, e.g. 'WARSZAWA', 'POZNAŃ'."
},
"county": {
"type": "string",
"description": "County / powiat (lowercase)."
},
"region": {
"type": "string",
"description": "Voivodeship (lowercase), e.g. 'mazowieckie', 'wielkopolskie'."
},
"postal_code": {
"type": "string",
"description": "Postal code prefix, e.g. '00-9' or '61-'."
},
"pkd": {
"type": "string",
"description": "Primary PKD code prefix, e.g. '46.90.Z' or '46'."
},
"all_pkd": {
"type": "string",
"description": "Match any PKD code in the company's activity list (not just primary)."
},
"legal_form": {
"type": "string",
"description": "Legal form fragment, e.g. 'spółka z o.o.' or 'akcyjna'."
},
"currency": {
"type": "string",
"enum": [
"pln",
"usd",
"eur"
],
"description": "Currency for monetary filters. Default: pln."
},
"revenue_min": {
"type": "number",
"description": "Minimum total revenue."
},
"revenue_max": {
"type": "number",
"description": "Maximum total revenue."
},
"profit_min": {
"type": "number",
"description": "Minimum net profit."
},
"profit_max": {
"type": "number",
"description": "Maximum net profit."
},
"profit_operating_min": {
"type": "number",
"description": "Minimum operating profit (PLN). Negative allowed. Omit if unused."
},
"profit_operating_max": {
"type": "number",
"description": "Maximum operating profit (PLN). Omit if unused."
},
"total_assets_min": {
"type": "number",
"description": "Minimum total assets."
},
"total_assets_max": {
"type": "number",
"description": "Maximum total assets."
},
"ebitda_min": {
"type": "number",
"description": "Minimum EBITDA."
},
"ebitda_max": {
"type": "number",
"description": "Maximum EBITDA."
},
"ownership_structure": {
"type": "string",
"enum": [
"pl_independent",
"pl_group",
"foreign_group"
],
"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)."
},
"family_business": {
"type": "boolean",
"description": "true = family business (people with the same surname hold ≥50%)."
},
"naics": {
"type": "string",
"description": "Detailed industry: NAICS 6-digit codes, comma-separated (any of them), e.g. '541511,541512'. AI classification of what the company actually does."
},
"service": {
"type": "string",
"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)."
},
"niche": {
"type": "string",
"description": "Detailed industry in words (Polish, English or German), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering', 'Verpackungen'."
},
"capital_min": {
"type": "number",
"description": "Minimum share capital."
},
"capital_max": {
"type": "number",
"description": "Maximum share capital."
},
"estimated_value_min": {
"type": "number",
"description": "Minimum Ohlson estimated equity value in PLN."
},
"estimated_value_max": {
"type": "number",
"description": "Maximum Ohlson estimated equity value in PLN."
},
"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."
},
"registration_date_max": {
"type": "string",
"description": "Latest KRS registration date, YYYY-MM-DD (inclusive)."
},
"is_active": {
"type": "boolean",
"description": "true = active only, false = closed only. Omit for all."
},
"has_email": {
"type": "boolean",
"description": "true = only companies with email on record. Matching rows include contacts.email. Omit otherwise."
},
"has_website": {
"type": "boolean",
"description": "true = only companies with website on record. Matching rows include contacts.website. Omit otherwise."
},
"sort_by": {
"type": "string",
"enum": [
"revenue_total",
"profit_net",
"total_assets",
"profit_operating",
"ebitda",
"capital_total",
"estimated_value",
"registration_date",
"revenue_growth_pct"
],
"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)."
},
"sort_dir": {
"type": "string",
"enum": [
"asc",
"desc"
],
"description": "Sort direction (default: desc)."
},
"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",
"minimum": 1,
"maximum": 50,
"description": "Max results (default: 10, max: 50)."
},
"fields": {
"type": "string",
"enum": [
"contacts_only",
"summary",
"full"
],
"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."
}
}
},
"annotations": {
"title": "Search Polish Companies",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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 `company_summary` (company description from the profile, language via `lang`), `logo_url`, `niche_pl` / `niche_en` / `niche_de` (detailed industry in words: what the company actually does, in Polish, English and German) with `naics_codes`, `job_offers` (current job offers from the company career page and public job boards), `similar_companies`, `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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown (legal-form suffix optional)."
},
"krs": {
"type": "string",
"description": "KRS registry number (10 digits, zero-padded)."
},
"nip": {
"type": "string",
"description": "NIP tax number (10 digits, dashes optional)."
},
"lang": {
"type": "string",
"enum": [
"pl",
"en",
"de"
],
"description": "Language of `company_summary` (default pl). Falls back to en, pl, de when missing."
}
}
},
"annotations": {
"title": "Get Company Profile",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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. The standalone row of the latest analysed statement also has `notes` (additional information from the statement): average employment (employees_avg, employees_avg_prev), income tax, profit distribution and dividend, parent and ultimate parent, related-party transactions, shareholdings, guarantees and contingent liabilities, loans, auditor fee, revenue split. Every row has `insights`: the financial signals shown on the Compabase profile for that year and scope (plain-text sentences, e.g. negative equity, cash share of current assets), and `metric_summaries`: the sentences next to each statement line on the profile ({ revenue_total: [...], ebitda: [...], equity: [...], … }, with y/y change and structure). Both in `lang` with amounts in `currency`; [] / {} when none. Identify company by name, KRS, or NIP.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown (legal-form suffix optional)."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number."
},
"year_from": {
"type": "integer",
"description": "Earliest fiscal year to include (e.g. 2019)."
},
"year_to": {
"type": "integer",
"description": "Latest fiscal year to include (e.g. 2023)."
},
"lang": {
"type": "string",
"enum": [
"pl",
"en",
"de"
],
"description": "Language of `insights` and `metric_summaries` (default pl)."
},
"currency": {
"type": "string",
"enum": [
"pln",
"usd",
"eur"
],
"description": "Currency of amounts inside `insights` and `metric_summaries` (default pln). Statement figures stay in PLN."
}
}
},
"annotations": {
"title": "Get Full Financial Statements",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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). `connected_companies`: other companies where these people hold roles or shares (company connections from the profile). Identify by name, KRS, or NIP.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown (legal-form suffix optional)."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number."
},
"relationship_type": {
"type": "string",
"description": "Filter: management, supervisory (rada nadzorcza), ownership, procuration. Omit for all."
}
}
},
"annotations": {
"title": "Get Company People & Management",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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`.",
"inputSchema": {
"type": "object",
"properties": {
"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."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number."
},
"city": {
"type": "string",
"description": "City name — KRS uses uppercase."
},
"county": {
"type": "string",
"description": "County / powiat (lowercase)."
},
"region": {
"type": "string",
"description": "Voivodeship (lowercase)."
},
"pkd": {
"type": "string",
"description": "Primary PKD code prefix, e.g. '46.90.Z' or '46'."
},
"all_pkd": {
"type": "string",
"description": "Match any PKD code in the company's activity list (not just primary)."
},
"legal_form": {
"type": "string",
"description": "Legal form fragment."
},
"revenue_min": {
"type": "number",
"description": "Minimum total revenue in PLN."
},
"revenue_max": {
"type": "number",
"description": "Maximum total revenue in PLN."
},
"profit_min": {
"type": "number",
"description": "Minimum net profit in PLN."
},
"profit_max": {
"type": "number",
"description": "Maximum net profit in PLN."
},
"profit_operating_min": {
"type": "number",
"description": "Minimum operating profit in PLN."
},
"profit_operating_max": {
"type": "number",
"description": "Maximum operating profit in PLN."
},
"total_assets_min": {
"type": "number",
"description": "Minimum total assets in PLN."
},
"total_assets_max": {
"type": "number",
"description": "Maximum total assets in PLN."
},
"ebitda_min": {
"type": "number",
"description": "Minimum EBITDA in PLN."
},
"ebitda_max": {
"type": "number",
"description": "Maximum EBITDA in PLN."
},
"ownership_structure": {
"type": "string",
"enum": [
"pl_independent",
"pl_group",
"foreign_group"
],
"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)."
},
"family_business": {
"type": "boolean",
"description": "true = family business (people with the same surname hold ≥50%)."
},
"naics": {
"type": "string",
"description": "Detailed industry: NAICS 6-digit codes, comma-separated (any of them), e.g. '541511,541512'. AI classification of what the company actually does."
},
"service": {
"type": "string",
"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)."
},
"niche": {
"type": "string",
"description": "Detailed industry in words (Polish, English or German), matched against the company's niche, e.g. 'opakowania', 'software house', 'catering', 'Verpackungen'."
},
"capital_min": {
"type": "number",
"description": "Minimum share capital in PLN."
},
"capital_max": {
"type": "number",
"description": "Maximum share capital in PLN."
},
"estimated_value_min": {
"type": "number",
"description": "Minimum Ohlson estimated equity value in PLN."
},
"estimated_value_max": {
"type": "number",
"description": "Maximum Ohlson estimated equity value in PLN."
},
"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."
},
"registration_date_max": {
"type": "string",
"description": "Latest KRS registration date, YYYY-MM-DD (inclusive)."
},
"is_active": {
"type": "boolean",
"description": "true = active only, false = closed only. Omit for all."
},
"has_email": {
"type": "boolean",
"description": "true = only companies with email on record. Omit otherwise."
},
"has_website": {
"type": "boolean",
"description": "true = only companies with website on record. Omit otherwise."
},
"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."
}
}
},
"annotations": {
"title": "Count Polish Companies",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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). Returns at most row_limit rows per call depending on the plan (Free 100, Pro 500, Scale 1000); if truncated is true, the full result is larger and fits better as an aggregate inside SQL (GROUP BY, COUNT, AVG, percentile_cont).",
"inputSchema": {
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string",
"description": "A read-only SQL SELECT or WITH…SELECT statement."
}
}
},
"annotations": {
"title": "Execute Read-Only SQL",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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). PKD scope keys of historical classifications are prefixed with the version: 'v2007:62.01.Z', 'v2004:50', 'v1997:74.84.B' (no prefix = PKD 2025). `benchmark`: the company compared with peers (median, quartiles, mean of revenue, profit, costs, assets) in its industry, region and city, as on the profile. Use for questions like: where does company X rank in Poland / its industry / its region, how does it compare with its industry?",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number (10 digits, zero-padded)."
},
"nip": {
"type": "string",
"description": "NIP tax number (10 digits, dashes optional)."
},
"scope_type": {
"type": "string",
"enum": [
"pkd_full",
"pkd_division",
"pkd_section",
"region",
"country"
],
"description": "Optional. Filter to a single scope. Omit to get all scopes."
},
"currency": {
"type": "string",
"enum": [
"PLN",
"EUR",
"USD"
],
"description": "Currency of `benchmark` (default PLN)."
},
"lang": {
"type": "string",
"enum": [
"pl",
"en",
"de"
],
"description": "Language of benchmark labels (default pl)."
}
}
},
"annotations": {
"title": "Get Company Sector Rankings",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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? median and winsor_mean are robust to outliers; mean is not. cost_wages is PLN-only.",
"inputSchema": {
"type": "object",
"properties": {
"dimension_type": {
"type": "string",
"enum": [
"country",
"pkd_section",
"pkd_division",
"pkd_class",
"pkd_full",
"region",
"county",
"city"
],
"description": "Granularity: 'country'=Poland; 'pkd_section'=A–U; 'pkd_division'=2-digit; 'pkd_full'=full code; 'region'=voivodeship; etc."
},
"dimension_key": {
"type": "string",
"description": "Key for the dimension, e.g. 'PL', 'G', '46', '46.90.Z', 'mazowieckie'. Prefix match applied."
},
"metric": {
"type": "string",
"enum": [
"revenue_total",
"profit_net",
"total_assets",
"cost_wages"
],
"description": "Financial metric. Omit to return all metrics."
},
"currency": {
"type": "string",
"enum": [
"PLN",
"EUR",
"USD"
],
"description": "Currency (default: PLN). cost_wages is PLN-only."
}
}
},
"annotations": {
"title": "Get Sector Financial Statistics",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for SUDOP)."
}
}
},
"annotations": {
"title": "Get Public Aid (SUDOP)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for FE)."
}
}
},
"annotations": {
"title": "Get EU Funds Projects",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for FTS)."
}
}
},
"annotations": {
"title": "Get EU Grants (FTS)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for BZP)."
}
}
},
"annotations": {
"title": "Get Public Procurement Bulletin (BZP)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for URE)."
}
}
},
"annotations": {
"title": "Get Energy Regulatory Office Licenses (URE)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for CRU)."
}
}
},
"annotations": {
"title": "Get Public Sector Contracts (CRU)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"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.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number (preferred for NFZ)."
}
}
},
"annotations": {
"title": "Get National Health Fund Contracts (NFZ)",
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
}
},
{
"name": "get_company_group",
"title": "Get Corporate Group (GLEIF LEI register)",
"description": "Get the corporate group of a Polish company from the global LEI register (GLEIF), supplemented with foreign corporate shareholders from KRS matched to it: direct parent and ultimate parent (name, country, LEI), subsidiaries and other group companies — Polish ones with KRS number, foreign ones with country — and group size. Answers 'who owns this company', 'which concern does it belong to', 'other companies of the group in Poland and abroad'. Keyed by KRS. Identify company by name, KRS, or NIP.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Company name when KRS/NIP is unknown."
},
"krs": {
"type": "string",
"description": "KRS registry number."
},
"nip": {
"type": "string",
"description": "NIP tax number."
},
"limit": {
"type": "integer",
"description": "Max group companies per list (default 50, max 200)."