create_pod
Create a new pod in a collection by providing required fields including pod number, name, admin/agent/supervisor logins, password, phone numbers, status, and CRM credentials.
Instructions
Create a new pod in a collection. All required fields must be provided.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| AdminLogin | Yes | Admin email login (e.g., admin1@coelab.wbx.ai) | |
| AgentLogin | Yes | Agent email login | |
| CRMLogin | Yes | CRM username | |
| CRMPassword | Yes | CRM password | |
| Number | Yes | Unique pod number | |
| POD | Yes | Pod name (e.g., Pod1, TestPod1) | |
| Password | Yes | Pod password | |
| SMSNumber | Yes | SMS number (e.g., 14085386001) | |
| Status | Yes | Pod status (e.g., unassigned, assigned) | |
| SupervisorLogin | Yes | Supervisor email login | |
| TelephoneNumber | Yes | Telephone number (e.g., 16692845001) | |
| TestDate | No | Test date (optional) | |
| TestStatus | No | Test status (optional) | |
| collection | Yes | Collection name to add the pod to |
Implementation Reference
- src/index.js:257-268 (handler)The handler logic for the 'create_pod' tool call within the CallToolRequestSchema handler. It destructures the arguments to separate collection and podData, calls podsClient.createPod, and returns the result as JSON text content.case 'create_pod': { const { collection, ...podData } = args; const result = await podsClient.createPod(collection, podData); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.js:86-151 (registration)The tool registration object for 'create_pod' returned by the ListToolsRequestSchema handler, including name, detailed description, and complete input schema.{ name: 'create_pod', description: 'Create a new pod in a collection. All required fields must be provided.', inputSchema: { type: 'object', properties: { collection: { type: 'string', description: 'Collection name to add the pod to', }, Number: { type: 'number', description: 'Unique pod number', }, POD: { type: 'string', description: 'Pod name (e.g., Pod1, TestPod1)', }, AdminLogin: { type: 'string', description: 'Admin email login (e.g., admin1@coelab.wbx.ai)', }, AgentLogin: { type: 'string', description: 'Agent email login', }, SupervisorLogin: { type: 'string', description: 'Supervisor email login', }, Password: { type: 'string', description: 'Pod password', }, TelephoneNumber: { type: 'number', description: 'Telephone number (e.g., 16692845001)', }, SMSNumber: { type: 'number', description: 'SMS number (e.g., 14085386001)', }, Status: { type: 'string', description: 'Pod status (e.g., unassigned, assigned)', }, CRMLogin: { type: 'string', description: 'CRM username', }, CRMPassword: { type: 'string', description: 'CRM password', }, "Test Date": { type: 'string', description: 'Test date (optional)', }, "Test Status": { type: 'string', description: 'Test status (optional)', }, }, required: ['collection', 'Number', 'POD', 'AdminLogin', 'AgentLogin', 'SupervisorLogin', 'Password', 'TelephoneNumber', 'SMSNumber', 'Status', 'CRMLogin', 'CRMPassword'], }, },
- src/index.js:89-150 (schema)Detailed input schema for the create_pod tool, defining all properties and required fields for pod creation.inputSchema: { type: 'object', properties: { collection: { type: 'string', description: 'Collection name to add the pod to', }, Number: { type: 'number', description: 'Unique pod number', }, POD: { type: 'string', description: 'Pod name (e.g., Pod1, TestPod1)', }, AdminLogin: { type: 'string', description: 'Admin email login (e.g., admin1@coelab.wbx.ai)', }, AgentLogin: { type: 'string', description: 'Agent email login', }, SupervisorLogin: { type: 'string', description: 'Supervisor email login', }, Password: { type: 'string', description: 'Pod password', }, TelephoneNumber: { type: 'number', description: 'Telephone number (e.g., 16692845001)', }, SMSNumber: { type: 'number', description: 'SMS number (e.g., 14085386001)', }, Status: { type: 'string', description: 'Pod status (e.g., unassigned, assigned)', }, CRMLogin: { type: 'string', description: 'CRM username', }, CRMPassword: { type: 'string', description: 'CRM password', }, "Test Date": { type: 'string', description: 'Test date (optional)', }, "Test Status": { type: 'string', description: 'Test status (optional)', }, }, required: ['collection', 'Number', 'POD', 'AdminLogin', 'AgentLogin', 'SupervisorLogin', 'Password', 'TelephoneNumber', 'SMSNumber', 'Status', 'CRMLogin', 'CRMPassword'], },
- src/podsClient.js:102-108 (helper)Core helper method in PodsClient class that performs the actual API POST request to create a pod in the Cisco API Gateway.async createPod(collection, podData) { const url = `${this.baseUrl}/api/v2/pods/${collection}`; return this.makeRequest(url, { method: 'POST', body: JSON.stringify(podData), }); }