@promptlayer/mcp-server 1.7.0 → 1.9.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
@@ -716,6 +716,92 @@ export declare const DeleteReportsByNameArgsSchema: z.ZodObject<{
716
716
  report_name: string;
717
717
  api_key?: string | undefined;
718
718
  }>;
719
+ export declare const DeleteReportArgsSchema: z.ZodObject<{
720
+ report_id: z.ZodNumber;
721
+ api_key: z.ZodOptional<z.ZodString>;
722
+ }, "strip", z.ZodTypeAny, {
723
+ report_id: number;
724
+ api_key?: string | undefined;
725
+ }, {
726
+ report_id: number;
727
+ api_key?: string | undefined;
728
+ }>;
729
+ export declare const RenameReportArgsSchema: z.ZodObject<{
730
+ report_id: z.ZodNumber;
731
+ name: z.ZodOptional<z.ZodString>;
732
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
733
+ api_key: z.ZodOptional<z.ZodString>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ report_id: number;
736
+ api_key?: string | undefined;
737
+ name?: string | undefined;
738
+ tags?: string[] | undefined;
739
+ }, {
740
+ report_id: number;
741
+ api_key?: string | undefined;
742
+ name?: string | undefined;
743
+ tags?: string[] | undefined;
744
+ }>;
745
+ export declare const AddReportColumnArgsSchema: z.ZodObject<{
746
+ report_id: z.ZodNumber;
747
+ column_type: z.ZodString;
748
+ name: z.ZodString;
749
+ configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
750
+ position: z.ZodOptional<z.ZodNumber>;
751
+ is_part_of_score: z.ZodOptional<z.ZodBoolean>;
752
+ api_key: z.ZodOptional<z.ZodString>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ name: string;
755
+ report_id: number;
756
+ column_type: string;
757
+ configuration: Record<string, unknown>;
758
+ api_key?: string | undefined;
759
+ position?: number | undefined;
760
+ is_part_of_score?: boolean | undefined;
761
+ }, {
762
+ name: string;
763
+ report_id: number;
764
+ column_type: string;
765
+ configuration: Record<string, unknown>;
766
+ api_key?: string | undefined;
767
+ position?: number | undefined;
768
+ is_part_of_score?: boolean | undefined;
769
+ }>;
770
+ export declare const EditReportColumnArgsSchema: z.ZodObject<{
771
+ report_column_id: z.ZodNumber;
772
+ report_id: z.ZodNumber;
773
+ column_type: z.ZodString;
774
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
775
+ name: z.ZodOptional<z.ZodString>;
776
+ position: z.ZodOptional<z.ZodNumber>;
777
+ api_key: z.ZodOptional<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ report_id: number;
780
+ column_type: string;
781
+ report_column_id: number;
782
+ api_key?: string | undefined;
783
+ name?: string | undefined;
784
+ configuration?: Record<string, unknown> | undefined;
785
+ position?: number | undefined;
786
+ }, {
787
+ report_id: number;
788
+ column_type: string;
789
+ report_column_id: number;
790
+ api_key?: string | undefined;
791
+ name?: string | undefined;
792
+ configuration?: Record<string, unknown> | undefined;
793
+ position?: number | undefined;
794
+ }>;
795
+ export declare const DeleteReportColumnArgsSchema: z.ZodObject<{
796
+ report_column_id: z.ZodNumber;
797
+ api_key: z.ZodOptional<z.ZodString>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ report_column_id: number;
800
+ api_key?: string | undefined;
801
+ }, {
802
+ report_column_id: number;
803
+ api_key?: string | undefined;
804
+ }>;
719
805
  export declare const ListWorkflowsArgsSchema: z.ZodObject<{
720
806
  page: z.ZodOptional<z.ZodNumber>;
721
807
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -864,6 +950,64 @@ export declare const GetWorkflowLabelsArgsSchema: z.ZodObject<{
864
950
  workflow_id_or_name: string;
865
951
  api_key?: string | undefined;
866
952
  }>;
953
+ export declare const ListToolRegistriesArgsSchema: z.ZodObject<{
954
+ api_key: z.ZodOptional<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ api_key?: string | undefined;
957
+ }, {
958
+ api_key?: string | undefined;
959
+ }>;
960
+ export declare const GetToolRegistryArgsSchema: z.ZodObject<{
961
+ identifier: z.ZodString;
962
+ label: z.ZodOptional<z.ZodString>;
963
+ version: z.ZodOptional<z.ZodNumber>;
964
+ api_key: z.ZodOptional<z.ZodString>;
965
+ }, "strip", z.ZodTypeAny, {
966
+ identifier: string;
967
+ version?: number | undefined;
968
+ label?: string | undefined;
969
+ api_key?: string | undefined;
970
+ }, {
971
+ identifier: string;
972
+ version?: number | undefined;
973
+ label?: string | undefined;
974
+ api_key?: string | undefined;
975
+ }>;
976
+ export declare const CreateToolRegistryArgsSchema: z.ZodObject<{
977
+ name: z.ZodString;
978
+ tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
979
+ folder_id: z.ZodOptional<z.ZodNumber>;
980
+ commit_message: z.ZodOptional<z.ZodString>;
981
+ api_key: z.ZodOptional<z.ZodString>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ name: string;
984
+ tool_definition: Record<string, unknown>;
985
+ api_key?: string | undefined;
986
+ folder_id?: number | undefined;
987
+ commit_message?: string | undefined;
988
+ }, {
989
+ name: string;
990
+ tool_definition: Record<string, unknown>;
991
+ api_key?: string | undefined;
992
+ folder_id?: number | undefined;
993
+ commit_message?: string | undefined;
994
+ }>;
995
+ export declare const CreateToolVersionArgsSchema: z.ZodObject<{
996
+ identifier: z.ZodString;
997
+ tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
998
+ commit_message: z.ZodOptional<z.ZodString>;
999
+ api_key: z.ZodOptional<z.ZodString>;
1000
+ }, "strip", z.ZodTypeAny, {
1001
+ identifier: string;
1002
+ tool_definition: Record<string, unknown>;
1003
+ api_key?: string | undefined;
1004
+ commit_message?: string | undefined;
1005
+ }, {
1006
+ identifier: string;
1007
+ tool_definition: Record<string, unknown>;
1008
+ api_key?: string | undefined;
1009
+ commit_message?: string | undefined;
1010
+ }>;
867
1011
  export declare const CreateFolderArgsSchema: z.ZodObject<{
868
1012
  name: z.ZodString;
869
1013
  parent_id: z.ZodOptional<z.ZodNumber>;
@@ -2062,6 +2206,127 @@ export declare const TOOL_DEFINITIONS: {
2062
2206
  readonly readOnlyHint: false;
2063
2207
  };
2064
2208
  };
2209
+ readonly "delete-report": {
2210
+ readonly name: "delete-report";
2211
+ readonly description: "Archive a single evaluation pipeline by ID. Prefer this over delete-reports-by-name when you have the report_id, since names can collide.";
2212
+ readonly inputSchema: z.ZodObject<{
2213
+ report_id: z.ZodNumber;
2214
+ api_key: z.ZodOptional<z.ZodString>;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ report_id: number;
2217
+ api_key?: string | undefined;
2218
+ }, {
2219
+ report_id: number;
2220
+ api_key?: string | undefined;
2221
+ }>;
2222
+ readonly annotations: {
2223
+ readonly readOnlyHint: false;
2224
+ };
2225
+ };
2226
+ readonly "rename-report": {
2227
+ readonly name: "rename-report";
2228
+ readonly description: "Rename or retag an evaluation pipeline. Provide name, tags, or both. Use this instead of recreating a misnamed pipeline.";
2229
+ readonly inputSchema: z.ZodObject<{
2230
+ report_id: z.ZodNumber;
2231
+ name: z.ZodOptional<z.ZodString>;
2232
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2233
+ api_key: z.ZodOptional<z.ZodString>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ report_id: number;
2236
+ api_key?: string | undefined;
2237
+ name?: string | undefined;
2238
+ tags?: string[] | undefined;
2239
+ }, {
2240
+ report_id: number;
2241
+ api_key?: string | undefined;
2242
+ name?: string | undefined;
2243
+ tags?: string[] | undefined;
2244
+ }>;
2245
+ readonly annotations: {
2246
+ readonly readOnlyHint: false;
2247
+ };
2248
+ };
2249
+ readonly "add-report-column": {
2250
+ readonly name: "add-report-column";
2251
+ readonly description: "Add a single column to an existing evaluation pipeline. Use this to extend a pipeline incrementally instead of recreating the entire report. Column names must be unique within the pipeline. For column types and configuration, see https://docs.promptlayer.com/features/evaluations/column-types.";
2252
+ readonly inputSchema: z.ZodObject<{
2253
+ report_id: z.ZodNumber;
2254
+ column_type: z.ZodString;
2255
+ name: z.ZodString;
2256
+ configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2257
+ position: z.ZodOptional<z.ZodNumber>;
2258
+ is_part_of_score: z.ZodOptional<z.ZodBoolean>;
2259
+ api_key: z.ZodOptional<z.ZodString>;
2260
+ }, "strip", z.ZodTypeAny, {
2261
+ name: string;
2262
+ report_id: number;
2263
+ column_type: string;
2264
+ configuration: Record<string, unknown>;
2265
+ api_key?: string | undefined;
2266
+ position?: number | undefined;
2267
+ is_part_of_score?: boolean | undefined;
2268
+ }, {
2269
+ name: string;
2270
+ report_id: number;
2271
+ column_type: string;
2272
+ configuration: Record<string, unknown>;
2273
+ api_key?: string | undefined;
2274
+ position?: number | undefined;
2275
+ is_part_of_score?: boolean | undefined;
2276
+ }>;
2277
+ readonly annotations: {
2278
+ readonly readOnlyHint: false;
2279
+ };
2280
+ };
2281
+ readonly "edit-report-column": {
2282
+ readonly name: "edit-report-column";
2283
+ readonly description: "Update an existing evaluation column's type, configuration, name, or position. Use this to fix a bug in a CODE_EXECUTION script or change a column's settings without recreating the whole pipeline. Cannot edit DATASET columns.";
2284
+ readonly inputSchema: z.ZodObject<{
2285
+ report_column_id: z.ZodNumber;
2286
+ report_id: z.ZodNumber;
2287
+ column_type: z.ZodString;
2288
+ configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2289
+ name: z.ZodOptional<z.ZodString>;
2290
+ position: z.ZodOptional<z.ZodNumber>;
2291
+ api_key: z.ZodOptional<z.ZodString>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ report_id: number;
2294
+ column_type: string;
2295
+ report_column_id: number;
2296
+ api_key?: string | undefined;
2297
+ name?: string | undefined;
2298
+ configuration?: Record<string, unknown> | undefined;
2299
+ position?: number | undefined;
2300
+ }, {
2301
+ report_id: number;
2302
+ column_type: string;
2303
+ report_column_id: number;
2304
+ api_key?: string | undefined;
2305
+ name?: string | undefined;
2306
+ configuration?: Record<string, unknown> | undefined;
2307
+ position?: number | undefined;
2308
+ }>;
2309
+ readonly annotations: {
2310
+ readonly readOnlyHint: false;
2311
+ };
2312
+ };
2313
+ readonly "delete-report-column": {
2314
+ readonly name: "delete-report-column";
2315
+ readonly description: "Delete a single column from an evaluation pipeline. Cannot delete DATASET columns. Surrounding columns shift left to fill the gap.";
2316
+ readonly inputSchema: z.ZodObject<{
2317
+ report_column_id: z.ZodNumber;
2318
+ api_key: z.ZodOptional<z.ZodString>;
2319
+ }, "strip", z.ZodTypeAny, {
2320
+ report_column_id: number;
2321
+ api_key?: string | undefined;
2322
+ }, {
2323
+ report_column_id: number;
2324
+ api_key?: string | undefined;
2325
+ }>;
2326
+ readonly annotations: {
2327
+ readonly readOnlyHint: false;
2328
+ };
2329
+ };
2065
2330
  readonly "list-workflows": {
2066
2331
  readonly name: "list-workflows";
2067
2332
  readonly description: "List all agents (called 'workflows' in the API) in the workspace with pagination.";
@@ -2259,6 +2524,92 @@ export declare const TOOL_DEFINITIONS: {
2259
2524
  readonly readOnlyHint: true;
2260
2525
  };
2261
2526
  };
2527
+ readonly "list-tool-registries": {
2528
+ readonly name: "list-tool-registries";
2529
+ readonly description: "List all tools in the Tool Registry for the workspace. Returns tool names, IDs, and metadata.";
2530
+ readonly inputSchema: z.ZodObject<{
2531
+ api_key: z.ZodOptional<z.ZodString>;
2532
+ }, "strip", z.ZodTypeAny, {
2533
+ api_key?: string | undefined;
2534
+ }, {
2535
+ api_key?: string | undefined;
2536
+ }>;
2537
+ readonly annotations: {
2538
+ readonly readOnlyHint: true;
2539
+ };
2540
+ };
2541
+ readonly "get-tool-registry": {
2542
+ readonly name: "get-tool-registry";
2543
+ readonly description: "Get a tool from the Tool Registry by ID or name. Optionally resolve a specific version by label or version number. Returns the tool definition and metadata.";
2544
+ readonly inputSchema: z.ZodObject<{
2545
+ identifier: z.ZodString;
2546
+ label: z.ZodOptional<z.ZodString>;
2547
+ version: z.ZodOptional<z.ZodNumber>;
2548
+ api_key: z.ZodOptional<z.ZodString>;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ identifier: string;
2551
+ version?: number | undefined;
2552
+ label?: string | undefined;
2553
+ api_key?: string | undefined;
2554
+ }, {
2555
+ identifier: string;
2556
+ version?: number | undefined;
2557
+ label?: string | undefined;
2558
+ api_key?: string | undefined;
2559
+ }>;
2560
+ readonly annotations: {
2561
+ readonly readOnlyHint: true;
2562
+ };
2563
+ };
2564
+ readonly "create-tool-registry": {
2565
+ readonly name: "create-tool-registry";
2566
+ readonly description: "Create a new tool in the Tool Registry with an initial version. The tool definition should be in OpenAI function-calling format.";
2567
+ readonly inputSchema: z.ZodObject<{
2568
+ name: z.ZodString;
2569
+ tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2570
+ folder_id: z.ZodOptional<z.ZodNumber>;
2571
+ commit_message: z.ZodOptional<z.ZodString>;
2572
+ api_key: z.ZodOptional<z.ZodString>;
2573
+ }, "strip", z.ZodTypeAny, {
2574
+ name: string;
2575
+ tool_definition: Record<string, unknown>;
2576
+ api_key?: string | undefined;
2577
+ folder_id?: number | undefined;
2578
+ commit_message?: string | undefined;
2579
+ }, {
2580
+ name: string;
2581
+ tool_definition: Record<string, unknown>;
2582
+ api_key?: string | undefined;
2583
+ folder_id?: number | undefined;
2584
+ commit_message?: string | undefined;
2585
+ }>;
2586
+ readonly annotations: {
2587
+ readonly readOnlyHint: false;
2588
+ };
2589
+ };
2590
+ readonly "create-tool-version": {
2591
+ readonly name: "create-tool-version";
2592
+ 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.";
2593
+ readonly inputSchema: z.ZodObject<{
2594
+ identifier: z.ZodString;
2595
+ tool_definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2596
+ commit_message: z.ZodOptional<z.ZodString>;
2597
+ api_key: z.ZodOptional<z.ZodString>;
2598
+ }, "strip", z.ZodTypeAny, {
2599
+ identifier: string;
2600
+ tool_definition: Record<string, unknown>;
2601
+ api_key?: string | undefined;
2602
+ commit_message?: string | undefined;
2603
+ }, {
2604
+ identifier: string;
2605
+ tool_definition: Record<string, unknown>;
2606
+ api_key?: string | undefined;
2607
+ commit_message?: string | undefined;
2608
+ }>;
2609
+ readonly annotations: {
2610
+ readonly readOnlyHint: false;
2611
+ };
2612
+ };
2262
2613
  readonly "create-folder": {
2263
2614
  readonly name: "create-folder";
2264
2615
  readonly description: "Create a folder for organizing resources. Nest with parent_id. Names unique within parent.";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCtC,CAAC;AAIH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;EAOzC,CAAC;AAIH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;EAQxC,CAAC;AAKH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB1C,CAAC;AAIH,eAAO,MAAM,kCAAkC;;;;;;;;;EAG7C,CAAC;AAKH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EAMtC,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAIH,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAC;AAIH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AASH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6B/B,CAAC;AAIH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAKH,eAAO,MAAM,sB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ive"),
310
310
  api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
311
311
  });
