@promptlayer/mcp-server 1.10.0 → 1.13.0

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/build/types.d.ts CHANGED
@@ -461,6 +461,22 @@ export declare const SaveDraftDatasetVersionArgsSchema: z.ZodObject<{
461
461
  dataset_group_id: number;
462
462
  api_key?: string | undefined;
463
463
  }>;
464
+ export declare const AddTraceToDatasetVersionArgsSchema: z.ZodObject<{
465
+ dataset_group_id: z.ZodNumber;
466
+ trace_id: z.ZodString;
467
+ span_id: z.ZodOptional<z.ZodString>;
468
+ api_key: z.ZodOptional<z.ZodString>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ dataset_group_id: number;
471
+ trace_id: string;
472
+ api_key?: string | undefined;
473
+ span_id?: string | undefined;
474
+ }, {
475
+ dataset_group_id: number;
476
+ trace_id: string;
477
+ api_key?: string | undefined;
478
+ span_id?: string | undefined;
479
+ }>;
464
480
  export declare const ListEvaluationsArgsSchema: z.ZodObject<{
465
481
  page: z.ZodOptional<z.ZodNumber>;
466
482
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -849,11 +865,38 @@ export declare const GetToolRegistryArgsSchema: z.ZodObject<{
849
865
  label?: string | undefined;
850
866
  api_key?: string | undefined;
851
867
  }>;
868
+ export declare const ToolExecutionSchema: z.ZodObject<{
869
+ type: z.ZodLiteral<"code">;
870
+ language: z.ZodEnum<["python", "javascript"]>;
871
+ code: z.ZodString;
872
+ }, "strip", z.ZodTypeAny, {
873
+ code: string;
874
+ type: "code";
875
+ language: "python" | "javascript";
876
+ }, {
877
+ code: string;
878
+ type: "code";
879
+ language: "python" | "javascript";
880
+ }>;
852
881
  export declare const CreateToolRegistryArgsSchema: z.ZodObject<{
853
882
  name: z.ZodString;
854
883
  tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
884
+ description: z.ZodOptional<z.ZodString>;
855
885
  folder_id: z.ZodOptional<z.ZodNumber>;
856
886
  commit_message: z.ZodOptional<z.ZodString>;
887
+ execution: z.ZodOptional<z.ZodObject<{
888
+ type: z.ZodLiteral<"code">;
889
+ language: z.ZodEnum<["python", "javascript"]>;
890
+ code: z.ZodString;
891
+ }, "strip", z.ZodTypeAny, {
892
+ code: string;
893
+ type: "code";
894
+ language: "python" | "javascript";
895
+ }, {
896
+ code: string;
897
+ type: "code";
898
+ language: "python" | "javascript";
899
+ }>>;
857
900
  api_key: z.ZodOptional<z.ZodString>;
858
901
  }, "strip", z.ZodTypeAny, {
859
902
  name: string;
@@ -861,28 +904,108 @@ export declare const CreateToolRegistryArgsSchema: z.ZodObject<{
861
904
  api_key?: string | undefined;
862
905
  folder_id?: number | undefined;
863
906
  commit_message?: string | undefined;
907
+ description?: string | undefined;
908
+ execution?: {
909
+ code: string;
910
+ type: "code";
911
+ language: "python" | "javascript";
912
+ } | undefined;
864
913
  }, {
865
914
  name: string;
866
915
  tool_definition: Record<string, unknown>;
867
916
  api_key?: string | undefined;
868
917
  folder_id?: number | undefined;
869
918
  commit_message?: string | undefined;
919
+ description?: string | undefined;
920
+ execution?: {
921
+ code: string;
922
+ type: "code";
923
+ language: "python" | "javascript";
924
+ } | undefined;
870
925
  }>;
871
926
  export declare const CreateToolVersionArgsSchema: z.ZodObject<{
872
927
  identifier: z.ZodString;
873
928
  tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
874
929
  commit_message: z.ZodOptional<z.ZodString>;
930
+ execution: z.ZodOptional<z.ZodObject<{
931
+ type: z.ZodLiteral<"code">;
932
+ language: z.ZodEnum<["python", "javascript"]>;
933
+ code: z.ZodString;
934
+ }, "strip", z.ZodTypeAny, {
935
+ code: string;
936
+ type: "code";
937
+ language: "python" | "javascript";
938
+ }, {
939
+ code: string;
940
+ type: "code";
941
+ language: "python" | "javascript";
942
+ }>>;
875
943
  api_key: z.ZodOptional<z.ZodString>;
876
944
  }, "strip", z.ZodTypeAny, {
877
945
  identifier: string;
878
946
  tool_definition: Record<string, unknown>;
879
947
  api_key?: string | undefined;
880
948
  commit_message?: string | undefined;
949
+ execution?: {
950
+ code: string;
951
+ type: "code";
952
+ language: "python" | "javascript";
953
+ } | undefined;
881
954
  }, {
882
955
  identifier: string;
883
956
  tool_definition: Record<string, unknown>;
884
957
  api_key?: string | undefined;
885
958
  commit_message?: string | undefined;
959
+ execution?: {
960
+ code: string;
961
+ type: "code";
962
+ language: "python" | "javascript";
963
+ } | undefined;
964
+ }>;
965
+ export declare const TestExecuteToolRegistryArgsSchema: z.ZodObject<{
966
+ identifier: z.ZodString;
967
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
968
+ execution: z.ZodOptional<z.ZodObject<{
969
+ type: z.ZodLiteral<"code">;
970
+ language: z.ZodEnum<["python", "javascript"]>;
971
+ code: z.ZodString;
972
+ }, "strip", z.ZodTypeAny, {
973
+ code: string;
974
+ type: "code";
975
+ language: "python" | "javascript";
976
+ }, {
977
+ code: string;
978
+ type: "code";
979
+ language: "python" | "javascript";
980
+ }>>;
981
+ tool_definition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
982
+ label: z.ZodOptional<z.ZodString>;
983
+ version: z.ZodOptional<z.ZodNumber>;
984
+ api_key: z.ZodOptional<z.ZodString>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ identifier: string;
987
+ version?: number | undefined;
988
+ label?: string | undefined;
989
+ api_key?: string | undefined;
990
+ tool_definition?: Record<string, unknown> | undefined;
991
+ execution?: {
992
+ code: string;
993
+ type: "code";
994
+ language: "python" | "javascript";
995
+ } | undefined;
996
+ inputs?: Record<string, unknown> | undefined;
997
+ }, {
998
+ identifier: string;
999
+ version?: number | undefined;
1000
+ label?: string | undefined;
1001
+ api_key?: string | undefined;
1002
+ tool_definition?: Record<string, unknown> | undefined;
1003
+ execution?: {
1004
+ code: string;
1005
+ type: "code";
1006
+ language: "python" | "javascript";
1007
+ } | undefined;
1008
+ inputs?: Record<string, unknown> | undefined;
886
1009
  }>;
887
1010
  export declare const CreateFolderArgsSchema: z.ZodObject<{
888
1011
  name: z.ZodString;
@@ -1010,15 +1133,195 @@ export declare const ResolveFolderIdArgsSchema: z.ZodObject<{
1010
1133
  path: string;
1011
1134
  api_key?: string | undefined;
1012
1135
  }>;
1136
+ export declare const ListSkillCollectionsArgsSchema: z.ZodObject<{
1137
+ api_key: z.ZodOptional<z.ZodString>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ api_key?: string | undefined;
1140
+ }, {
1141
+ api_key?: string | undefined;
1142
+ }>;
1143
+ export declare const CreateSkillCollectionArgsSchema: z.ZodObject<{
1144
+ name: z.ZodString;
1145
+ description: z.ZodOptional<z.ZodString>;
1146
+ folder_id: z.ZodOptional<z.ZodNumber>;
1147
+ provider: z.ZodOptional<z.ZodString>;
1148
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1149
+ path: z.ZodString;
1150
+ content: z.ZodOptional<z.ZodString>;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ path: string;
1153
+ content?: string | undefined;
1154
+ }, {
1155
+ path: string;
1156
+ content?: string | undefined;
1157
+ }>, "many">>;
1158
+ commit_message: z.ZodOptional<z.ZodString>;
1159
+ api_key: z.ZodOptional<z.ZodString>;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ name: string;
1162
+ provider?: string | undefined;
1163
+ api_key?: string | undefined;
1164
+ folder_id?: number | undefined;
1165
+ commit_message?: string | undefined;
1166
+ description?: string | undefined;
1167
+ files?: {
1168
+ path: string;
1169
+ content?: string | undefined;
1170
+ }[] | undefined;
1171
+ }, {
1172
+ name: string;
1173
+ provider?: string | undefined;
1174
+ api_key?: string | undefined;
1175
+ folder_id?: number | undefined;
1176
+ commit_message?: string | undefined;
1177
+ description?: string | undefined;
1178
+ files?: {
1179
+ path: string;
1180
+ content?: string | undefined;
1181
+ }[] | undefined;
1182
+ }>;
1183
+ export declare const GetSkillCollectionArgsSchema: z.ZodObject<{
1184
+ identifier: z.ZodString;
1185
+ label: z.ZodOptional<z.ZodString>;
1186
+ version: z.ZodOptional<z.ZodNumber>;
1187
+ api_key: z.ZodOptional<z.ZodString>;
1188
+ }, "strip", z.ZodTypeAny, {
1189
+ identifier: string;
1190
+ version?: number | undefined;
1191
+ label?: string | undefined;
1192
+ api_key?: string | undefined;
1193
+ }, {
1194
+ identifier: string;
1195
+ version?: number | undefined;
1196
+ label?: string | undefined;
1197
+ api_key?: string | undefined;
1198
+ }>;
1199
+ export declare const UpdateSkillCollectionArgsSchema: z.ZodObject<{
1200
+ identifier: z.ZodString;
1201
+ name: z.ZodOptional<z.ZodString>;
1202
+ description: z.ZodOptional<z.ZodString>;
1203
+ api_key: z.ZodOptional<z.ZodString>;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ identifier: string;
1206
+ api_key?: string | undefined;
1207
+ name?: string | undefined;
1208
+ description?: string | undefined;
1209
+ }, {
1210
+ identifier: string;
1211
+ api_key?: string | undefined;
1212
+ name?: string | undefined;
1213
+ description?: string | undefined;
1214
+ }>;
1215
+ export declare const SaveSkillCollectionVersionArgsSchema: z.ZodObject<{
1216
+ identifier: z.ZodString;
1217
+ file_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1218
+ path: z.ZodString;
1219
+ content: z.ZodOptional<z.ZodString>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ path: string;
1222
+ content?: string | undefined;
1223
+ }, {
1224
+ path: string;
1225
+ content?: string | undefined;
1226
+ }>, "many">>;
1227
+ moves: z.ZodOptional<z.ZodArray<z.ZodObject<{
1228
+ old_path: z.ZodString;
1229
+ new_path: z.ZodString;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ old_path: string;
1232
+ new_path: string;
1233
+ }, {
1234
+ old_path: string;
1235
+ new_path: string;
1236
+ }>, "many">>;
1237
+ deletes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1238
+ commit_message: z.ZodOptional<z.ZodString>;
1239
+ release_label: z.ZodOptional<z.ZodString>;
1240
+ api_key: z.ZodOptional<z.ZodString>;
1241
+ }, "strip", z.ZodTypeAny, {
1242
+ identifier: string;
1243
+ api_key?: string | undefined;
1244
+ commit_message?: string | undefined;
1245
+ file_updates?: {
1246
+ path: string;
1247
+ content?: string | undefined;
1248
+ }[] | undefined;
1249
+ moves?: {
1250
+ old_path: string;
1251
+ new_path: string;
1252
+ }[] | undefined;
1253
+ deletes?: string[] | undefined;
1254
+ release_label?: string | undefined;
1255
+ }, {
1256
+ identifier: string;
1257
+ api_key?: string | undefined;
1258
+ commit_message?: string | undefined;
1259
+ file_updates?: {
1260
+ path: string;
1261
+ content?: string | undefined;
1262
+ }[] | undefined;
1263
+ moves?: {
1264
+ old_path: string;
1265
+ new_path: string;
1266
+ }[] | undefined;
1267
+ deletes?: string[] | undefined;
1268
+ release_label?: string | undefined;
1269
+ }>;
1270
+ export declare const PatchPromptTemplateVersionArgsSchema: z.ZodObject<{
1271
+ identifier: z.ZodString;
1272
+ version: z.ZodOptional<z.ZodNumber>;
1273
+ label: z.ZodOptional<z.ZodString>;
1274
+ messages: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
1275
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
1276
+ functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
1277
+ function_call: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1278
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1279
+ content: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
1280
+ model_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1281
+ response_format: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1282
+ commit_message: z.ZodOptional<z.ZodString>;
1283
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1284
+ api_key: z.ZodOptional<z.ZodString>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ identifier: string;
1287
+ version?: number | undefined;
1288
+ label?: string | undefined;
1289
+ api_key?: string | undefined;
1290
+ commit_message?: string | undefined;
1291
+ release_labels?: string[] | undefined;
1292
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1293
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1294
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1295
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1296
+ function_call?: string | Record<string, unknown> | null | undefined;
1297
+ tool_choice?: string | Record<string, unknown> | null | undefined;
1298
+ model_parameters?: Record<string, unknown> | undefined;
1299
+ response_format?: Record<string, unknown> | null | undefined;
1300
+ }, {
1301
+ identifier: string;
1302
+ version?: number | undefined;
1303
+ label?: string | undefined;
1304
+ api_key?: string | undefined;
1305
+ commit_message?: string | undefined;
1306
+ release_labels?: string[] | undefined;
1307
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1308
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1309
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1310
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1311
+ function_call?: string | Record<string, unknown> | null | undefined;
1312
+ tool_choice?: string | Record<string, unknown> | null | undefined;
1313
+ model_parameters?: Record<string, unknown> | undefined;
1314
+ response_format?: Record<string, unknown> | null | undefined;
1315
+ }>;
1013
1316
  export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
1014
- filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1015
- q: z.ZodOptional<z.ZodString>;
1016
1317
  page: z.ZodOptional<z.ZodNumber>;
1017
1318
  per_page: z.ZodOptional<z.ZodNumber>;
1018
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1019
- sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1020
1319
  include_prompt_name: z.ZodOptional<z.ZodBoolean>;
1021
1320
  api_key: z.ZodOptional<z.ZodString>;
1321
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1322
+ q: z.ZodOptional<z.ZodString>;
1323
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1324
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1022
1325
  }, "strip", z.ZodTypeAny, {
1023
1326
  api_key?: string | undefined;
1024
1327
  page?: number | undefined;
@@ -1038,6 +1341,25 @@ export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
1038
1341
  sort_order?: "asc" | "desc" | undefined;
1039
1342
  include_prompt_name?: boolean | undefined;
1040
1343
  }>;
