Skip to main content
Glama

delete-template

Remove a template from the RunPod MCP Server by specifying its template ID to manage your infrastructure resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateIdYesID of the template to delete

Implementation Reference

  • The main handler logic for the 'delete-template' tool. It performs a DELETE request to `/templates/${templateId}` using the shared `runpodRequest` utility and formats the response as a text content block.
    async (params) => { const result = await runpodRequest( `/templates/${params.templateId}`, 'DELETE' ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Input schema defining the `templateId` parameter as a required string.
    { templateId: z.string().describe('ID of the template to delete'), },
  • src/index.ts:603-623 (registration)
    The server.tool call that registers the 'delete-template' tool with its name, schema, and inline handler function.
    server.tool( 'delete-template', { templateId: z.string().describe('ID of the template to delete'), }, async (params) => { const result = await runpodRequest( `/templates/${params.templateId}`, '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-ts'

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