Skip to main content
Glama

delete-pod

Remove a specific pod from the RunPod platform by providing its unique ID to free up resources and manage infrastructure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
podIdYesID of the pod to delete

Implementation Reference

  • The asynchronous handler function for the 'delete-pod' tool. It takes a podId parameter, makes a DELETE request to the Runpod API endpoint `/pods/${podId}`, and returns the result formatted as JSON text content.
    async (params) => { const result = await runpodRequest(`/pods/${params.podId}`, 'DELETE'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );
  • Zod input schema defining the required 'podId' parameter as a string with description.
    { podId: z.string().describe('ID of the pod to delete'), },
  • src/index.ts:298-316 (registration)
    Registration of the 'delete-pod' tool on the MCP server using server.tool(), specifying the name, input schema, and inline handler function.
    server.tool( 'delete-pod', { podId: z.string().describe('ID of the pod to delete'), }, async (params) => { const result = await runpodRequest(`/pods/${params.podId}`, 'DELETE'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );

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/runpod/runpod-mcp'

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