312
+ // ── Delete Report by ID (DELETE /reports/{report_id}) ────────────────────
313
+ export const DeleteReportArgsSchema = z.object({
314
+ report_id: z.number().int().describe("Evaluation pipeline ID to archive"),
315
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
316
+ });
317
+ // ── Rename Report (PATCH /reports/{report_id}/rename) ────────────────────
318
+ export const RenameReportArgsSchema = z.object({
319
+ report_id: z.number().int().describe("Evaluation pipeline ID to rename"),
320
+ name: z.string().min(1).max(255).optional().describe("New name for the evaluation pipeline. Provide name, tags, or both."),
321
+ tags: z.array(z.string()).optional().describe("Replace the pipeline's tags. Pass an empty array to clear them. Provide name, tags, or both."),
322
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
323
+ });
324
+ // ── Add Report Column (POST /report-columns) ─────────────────────────────
325
+ export const AddReportColumnArgsSchema = z.object({
326
+ report_id: z.number().int().describe("Evaluation pipeline ID to add the column to"),
327
+ column_type: z.string().describe("Column type (e.g. LLM_ASSERTION, CODE_EXECUTION, PROMPT_TEMPLATE). See https://docs.promptlayer.com/features/evaluations/column-types"),
328
+ name: z.string().min(1).describe("Unique column name within the pipeline"),
329
+ configuration: z.record(z.unknown()).describe("Column-type-specific configuration"),
330
+ position: z.number().int().positive().optional().describe("Position in the pipeline (auto-assigned if omitted). Cannot overwrite dataset columns."),
331
+ is_part_of_score: z.boolean().optional().describe("Whether this column contributes to the score (default false)"),
332
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
333
+ });
334
+ // ── Edit Report Column (PATCH /report-columns/{report_column_id}) ────────
335
+ export const EditReportColumnArgsSchema = z.object({
336
+ report_column_id: z.number().int().describe("Report column ID to edit"),
337
+ report_id: z.number().int().describe("Parent evaluation pipeline ID (must match the column's report)"),
338
+ column_type: z.string().describe("Column type (e.g. LLM_ASSERTION, CODE_EXECUTION, PROMPT_TEMPLATE). DATASET is not allowed."),
339
+ configuration: z.record(z.unknown()).optional().describe("Replacement column configuration"),
340
+ name: z.string().min(1).optional().describe("New column name (must be unique within the pipeline)"),
341
+ position: z.number().int().positive().optional().describe("New position. Cannot overwrite dataset columns."),
342
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
343
+ });
344
+ // ── Delete Report Column (DELETE /report-columns/{report_column_id}) ─────
345
+ export const DeleteReportColumnArgsSchema = z.object({
346
+ report_column_id: z.number().int().describe("Report column ID to delete. Cannot be a DATASET column."),
347
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
348
+ });
312
349
  // ── List Agents (GET /workflows) ─────────────────────────────────────────
