Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

delete-template

Remove a template from the Novita AI platform by specifying its ID. Verify the template exists before deletion using the get-template tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateIdYesID 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

  • The handler function for the 'delete-template' tool. It sends a POST request to the Novita API endpoint `/template/delete` with the templateId and returns the formatted result.
    }, async (params) => { const result = await novitaRequest(`/template/delete`, "POST", { templateId: params.templateId, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
  • Zod schema defining the input parameter 'templateId' for 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 using server.tool(), including schema and inline 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), }, ], }; });

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/novitalabs/novita-mcp-server'

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