bcb-br-mcp 1.2.1 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tools.d.ts CHANGED
@@ -43,6 +43,7 @@ export interface ToolResult {
43
43
  type: "text";
44
44
  text: string;
45
45
  }>;
46
+ structuredContent?: Record<string, unknown>;
46
47
  isError?: boolean;
47
48
  }
48
49
  export interface ToolDefinition {
@@ -94,6 +95,13 @@ export declare function handleComparar(args: {
94
95
  export declare const TOOL_DEFINITIONS: ({
95
96
  name: string;
96
97
  description: string;
98
+ annotations: {
99
+ title: string;
100
+ readOnlyHint: boolean;
101
+ destructiveHint: boolean;
102
+ idempotentHint: boolean;
103
+ openWorldHint: boolean;
104
+ };
97
105
  inputSchema: {
98
106
  type: "object";
99
107
  properties: {
@@ -117,9 +125,105 @@ export declare const TOOL_DEFINITIONS: ({
117
125
  };
118
126
  required: string[];
119
127
  };
128
+ outputSchema: {
129
+ type: "object";
130
+ properties: {
131
+ serie: {
132
+ type: "object";
133
+ description: string;
134
+ properties: {
135
+ codigo: {
136
+ type: "number";
137
+ description: string;
138
+ };
139
+ nome: {
140
+ type: "string";
141
+ description: string;
142
+ };
143
+ categoria: {
144
+ type: "string";
145
+ description: string;
146
+ };
147
+ periodicidade: {
148
+ type: "string";
149
+ description: string;
150
+ };
151
+ };
152
+ required: string[];
153
+ };
154
+ totalRegistros: {
155
+ type: "number";
156
+ description: string;
157
+ };
158
+ periodoInicial: {
159
+ type: "string";
160
+ description: string;
161
+ };
162
+ periodoFinal: {
163
+ type: "string";
164
+ description: string;
165
+ };
166
+ dados: {
167
+ type: "array";
168
+ description: string;
169
+ items: {
170
+ type: "object";
171
+ properties: {
172
+ data: {
173
+ type: "string";
174
+ description: string;
175
+ };
176
+ valor: {
177
+ type: "number";
178
+ description: string;
179
+ };
180
+ };
181
+ required: string[];
182
+ };
183
+ };
184
+ observacao: {
185
+ type: "string";
186
+ description: string;
187
+ };
188
+ codigo?: undefined;
189
+ nome?: undefined;
190
+ unidade?: undefined;
191
+ periodicidade?: undefined;
192
+ fonte?: undefined;
193
+ categoria?: undefined;
194
+ especial?: undefined;
195
+ ultimoValor?: undefined;
196
+ urlConsulta?: undefined;
197
+ urlUltimos10?: undefined;
198
+ totalSeries?: undefined;
199
+ categorias?: undefined;
200
+ series?: undefined;
201
+ termo?: undefined;
202
+ totalEncontradas?: undefined;
203
+ mensagem?: undefined;
204
+ sugestao?: undefined;
205
+ consultadoEm?: undefined;
206
+ indicadores?: undefined;
207
+ periodo?: undefined;
208
+ analise?: undefined;
209
+ estatisticas?: undefined;
210
+ seriesComDados?: undefined;
211
+ seriesComErro?: undefined;
212
+ ranking?: undefined;
213
+ erros?: undefined;
214
+ };
215
+ required: string[];
216
+ };
120
217
  } | {
121
218
  name: string;
122
219
  description: string;
220
+ annotations: {
221
+ title: string;
222
+ readOnlyHint: boolean;
223
+ destructiveHint: boolean;
224
+ idempotentHint: boolean;
225
+ openWorldHint: boolean;
226
+ };
123
227
  inputSchema: {
124
228
  type: "object";
125
229
  properties: {
@@ -140,9 +244,99 @@ export declare const TOOL_DEFINITIONS: ({
140
244
  };
141
245
  required: string[];
142
246
  };
247
+ outputSchema: {
248
+ type: "object";
249
+ properties: {
250
+ serie: {
251
+ type: "object";
252
+ description: string;
253
+ properties: {
254
+ codigo: {
255
+ type: "number";
256
+ description: string;
257
+ };
258
+ nome: {
259
+ type: "string";
260
+ description: string;
261
+ };
262
+ categoria: {
263
+ type: "string";
264
+ description: string;
265
+ };
266
+ periodicidade: {
267
+ type: "string";
268
+ description: string;
269
+ };
270
+ };
271
+ required: string[];
272
+ };
273
+ totalRegistros: {
274
+ type: "number";
275
+ description: string;
276
+ };
277
+ dados: {
278
+ type: "array";
279
+ description: string;
280
+ items: {
281
+ type: "object";
282
+ properties: {
283
+ data: {
284
+ type: "string";
285
+ description: string;
286
+ };
287
+ valor: {
288
+ type: "number";
289
+ description: string;
290
+ };
291
+ };
292
+ required: string[];
293
+ };
294
+ };
295
+ observacao: {
296
+ type: "string";
297
+ description: string;
298
+ };
299
+ periodoInicial?: undefined;
300
+ periodoFinal?: undefined;
301
+ codigo?: undefined;
302
+ nome?: undefined;
303
+ unidade?: undefined;
304
+ periodicidade?: undefined;
305
+ fonte?: undefined;
306
+ categoria?: undefined;
307
+ especial?: undefined;
308
+ ultimoValor?: undefined;
309
+ urlConsulta?: undefined;
310
+ urlUltimos10?: undefined;
311
+ totalSeries?: undefined;
312
+ categorias?: undefined;
313
+ series?: undefined;
314
+ termo?: undefined;
315
+ totalEncontradas?: undefined;
316
+ mensagem?: undefined;
317
+ sugestao?: undefined;
318
+ consultadoEm?: undefined;
319
+ indicadores?: undefined;
320
+ periodo?: undefined;
321
+ analise?: undefined;
322
+ estatisticas?: undefined;
323
+ seriesComDados?: undefined;
324
+ seriesComErro?: undefined;
325
+ ranking?: undefined;
326
+ erros?: undefined;
327
+ };
328
+ required: string[];
329
+ };
143
330
  } | {
144
331
  name: string;
145
332
  description: string;
333
+ annotations: {
334
+ title: string;
335
+ readOnlyHint: boolean;
336
+ destructiveHint: boolean;
337
+ idempotentHint: boolean;
338
+ openWorldHint: boolean;
339
+ };
146
340
  inputSchema: {
147
341
  type: "object";
148
342
  properties: {
@@ -160,9 +354,98 @@ export declare const TOOL_DEFINITIONS: ({
160
354
  };
161
355
  required: string[];
162
356
  };
357
+ outputSchema: {
358
+ type: "object";
359
+ properties: {
360
+ codigo: {
361
+ type: "number";
362
+ description: string;
363
+ };
364
+ nome: {
365
+ type: "string";
366
+ description: string;
367
+ };
368
+ unidade: {
369
+ type: "string";
370
+ description: string;
371
+ };
372
+ periodicidade: {
373
+ type: "string";
374
+ description: string;
375
+ };
376
+ fonte: {
377
+ type: "string";
378
+ description: string;
379
+ };
380
+ categoria: {
381
+ type: "string";
382
+ description: string;
383
+ };
384
+ especial: {
385
+ type: "boolean";
386
+ description: string;
387
+ };
388
+ ultimoValor: {
389
+ description: string;
390
+ type: "object";
391
+ properties: {
392
+ data: {
393
+ type: "string";
394
+ description: string;
395
+ };
396
+ valor: {
397
+ type: "number";
398
+ description: string;
399
+ };
400
+ };
401
+ required: string[];
402
+ };
403
+ urlConsulta: {
404
+ type: "string";
405
+ description: string;
406
+ };
407
+ urlUltimos10: {
408
+ type: "string";
409
+ description: string;
410
+ };
411
+ observacao: {
412
+ type: "string";
413
+ description: string;
414
+ };
415
+ serie?: undefined;
416
+ totalRegistros?: undefined;
417
+ periodoInicial?: undefined;
418
+ periodoFinal?: undefined;
419
+ dados?: undefined;
420
+ totalSeries?: undefined;
421
+ categorias?: undefined;
422
+ series?: undefined;
423
+ termo?: undefined;
424
+ totalEncontradas?: undefined;
425
+ mensagem?: undefined;
426
+ sugestao?: undefined;
427
+ consultadoEm?: undefined;
428
+ indicadores?: undefined;
429
+ periodo?: undefined;
430
+ analise?: undefined;
431
+ estatisticas?: undefined;
432
+ seriesComDados?: undefined;
433
+ seriesComErro?: undefined;
434
+ ranking?: undefined;
435
+ erros?: undefined;
436
+ };
437
+ required: string[];
438
+ };
163
439
  } | {
164
440
  name: string;
165
441
  description: string;
442
+ annotations: {
443
+ title: string;
444
+ readOnlyHint: boolean;
445
+ destructiveHint: boolean;
446
+ idempotentHint: boolean;
447
+ openWorldHint: boolean;
448
+ };
166
449
  inputSchema: {
167
450
  type: "object";
168
451
  properties: {
@@ -180,9 +463,67 @@ export declare const TOOL_DEFINITIONS: ({
180
463
  };
181
464
  required?: undefined;
182
465
  };
466
+ outputSchema: {
467
+ type: "object";
468
+ properties: {
469
+ totalSeries: {
470
+ type: "number";
471
+ description: string;
472
+ };
473
+ categorias: {
474
+ type: "number";
475
+ description: string;
476
+ };
477
+ series: {
478
+ description: string;
479
+ type?: undefined;
480
+ items?: undefined;
481
+ };
482
+ observacao: {
483
+ type: "string";
484
+ description: string;
485
+ };
486
+ serie?: undefined;
487
+ totalRegistros?: undefined;
488
+ periodoInicial?: undefined;
489
+ periodoFinal?: undefined;
490
+ dados?: undefined;
491
+ codigo?: undefined;
492
+ nome?: undefined;
493
+ unidade?: undefined;
494
+ periodicidade?: undefined;
495
+ fonte?: undefined;
496
+ categoria?: undefined;
497
+ especial?: undefined;
498
+ ultimoValor?: undefined;
499
+ urlConsulta?: undefined;
500
+ urlUltimos10?: undefined;
501
+ termo?: undefined;
502
+ totalEncontradas?: undefined;
503
+ mensagem?: undefined;
504
+ sugestao?: undefined;
505
+ consultadoEm?: undefined;
506
+ indicadores?: undefined;
507
+ periodo?: undefined;
508
+ analise?: undefined;
509
+ estatisticas?: undefined;
510
+ seriesComDados?: undefined;
511
+ seriesComErro?: undefined;
512
+ ranking?: undefined;
513
+ erros?: undefined;
514
+ };
515
+ required: string[];
516
+ };
183
517
  } | {
184
518
  name: string;
185
519
  description: string;
520
+ annotations: {
521
+ title: string;
522
+ readOnlyHint: boolean;
523
+ destructiveHint: boolean;
524
+ idempotentHint: boolean;
525
+ openWorldHint: boolean;
526
+ };
186
527
  inputSchema: {
187
528
  type: "object";
188
529
  properties: {
@@ -200,9 +541,87 @@ export declare const TOOL_DEFINITIONS: ({
200
541
  };
201
542
  required: string[];
202
543
  };
544
+ outputSchema: {
545
+ type: "object";
546
+ properties: {
547
+ termo: {
548
+ type: "string";
549
+ description: string;
550
+ };
551
+ totalEncontradas: {
552
+ type: "number";
553
+ description: string;
554
+ };
555
+ series: {
556
+ type: "array";
557
+ description: string;
558
+ items: {
559
+ type: "object";
560
+ properties: {
561
+ codigo: {
562
+ type: "number";
563
+ };
564
+ nome: {
565
+ type: "string";
566
+ };
567
+ categoria: {
568
+ type: "string";
569
+ };
570
+ periodicidade: {
571
+ type: "string";
572
+ };
573
+ };
574
+ required: string[];
575
+ };
576
+ };
577
+ mensagem: {
578
+ type: "string";
579
+ description: string;
580
+ };
581
+ sugestao: {
582
+ type: "string";
583
+ description: string;
584
+ };
585
+ serie?: undefined;
586
+ totalRegistros?: undefined;
587
+ periodoInicial?: undefined;
588
+ periodoFinal?: undefined;
589
+ dados?: undefined;
590
+ observacao?: undefined;
591
+ codigo?: undefined;
592
+ nome?: undefined;
593
+ unidade?: undefined;
594
+ periodicidade?: undefined;
595
+ fonte?: undefined;
596
+ categoria?: undefined;
597
+ especial?: undefined;
598
+ ultimoValor?: undefined;
599
+ urlConsulta?: undefined;
600
+ urlUltimos10?: undefined;
601
+ totalSeries?: undefined;
602
+ categorias?: undefined;
603
+ consultadoEm?: undefined;
604
+ indicadores?: undefined;
605
+ periodo?: undefined;
606
+ analise?: undefined;
607
+ estatisticas?: undefined;
608
+ seriesComDados?: undefined;
609
+ seriesComErro?: undefined;
610
+ ranking?: undefined;
611
+ erros?: undefined;
612
+ };
613
+ required: string[];
614
+ };
203
615
  } | {
204
616
  name: string;
205
617
  description: string;
618
+ annotations: {
619
+ title: string;
620
+ readOnlyHint: boolean;
621
+ destructiveHint: boolean;
622
+ idempotentHint: boolean;
623
+ openWorldHint: boolean;
624
+ };
206
625
  inputSchema: {
207
626
  type: "object";
208
627
  properties: {
@@ -217,9 +636,86 @@ export declare const TOOL_DEFINITIONS: ({
217
636
  };
218
637
  required?: undefined;
219
638
  };
639
+ outputSchema: {
640
+ type: "object";
641
+ properties: {
642
+ consultadoEm: {
643
+ type: "string";
644
+ description: string;
645
+ };
646
+ indicadores: {
647
+ type: "array";
648
+ description: string;
649
+ items: {
650
+ type: "object";
651
+ properties: {
652
+ indicador: {
653
+ type: "string";
654
+ description: string;
655
+ };
656
+ codigo: {
657
+ type: "number";
658
+ description: string;
659
+ };
660
+ data: {
661
+ type: "string";
662
+ description: string;
663
+ };
664
+ valor: {
665
+ type: "number";
666
+ description: string;
667
+ };
668
+ erro: {
669
+ type: "string";
670
+ description: string;
671
+ };
672
+ };
673
+ required: string[];
674
+ };
675
+ };
676
+ serie?: undefined;
677
+ totalRegistros?: undefined;
678
+ periodoInicial?: undefined;
679
+ periodoFinal?: undefined;
680
+ dados?: undefined;
681
+ observacao?: undefined;
682
+ codigo?: undefined;
683
+ nome?: undefined;
684
+ unidade?: undefined;
685
+ periodicidade?: undefined;
686
+ fonte?: undefined;
687
+ categoria?: undefined;
688
+ especial?: undefined;
689
+ ultimoValor?: undefined;
690
+ urlConsulta?: undefined;
691
+ urlUltimos10?: undefined;
692
+ totalSeries?: undefined;
693
+ categorias?: undefined;
694
+ series?: undefined;
695
+ termo?: undefined;
696
+ totalEncontradas?: undefined;
697
+ mensagem?: undefined;
698
+ sugestao?: undefined;
699
+ periodo?: undefined;
700
+ analise?: undefined;
701
+ estatisticas?: undefined;
702
+ seriesComDados?: undefined;
703
+ seriesComErro?: undefined;
704
+ ranking?: undefined;
705
+ erros?: undefined;
706
+ };
707
+ required: string[];
708
+ };
220
709
  } | {
221
710
  name: string;
222
711
  description: string;
712
+ annotations: {
713
+ title: string;
714
+ readOnlyHint: boolean;
715
+ destructiveHint: boolean;
716
+ idempotentHint: boolean;
717
+ openWorldHint: boolean;
718
+ };
223
719
  inputSchema: {
224
720
  type: "object";
225
721
  properties: {
@@ -246,9 +742,123 @@ export declare const TOOL_DEFINITIONS: ({
246
742
  };
247
743
  required: string[];
248
744
  };
745
+ outputSchema: {
746
+ type: "object";
747
+ properties: {
748
+ serie: {
749
+ type: "object";
750
+ description: string;
751
+ properties: {
752
+ codigo: {
753
+ type: "number";
754
+ };
755
+ nome: {
756
+ type: "string";
757
+ };
758
+ categoria: {
759
+ type: "string";
760
+ };
761
+ };
762
+ required: string[];
763
+ };
764
+ periodo: {
765
+ type: "object";
766
+ description: string;
767
+ properties: {
768
+ dataInicial: {
769
+ type: "string";
770
+ };
771
+ dataFinal: {
772
+ type: "string";
773
+ };
774
+ totalPeriodos: {
775
+ type: "number";
776
+ };
777
+ };
778
+ required: string[];
779
+ };
780
+ analise: {
781
+ type: "object";
782
+ description: string;
783
+ properties: {
784
+ valorInicial: {
785
+ type: "number";
786
+ };
787
+ valorFinal: {
788
+ type: "number";
789
+ };
790
+ diferencaAbsoluta: {
791
+ type: "number";
792
+ };
793
+ variacaoPercentual: {
794
+ type: "number";
795
+ };
796
+ variacaoFormatada: {
797
+ type: "string";
798
+ };
799
+ };
800
+ required: string[];
801
+ };
802
+ estatisticas: {
803
+ type: "object";
804
+ description: string;
805
+ properties: {
806
+ maximo: {
807
+ type: "number";
808
+ };
809
+ minimo: {
810
+ type: "number";
811
+ };
812
+ media: {
813
+ type: "number";
814
+ };
815
+ amplitude: {
816
+ type: "number";
817
+ };
818
+ };
819
+ required: string[];
820
+ };
821
+ totalRegistros?: undefined;
822
+ periodoInicial?: undefined;
823
+ periodoFinal?: undefined;
824
+ dados?: undefined;
825
+ observacao?: undefined;
826
+ codigo?: undefined;
827
+ nome?: undefined;
828
+ unidade?: undefined;
829
+ periodicidade?: undefined;
830
+ fonte?: undefined;
831
+ categoria?: undefined;
832
+ especial?: undefined;
833
+ ultimoValor?: undefined;
834
+ urlConsulta?: undefined;
835
+ urlUltimos10?: undefined;
836
+ totalSeries?: undefined;
837
+ categorias?: undefined;
838
+ series?: undefined;
839
+ termo?: undefined;
840
+ totalEncontradas?: undefined;
841
+ mensagem?: undefined;
842
+ sugestao?: undefined;
843
+ consultadoEm?: undefined;
844
+ indicadores?: undefined;
845
+ seriesComDados?: undefined;
846
+ seriesComErro?: undefined;
847
+ ranking?: undefined;
848
+ erros?: undefined;
849
+ };
850
+ required: string[];
851
+ };
249
852
  } | {
250
853
  name: string;
251
854
  description: string;
855
+ annotations: {
856
+ title: string;
857
+ readOnlyHint: boolean;
858
+ destructiveHint: boolean;
859
+ idempotentHint: boolean;
860
+ openWorldHint: boolean;
861
+ };
252
862
  inputSchema: {
253
863
  type: "object";
254
864
  properties: {
@@ -275,6 +885,133 @@ export declare const TOOL_DEFINITIONS: ({
275
885
  };
276
886
  required: string[];
277
887
  };
888
+ outputSchema: {
889
+ type: "object";
890
+ properties: {
891
+ periodo: {
892
+ type: "object";
893
+ description: string;
894
+ properties: {
895
+ dataInicial: {
896
+ type: "string";
897
+ };
898
+ dataFinal: {
899
+ type: "string";
900
+ };
901
+ totalPeriodos?: undefined;
902
+ };
903
+ required: string[];
904
+ };
905
+ totalSeries: {
906
+ type: "number";
907
+ description: string;
908
+ };
909
+ seriesComDados: {
910
+ type: "number";
911
+ description: string;
912
+ };
913
+ seriesComErro: {
914
+ type: "number";
915
+ description: string;
916
+ };
917
+ ranking: {
918
+ type: "array";
919
+ description: string;
920
+ items: {
921
+ type: "object";
922
+ properties: {
923
+ posicao: {
924
+ type: "number";
925
+ description: string;
926
+ };
927
+ codigo: {
928
+ type: "number";
929
+ };
930
+ nome: {
931
+ type: "string";
932
+ };
933
+ categoria: {
934
+ type: "string";
935
+ };
936
+ periodicidade: {
937
+ type: "string";
938
+ };
939
+ totalRegistros: {
940
+ type: "number";
941
+ };
942
+ valorInicial: {
943
+ type: "number";
944
+ };
945
+ valorFinal: {
946
+ type: "number";
947
+ };
948
+ variacaoPercentual: {
949
+ type: "number";
950
+ };
951
+ variacaoFormatada: {
952
+ type: "string";
953
+ };
954
+ maximo: {
955
+ type: "number";
956
+ };
957
+ minimo: {
958
+ type: "number";
959
+ };
960
+ media: {
961
+ type: "number";
962
+ };
963
+ };
964
+ required: string[];
965
+ };
966
+ };
967
+ erros: {
968
+ type: "array";
969
+ description: string;
970
+ items: {
971
+ type: "object";
972
+ properties: {
973
+ codigo: {
974
+ type: "number";
975
+ };
976
+ nome: {
977
+ type: "string";
978
+ };
979
+ erro: {
980
+ type: "string";
981
+ };
982
+ };
983
+ required: string[];
984
+ };
985
+ };
986
+ serie?: undefined;
987
+ totalRegistros?: undefined;
988
+ periodoInicial?: undefined;
989
+ periodoFinal?: undefined;
990
+ dados?: undefined;
991
+ observacao?: undefined;
992
+ codigo?: undefined;
993
+ nome?: undefined;
994
+ unidade?: undefined;
995
+ periodicidade?: undefined;
996
+ fonte?: undefined;
997
+ categoria?: undefined;
998
+ especial?: undefined;
999
+ ultimoValor?: undefined;
1000
+ urlConsulta?: undefined;
1001
+ urlUltimos10?: undefined;
1002
+ categorias?: undefined;
1003
+ series?: undefined;
1004
+ termo?: undefined;
1005
+ totalEncontradas?: undefined;
1006
+ mensagem?: undefined;
1007
+ sugestao?: undefined;
1008
+ consultadoEm?: undefined;
1009
+ indicadores?: undefined;
1010
+ analise?: undefined;
1011
+ estatisticas?: undefined;
1012
+ };
1013
+ required: string[];
1014
+ };
278
1015
  })[];
279
1016
  export declare function dispatchTool(toolName: string, args: Record<string, unknown>, timeoutMs?: number, maxRetries?: number): Promise<ToolResult>;
280
1017
  //# sourceMappingURL=tools.d.ts.map