313
350
  export const ListWorkflowsArgsSchema = z.object({
314
351
  page: z.number().int().optional().describe("Page number (default: 1)"),
@@ -372,6 +409,29 @@ export const GetWorkflowLabelsArgsSchema = z.object({
372
409
  workflow_id_or_name: z.string().describe("Agent ID or name"),
373
410
  api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
374
411
  });
412
+ // ── Tool Registry ────────────────────────────────────────────────────
413
+ export const ListToolRegistriesArgsSchema = z.object({
414
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
415
+ });
416
+ export const GetToolRegistryArgsSchema = z.object({
417
+ identifier: z.string().describe("Tool ID (numeric) or name"),
418
+ label: z.string().optional().describe("Resolve version by label name (e.g. 'production')"),
419
+ version: z.number().int().optional().describe("Resolve by specific version number"),
420
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
421
+ });
422
+ export const CreateToolRegistryArgsSchema = z.object({
423
+ name: z.string().describe("Tool name (unique per workspace)"),
424
+ tool_definition: z.record(z.unknown()).describe("Tool definition in OpenAI function-calling format: {type: 'function', function: {name, description, parameters}}"),
425
+ folder_id: z.number().int().optional().describe("Folder ID to place tool in"),
426
+ commit_message: z.string().optional().describe("Commit message for the initial version"),
427
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
428
+ });
429
+ export const CreateToolVersionArgsSchema = z.object({
430
+ identifier: z.string().describe("Tool ID (numeric) or name"),
431
+ tool_definition: z.record(z.unknown()).describe("Updated tool definition in OpenAI function-calling format"),
432
+ commit_message: z.string().optional().describe("Commit message describing what changed"),
433
+ api_key: z.string().optional().describe("PromptLayer API key (optional, defaults to PROMPTLAYER_API_KEY env var)"),
434
+ });
375
435
  export const CreateFolderArgsSchema = z.object({
376
436
  name: z.string().describe("Folder name (unique within parent)"),
377
437
  parent_id: z.number().int().optional().describe("Parent folder ID (root if omitted)"),
@@ -729,6 +789,36 @@ export const TOOL_DEFINITIONS = {
729
789
  inputSchema: DeleteReportsByNameArgsSchema,
730
790
  annotations: { readOnlyHint: false },
731
791
  },
792
+ "delete-report": {
793
+ name: "delete-report",
794
+ description: "Archive a single evaluation pipeline by ID. Prefer this over delete-reports-by-name when you have the report_id, since names can collide.",
795
+ inputSchema: DeleteReportArgsSchema,
796
+ annotations: { readOnlyHint: false },
797
+ },
798
+ "rename-report": {
799
+ name: "rename-report",
800
+ description: "Rename or retag an evaluation pipeline. Provide name, tags, or both. Use this instead of recreating a misnamed pipeline.",
801
+ inputSchema: RenameReportArgsSchema,
802
+ annotations: { readOnlyHint: false },
803
+ },
804
+ "add-report-column": {
805
+ name: "add-report-column",
806
+ description: "Add a single column to an existing evaluation pipeline. Use this to extend a pipeline incrementally instead of recreating the entire report. Column names must be unique within the pipeline. For column types and configuration, see https://docs.promptlayer.com/features/evaluations/column-types.",
807
+ inputSchema: AddReportColumnArgsSchema,
808
+ annotations: { readOnlyHint: false },
809
+ },
810
+ "edit-report-column": {
811
+ name: "edit-report-column",
812
+ description: "Update an existing evaluation column's type, configuration, name, or position. Use this to fix a bug in a CODE_EXECUTION script or change a column's settings without recreating the whole pipeline. Cannot edit DATASET columns.",
813
+ inputSchema: EditReportColumnArgsSchema,
814
+ annotations: { readOnlyHint: false },
815
+ },
816
+ "delete-report-column": {
817
+ name: "delete-report-column",
818
+ description: "Delete a single column from an evaluation pipeline. Cannot delete DATASET columns. Surrounding columns shift left to fill the gap.",
819
+ inputSchema: DeleteReportColumnArgsSchema,
820
+ annotations: { readOnlyHint: false },
821
+ },
732
822
  // ── Agents / Workflows ──────────────────────────────────────────────
733
823
  "list-workflows": {
734
824
  name: "list-workflows",
@@ -772,6 +862,31 @@ export const TOOL_DEFINITIONS = {
772
862
  inputSchema: GetWorkflowLabelsArgsSchema,
773
863
  annotations: { readOnlyHint: true },
774
864
  },
865
+ // ── Tool Registry ───────────────────────────────────────────────────
866
+ "list-tool-registries": {
867
+ name: "list-tool-registries",
868
+ description: "List all tools in the Tool Registry for the workspace. Returns tool names, IDs, and metadata.",
869
+ inputSchema: ListToolRegistriesArgsSchema,
870
+ annotations: { readOnlyHint: true },
871
+ },
872
+ "get-tool-registry": {
873
+ name: "get-tool-registry",
874
+ description: "Get a tool from the Tool Registry by ID or name. Optionally resolve a specific version by label or version number. Returns the tool definition and metadata.",
875
+ inputSchema: GetToolRegistryArgsSchema,
876
+ annotations: { readOnlyHint: true },
877
+ },
878
+ "create-tool-registry": {
879
+ name: "create-tool-registry",
880
+ description: "Create a new tool in the Tool Registry with an initial version. The tool definition should be in OpenAI function-calling format.",
881
+ inputSchema: CreateToolRegistryArgsSchema,
882
+ annotations: { readOnlyHint: false },
883
+ },
884
+ "create-tool-version": {
885
+ name: "create-tool-version",
886
+ 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.",
887
+ inputSchema: CreateToolVersionArgsSchema,
888
+ annotations: { readOnlyHint: false },
889
+ },
775
890
  // ── Folders ─────────────────────────────────────────────────────────
776
891
  "create-folder": {
777
892
  name: "create-folder",