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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>",
"number": "<number>"
},
"name": "delete_pod"
}
}Input 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) }], }; }