delete-template
Remove specific templates from the Novita MCP Server by specifying the template ID. Ensure accuracy using the get-template tool to verify the ID before deletion.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | ID of the template to delete. Please ensure it exists before deleting. Before calling the MCP tool, please show me the name to help identify it. You can use the `get-template` tool to check the ID if needed. |
Implementation Reference
- src/tools.ts:426-438 (handler)The handler function for the 'delete-template' tool. It makes a POST request to `/template/delete` endpoint using novitaRequest utility with the templateId from input params and returns the JSON stringified result.}, async (params) => { const result = await novitaRequest(`/template/delete`, "POST", { templateId: params.templateId, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
- src/tools.ts:422-426 (schema)Input schema validation using Zod for the 'templateId' parameter required by the 'delete-template' tool.templateId: z .string() .nonempty() .describe("ID of the template to delete. Please ensure it exists before deleting. Before calling the MCP tool, please show me the name to help identify it. You can use the `get-template` tool to check the ID if needed."), }, async (params) => {
- src/tools.ts:421-438 (registration)Registration of the 'delete-template' tool on the MCP server within the registerTemplateTools function, including inline schema and handler.server.tool("delete-template", { templateId: z .string() .nonempty() .describe("ID of the template to delete. Please ensure it exists before deleting. Before calling the MCP tool, please show me the name to help identify it. You can use the `get-template` tool to check the ID if needed."), }, async (params) => { const result = await novitaRequest(`/template/delete`, "POST", { templateId: params.templateId, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });