Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

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
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 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), }, ], }; });
  • 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), }, ], }; });

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