1344
+ export declare const GetRequestAnalyticsArgsSchema: z.ZodObject<{
1345
+ api_key: z.ZodOptional<z.ZodString>;
1346
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1347
+ q: z.ZodOptional<z.ZodString>;
1348
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1349
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ api_key?: string | undefined;
1352
+ filter_group?: any;
1353
+ q?: string | undefined;
1354
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1355
+ sort_order?: "asc" | "desc" | undefined;
1356
+ }, {
1357
+ api_key?: string | undefined;
1358
+ filter_group?: any;
1359
+ q?: string | undefined;
1360
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1361
+ sort_order?: "asc" | "desc" | undefined;
1362
+ }>;
1041
1363
  export declare const GetRequestArgsSchema: z.ZodObject<{
1042
1364
  request_id: z.ZodNumber;
1043
1365
  api_key: z.ZodOptional<z.ZodString>;
@@ -1375,14 +1697,14 @@ export declare const TOOL_DEFINITIONS: {
1375
1697
  readonly name: "search-request-logs";
1376
1698
  readonly description: string;
1377
1699
  readonly inputSchema: z.ZodObject<{
1378
- filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1379
- q: z.ZodOptional<z.ZodString>;
1380
1700
  page: z.ZodOptional<z.ZodNumber>;
1381
1701
  per_page: z.ZodOptional<z.ZodNumber>;
1382
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1383
- sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1384
1702
  include_prompt_name: z.ZodOptional<z.ZodBoolean>;
1385
1703
  api_key: z.ZodOptional<z.ZodString>;
1704
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1705
+ q: z.ZodOptional<z.ZodString>;
1706
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1707
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1386
1708
  }, "strip", z.ZodTypeAny, {
1387
1709
  api_key?: string | undefined;
1388
1710
  page?: number | undefined;
@@ -1771,6 +2093,29 @@ export declare const TOOL_DEFINITIONS: {
1771
2093
  readonly readOnlyHint: false;
1772
2094
  };
1773
2095
  };
2096
+ readonly "add-trace-to-dataset": {
2097
+ readonly name: "add-trace-to-dataset";
2098
+ readonly description: "Add a trace as a row to the draft dataset version. Pass span_id to anchor on a specific span subtree instead of the full trace root. Requires create-draft first.";
2099
+ readonly inputSchema: z.ZodObject<{
2100
+ dataset_group_id: z.ZodNumber;
2101
+ trace_id: z.ZodString;
2102
+ span_id: z.ZodOptional<z.ZodString>;
2103
+ api_key: z.ZodOptional<z.ZodString>;
2104
+ }, "strip", z.ZodTypeAny, {
2105
+ dataset_group_id: number;
2106
+ trace_id: string;
2107
+ api_key?: string | undefined;
2108
+ span_id?: string | undefined;
2109
+ }, {
2110
+ dataset_group_id: number;
2111
+ trace_id: string;
2112
+ api_key?: string | undefined;
2113
+ span_id?: string | undefined;
2114
+ }>;
2115
+ readonly annotations: {
2116
+ readonly readOnlyHint: false;
2117
+ };
2118
+ };
1774
2119
  readonly "list-evaluations": {
1775
2120
  readonly name: "list-evaluations";
1776
2121
  readonly description: "List evaluation pipelines (called 'reports' in the API) with pagination. Filter by name, status. Set include_runs=true to include batch runs nested under each evaluation.";
@@ -2315,12 +2660,26 @@ export declare const TOOL_DEFINITIONS: {
2315
2660
  };
2316
2661
  readonly "create-tool-registry": {
2317
2662
  readonly name: "create-tool-registry";
2318
- readonly description: "Create a new tool in the Tool Registry with an initial version. The tool definition should be in OpenAI function-calling format.";
2663
+ readonly description: "Create a new tool in the Tool Registry with an initial version. The tool definition should be in OpenAI function-calling format. Pass an optional `execution` payload to attach a sandbox-executable body that PromptLayer will auto-run between LLM turns.";
2319
2664
  readonly inputSchema: z.ZodObject<{
2320
2665
  name: z.ZodString;
2321
2666
  tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2667
+ description: z.ZodOptional<z.ZodString>;
2322
2668
  folder_id: z.ZodOptional<z.ZodNumber>;
2323
2669
  commit_message: z.ZodOptional<z.ZodString>;
2670
+ execution: z.ZodOptional<z.ZodObject<{
2671
+ type: z.ZodLiteral<"code">;
2672
+ language: z.ZodEnum<["python", "javascript"]>;
2673
+ code: z.ZodString;
2674
+ }, "strip", z.ZodTypeAny, {
2675
+ code: string;
2676
+ type: "code";
2677
+ language: "python" | "javascript";
2678
+ }, {
2679
+ code: string;
2680
+ type: "code";
2681
+ language: "python" | "javascript";
2682
+ }>>;
2324
2683
  api_key: z.ZodOptional<z.ZodString>;
2325
2684
  }, "strip", z.ZodTypeAny, {
2326
2685
  name: string;
@@ -2328,12 +2687,24 @@ export declare const TOOL_DEFINITIONS: {
2328
2687
  api_key?: string | undefined;
2329
2688
  folder_id?: number | undefined;
2330
2689
  commit_message?: string | undefined;
2690
+ description?: string | undefined;
2691
+ execution?: {
2692
+ code: string;
2693
+ type: "code";
2694
+ language: "python" | "javascript";
2695
+ } | undefined;
2331
2696
  }, {
2332
2697
  name: string;
2333
2698
  tool_definition: Record<string, unknown>;
2334
2699
  api_key?: string | undefined;
2335
2700
  folder_id?: number | undefined;
2336
2701
  commit_message?: string | undefined;
2702
+ description?: string | undefined;
2703
+ execution?: {
2704
+ code: string;
2705
+ type: "code";
2706
+ language: "python" | "javascript";
2707
+ } | undefined;
2337
2708
  }>;
2338
2709
  readonly annotations: {
2339
2710
  readonly readOnlyHint: false;
@@ -2341,22 +2712,97 @@ export declare const TOOL_DEFINITIONS: {
2341
2712
  };
2342
2713
  readonly "create-tool-version": {
2343
2714
  readonly name: "create-tool-version";
2344
- readonly description: "Create a new version of an existing tool in the Tool Registry. Each version is immutable this adds a new version with the updated definition.";
2715
+ readonly description: "Create a new version of an existing tool in the Tool Registry. Each version is immutable - this adds a new version with the updated definition. Pass an optional `execution` payload to attach (or replace) the sandbox-executable body for this version.";
2345
2716
  readonly inputSchema: z.ZodObject<{
2346
2717
  identifier: z.ZodString;
2347
2718
  tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2348
2719
  commit_message: z.ZodOptional<z.ZodString>;
2720
+ execution: z.ZodOptional<z.ZodObject<{
2721
+ type: z.ZodLiteral<"code">;
2722
+ language: z.ZodEnum<["python", "javascript"]>;
2723
+ code: z.ZodString;
2724
+ }, "strip", z.ZodTypeAny, {
2725
+ code: string;
2726
+ type: "code";
2727
+ language: "python" | "javascript";
2728
+ }, {
2729
+ code: string;
2730
+ type: "code";
2731
+ language: "python" | "javascript";
2732
+ }>>;
2349
2733
  api_key: z.ZodOptional<z.ZodString>;
2350
2734
  }, "strip", z.ZodTypeAny, {
2351
2735
  identifier: string;
2352
2736
  tool_definition: Record<string, unknown>;
2353
2737
  api_key?: string | undefined;
2354
2738
  commit_message?: string | undefined;
2739
+ execution?: {
2740
+ code: string;
2741
+ type: "code";
2742
+ language: "python" | "javascript";
2743
+ } | undefined;
2355
2744
  }, {
2356
2745
  identifier: string;
2357
2746
  tool_definition: Record<string, unknown>;
2358
2747
  api_key?: string | undefined;
2359
2748
  commit_message?: string | undefined;
2749
+ execution?: {
2750
+ code: string;
2751
+ type: "code";
2752
+ language: "python" | "javascript";
2753
+ } | undefined;
2754
+ }>;
2755
+ readonly annotations: {
2756
+ readonly readOnlyHint: false;
2757
+ };
2758
+ };
2759
+ readonly "test-execute-tool-registry": {
2760
+ readonly name: "test-execute-tool-registry";
2761
+ readonly description: "Run a tool's execution body in the sandbox against test inputs. Returns the body's return value plus stdout/stderr/duration. Useful for verifying a body before publishing. Pass `execution` and/or `tool_definition` to test unsaved overrides without creating a version. User-code errors return status='error' inside the result (HTTP 200); sandbox infrastructure failures return HTTP 502.";
2762
+ readonly inputSchema: z.ZodObject<{
2763
+ identifier: z.ZodString;
2764
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2765
+ execution: z.ZodOptional<z.ZodObject<{
2766
+ type: z.ZodLiteral<"code">;
2767
+ language: z.ZodEnum<["python", "javascript"]>;
2768
+ code: z.ZodString;
2769
+ }, "strip", z.ZodTypeAny, {
2770
+ code: string;
2771
+ type: "code";
2772
+ language: "python" | "javascript";
2773
+ }, {
2774
+ code: string;
2775
+ type: "code";
2776
+ language: "python" | "javascript";
2777
+ }>>;
2778
+ tool_definition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2779
+ label: z.ZodOptional<z.ZodString>;
2780
+ version: z.ZodOptional<z.ZodNumber>;
2781
+ api_key: z.ZodOptional<z.ZodString>;
2782
+ }, "strip", z.ZodTypeAny, {
2783
+ identifier: string;
2784
+ version?: number | undefined;
2785
+ label?: string | undefined;
2786
+ api_key?: string | undefined;
2787
+ tool_definition?: Record<string, unknown> | undefined;
2788
+ execution?: {
2789
+ code: string;
2790
+ type: "code";
2791
+ language: "python" | "javascript";
2792
+ } | undefined;
2793
+ inputs?: Record<string, unknown> | undefined;
2794
+ }, {
2795
+ identifier: string;
2796
+ version?: number | undefined;
2797
+ label?: string | undefined;
2798
+ api_key?: string | undefined;
2799
+ tool_definition?: Record<string, unknown> | undefined;
2800
+ execution?: {
2801
+ code: string;
2802
+ type: "code";
2803
+ language: "python" | "javascript";
2804
+ } | undefined;
2805
+ inputs?: Record<string, unknown> | undefined;
2360
2806
  }>;
2361
2807
  readonly annotations: {
2362
2808
  readonly readOnlyHint: false;
@@ -2530,5 +2976,253 @@ export declare const TOOL_DEFINITIONS: {
2530
2976
  readonly readOnlyHint: true;
2531
2977
  };
2532
2978
  };
2979
+ readonly "list-skill-collections": {
2980
+ readonly name: "list-skill-collections";
2981
+ readonly description: "List all skill collections in the workspace. Returns each collection's UUID, name, root_path, provider, description, and timestamps.";
2982
+ readonly inputSchema: z.ZodObject<{
2983
+ api_key: z.ZodOptional<z.ZodString>;
2984
+ }, "strip", z.ZodTypeAny, {
2985
+ api_key?: string | undefined;
2986
+ }, {
2987
+ api_key?: string | undefined;
2988
+ }>;
2989
+ readonly annotations: {
2990
+ readonly readOnlyHint: true;
2991
+ };
2992
+ };
2993
+ readonly "create-skill-collection": {
2994
+ readonly name: "create-skill-collection";
2995
+ readonly description: string;
2996
+ readonly inputSchema: z.ZodObject<{
2997
+ name: z.ZodString;
2998
+ description: z.ZodOptional<z.ZodString>;
2999
+ folder_id: z.ZodOptional<z.ZodNumber>;
3000
+ provider: z.ZodOptional<z.ZodString>;
3001
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
3002
+ path: z.ZodString;
3003
+ content: z.ZodOptional<z.ZodString>;
3004
+ }, "strip", z.ZodTypeAny, {
3005
+ path: string;
3006
+ content?: string | undefined;
3007
+ }, {
3008
+ path: string;
3009
+ content?: string | undefined;
3010
+ }>, "many">>;
3011
+ commit_message: z.ZodOptional<z.ZodString>;
3012
+ api_key: z.ZodOptional<z.ZodString>;
3013
+ }, "strip", z.ZodTypeAny, {
3014
+ name: string;
3015
+ provider?: string | undefined;
3016
+ api_key?: string | undefined;
3017
+ folder_id?: number | undefined;
3018
+ commit_message?: string | undefined;
3019
+ description?: string | undefined;
3020
+ files?: {
3021
+ path: string;
3022
+ content?: string | undefined;
3023
+ }[] | undefined;
3024
+ }, {
3025
+ name: string;
3026
+ provider?: string | undefined;
3027
+ api_key?: string | undefined;
3028
+ folder_id?: number | undefined;
3029
+ commit_message?: string | undefined;
3030
+ description?: string | undefined;
3031
+ files?: {
3032
+ path: string;
3033
+ content?: string | undefined;
3034
+ }[] | undefined;
3035
+ }>;
3036
+ readonly annotations: {
3037
+ readonly readOnlyHint: false;
3038
+ };
3039
+ };
3040
+ readonly "get-skill-collection": {
3041
+ readonly name: "get-skill-collection";
3042
+ readonly description: string;
3043
+ readonly inputSchema: z.ZodObject<{
3044
+ identifier: z.ZodString;
3045
+ label: z.ZodOptional<z.ZodString>;
3046
+ version: z.ZodOptional<z.ZodNumber>;
3047
+ api_key: z.ZodOptional<z.ZodString>;
3048
+ }, "strip", z.ZodTypeAny, {
3049
+ identifier: string;
3050
+ version?: number | undefined;
3051
+ label?: string | undefined;
3052
+ api_key?: string | undefined;
3053
+ }, {
3054
+ identifier: string;
3055
+ version?: number | undefined;
3056
+ label?: string | undefined;
3057
+ api_key?: string | undefined;
3058
+ }>;
3059
+ readonly annotations: {
3060
+ readonly readOnlyHint: true;
3061
+ };
3062
+ };
3063
+ readonly "update-skill-collection": {
3064
+ readonly name: "update-skill-collection";
3065
+ readonly description: "Rename a skill collection or update its description. To save new file contents as a version, use save-skill-collection-version instead.";
3066
+ readonly inputSchema: z.ZodObject<{
3067
+ identifier: z.ZodString;
3068
+ name: z.ZodOptional<z.ZodString>;
3069
+ description: z.ZodOptional<z.ZodString>;
3070
+ api_key: z.ZodOptional<z.ZodString>;
3071
+ }, "strip", z.ZodTypeAny, {
3072
+ identifier: string;
3073
+ api_key?: string | undefined;
3074
+ name?: string | undefined;
3075
+ description?: string | undefined;
3076
+ }, {
3077
+ identifier: string;
3078
+ api_key?: string | undefined;
3079
+ name?: string | undefined;
3080
+ description?: string | undefined;
3081
+ }>;
3082
+ readonly annotations: {
3083
+ readonly readOnlyHint: false;
3084
+ };
3085
+ };
3086
+ readonly "save-skill-collection-version": {
3087
+ readonly name: "save-skill-collection-version";
3088
+ readonly description: string;
3089
+ readonly inputSchema: z.ZodObject<{
3090
+ identifier: z.ZodString;
3091
+ file_updates: z.ZodOptional<z.ZodArray<z.ZodObject<{
3092
+ path: z.ZodString;
3093
+ content: z.ZodOptional<z.ZodString>;
3094
+ }, "strip", z.ZodTypeAny, {
3095
+ path: string;
3096
+ content?: string | undefined;
3097
+ }, {
3098
+ path: string;
3099
+ content?: string | undefined;
3100
+ }>, "many">>;
3101
+ moves: z.ZodOptional<z.ZodArray<z.ZodObject<{
3102
+ old_path: z.ZodString;
3103
+ new_path: z.ZodString;
3104
+ }, "strip", z.ZodTypeAny, {
3105
+ old_path: string;
3106
+ new_path: string;
3107
+ }, {
3108
+ old_path: string;
3109
+ new_path: string;
3110
+ }>, "many">>;
3111
+ deletes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3112
+ commit_message: z.ZodOptional<z.ZodString>;
3113
+ release_label: z.ZodOptional<z.ZodString>;
3114
+ api_key: z.ZodOptional<z.ZodString>;
3115
+ }, "strip", z.ZodTypeAny, {
3116
+ identifier: string;
3117
+ api_key?: string | undefined;
3118
+ commit_message?: string | undefined;
3119
+ file_updates?: {
3120
+ path: string;
3121
+ content?: string | undefined;
3122
+ }[] | undefined;
3123
+ moves?: {
3124
+ old_path: string;
3125
+ new_path: string;
3126
+ }[] | undefined;
3127
+ deletes?: string[] | undefined;
3128
+ release_label?: string | undefined;
3129
+ }, {
3130
+ identifier: string;
3131
+ api_key?: string | undefined;
3132
+ commit_message?: string | undefined;
3133
+ file_updates?: {
3134
+ path: string;
3135
+ content?: string | undefined;
3136
+ }[] | undefined;
3137
+ moves?: {
3138
+ old_path: string;
3139
+ new_path: string;
3140
+ }[] | undefined;
3141
+ deletes?: string[] | undefined;
3142
+ release_label?: string | undefined;
3143
+ }>;
3144
+ readonly annotations: {
3145
+ readonly readOnlyHint: false;
3146
+ };
3147
+ };
3148
+ readonly "get-request-analytics": {
3149
+ readonly name: "get-request-analytics";
3150
+ readonly description: string;
3151
+ readonly inputSchema: z.ZodObject<{
3152
+ api_key: z.ZodOptional<z.ZodString>;
3153
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
3154
+ q: z.ZodOptional<z.ZodString>;
3155
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
3156
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3157
+ }, "strip", z.ZodTypeAny, {
3158
+ api_key?: string | undefined;
3159
+ filter_group?: any;
3160
+ q?: string | undefined;
3161
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
3162
+ sort_order?: "asc" | "desc" | undefined;
3163
+ }, {
3164
+ api_key?: string | undefined;
3165
+ filter_group?: any;
3166
+ q?: string | undefined;
3167
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
3168
+ sort_order?: "asc" | "desc" | undefined;
3169
+ }>;
3170
+ readonly annotations: {
3171
+ readonly readOnlyHint: true;
3172
+ };
3173
+ };
3174
+ readonly "patch-prompt-template-version": {
3175
+ readonly name: "patch-prompt-template-version";
3176
+ readonly description: string;
3177
+ readonly inputSchema: z.ZodObject<{
3178
+ identifier: z.ZodString;
3179
+ version: z.ZodOptional<z.ZodNumber>;
3180
+ label: z.ZodOptional<z.ZodString>;
3181
+ messages: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
3182
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
3183
+ functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
3184
+ function_call: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
3185
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
3186
+ content: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
3187
+ model_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3188
+ response_format: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
3189
+ commit_message: z.ZodOptional<z.ZodString>;
3190
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3191
+ api_key: z.ZodOptional<z.ZodString>;
3192
+ }, "strip", z.ZodTypeAny, {
3193
+ identifier: string;
3194
+ version?: number | undefined;
3195
+ label?: string | undefined;
3196
+ api_key?: string | undefined;
3197
+ commit_message?: string | undefined;
3198
+ release_labels?: string[] | undefined;
3199
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
3200
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
3201
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
3202
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
3203
+ function_call?: string | Record<string, unknown> | null | undefined;
3204
+ tool_choice?: string | Record<string, unknown> | null | undefined;
3205
+ model_parameters?: Record<string, unknown> | undefined;
3206
+ response_format?: Record<string, unknown> | null | undefined;
3207
+ }, {
3208
+ identifier: string;
3209
+ version?: number | undefined;
3210
+ label?: string | undefined;
3211
+ api_key?: string | undefined;
3212
+ commit_message?: string | undefined;
3213
+ release_labels?: string[] | undefined;
3214
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
3215
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
3216
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
3217
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
3218
+ function_call?: string | Record<string, unknown> | null | undefined;
3219
+ tool_choice?: string | Record<string, unknown> | null | undefined;
3220
+ model_parameters?: Record<string, unknown> | undefined;
3221
+ response_format?: Record<string, unknown> | null | undefined;
3222
+ }>;
3223
+ readonly annotations: {
3224
+ readonly readOnlyHint: false;
3225
+ };
3226
+ };
2533
3227
  };
2534
3228
  //# sourceMappingURL=types.d.ts.map