delete_pod
Remove a pod from a Cisco API Gateway collection by specifying the collection name and pod number to manage your pod inventory and resources.
Instructions
Delete a pod from a collection by its number.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection | Yes | Collection name | |
| number | Yes | Pod number to delete |
Implementation Reference
- src/podsClient.js:129-132 (handler)Core handler function that executes the delete_pod tool logic by sending a DELETE HTTP request to the Cisco Pods API endpoint.async deletePod(collection, number) { const url = `${this.baseUrl}/api/v2/pods/${collection}/${number}`; return this.makeRequest(url, { method: 'DELETE' }); }
- src/index.js:184-197 (schema)Input schema definition for the delete_pod tool, specifying collection and number parameters.inputSchema: { type: 'object', properties: { collection: { type: 'string', description: 'Collection name', }, number: { type: 'number', description: 'Pod number to delete', }, }, required: ['collection', 'number'], },
- src/index.js:181-198 (registration)Tool registration in ListToolsRequestSchema handler, including name, description, and schema for delete_pod.{ name: 'delete_pod', description: 'Delete a pod from a collection by its number.', inputSchema: { type: 'object', properties: { collection: { type: 'string', description: 'Collection name', }, number: { type: 'number', description: 'Pod number to delete', }, }, required: ['collection', 'number'], }, },
- src/index.js:282-292 (handler)MCP CallToolRequestSchema handler case for delete_pod, which delegates to podsClient.deletePod and formats response.case 'delete_pod': { const result = await podsClient.deletePod(args.collection, args.number); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/server-http.js:264-269 (handler)MCP CallToolRequestSchema handler case for delete_pod in HTTP server, delegates to podsClient.deletePod.case 'delete_pod': { const result = await podsClient.deletePod(args.collection, args.number); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }