terminate_experiment
Stop and permanently delete a CloudLab experiment, removing all associated data. Use this tool to end experiments and free resources.
Instructions
Terminate an experiment (WARNING: destroys all data)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| experiment_id | Yes | Experiment UUID (from list_experiments) |
Implementation Reference
- src/index.ts:408-422 (handler)Handler for the 'terminate_experiment' tool. Extracts experiment_id from arguments, sends a DELETE request to the CloudLab API endpoint `/experiments/${experiment_id}`, and returns the result as text content.case "terminate_experiment": { const { experiment_id } = args as { experiment_id: string }; const result = await cloudlabRequest( `/experiments/${experiment_id}`, "DELETE" ); return { content: [ { type: "text", text: `Experiment termination initiated: ${JSON.stringify(result, null, 2)}`, }, ], }; }
- src/index.ts:239-252 (schema)Schema definition and registration of the 'terminate_experiment' tool in the ListTools response, specifying input schema requiring 'experiment_id'.{ name: "terminate_experiment", description: "Terminate an experiment (WARNING: destroys all data)", inputSchema: { type: "object", properties: { experiment_id: { type: "string", description: "Experiment UUID (from list_experiments)", }, }, required: ["experiment_id"], }, },