Skip to main content
Glama

create_experiment

Create a new CloudLab experiment from a specified profile to configure and deploy test environments for research or development projects.

Instructions

Create a new CloudLab experiment from a profile

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesProject name (e.g., 'UCY-CS499-DC')
profile_nameYesProfile name (e.g., 'small-lan')
profile_projectYesProject that owns the profile (e.g., 'PortalProfiles')
nameNoOptional experiment name (auto-generated if not provided)
bindingsNoOptional profile parameter bindings (e.g., {nodeCount: '2', phystype: 'c220g1'})

Implementation Reference

  • The handler function for the 'create_experiment' tool. It extracts parameters from the request, constructs the request body, calls the CloudLab API to create the experiment via POST /experiments, and returns the result.
    case "create_experiment": { const { project, profile_name, profile_project, name, bindings } = args as { project: string; profile_name: string; profile_project: string; name?: string; bindings?: Record<string, string>; }; const body: Record<string, any> = { project, profile_name, profile_project, }; if (name) body.name = name; if (bindings) body.bindings = bindings; const result = await cloudlabRequest("/experiments", "POST", body); return { content: [ { type: "text", text: `Experiment created: ${JSON.stringify(result, null, 2)}`, }, ], }; }
  • The tool registration and input schema definition for 'create_experiment', including name, description, properties, and required fields for input validation.
    { name: "create_experiment", description: "Create a new CloudLab experiment from a profile", inputSchema: { type: "object", properties: { project: { type: "string", description: "Project name (e.g., 'UCY-CS499-DC')", }, profile_name: { type: "string", description: "Profile name (e.g., 'small-lan')", }, profile_project: { type: "string", description: "Project that owns the profile (e.g., 'PortalProfiles')", }, name: { type: "string", description: "Optional experiment name (auto-generated if not provided)", }, bindings: { type: "object", description: "Optional profile parameter bindings (e.g., {nodeCount: '2', phystype: 'c220g1'})", }, }, required: ["project", "profile_name", "profile_project"], }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ArdaGurcan/cloudlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server