Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

get-template

Retrieve a specific template by its ID from the Novita AI platform to access predefined configurations for GPU instances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateIdYesID of the template to retrieve

Implementation Reference

  • Handler function that retrieves the specified template by ID using the novitaRequest API and returns a text content block with the JSON-stringified result.
    }, async (params) => { const queryParams = new URLSearchParams(); queryParams.append("templateId", params.templateId); const queryString = queryParams.toString() ? `?${queryParams.toString()}` : ""; const result = await novitaRequest(`/template${queryString}`); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
  • Zod input schema defining the required 'templateId' parameter as a string.
    templateId: z .string() .describe("ID of the template to retrieve"),
  • src/tools.ts:328-347 (registration)
    Registration of the 'get-template' tool on the MCP server, including inline schema and handler function.
    server.tool("get-template", { templateId: z .string() .describe("ID of the template to retrieve"), }, async (params) => { const queryParams = new URLSearchParams(); queryParams.append("templateId", params.templateId); const queryString = queryParams.toString() ? `?${queryParams.toString()}` : ""; const result = await novitaRequest(`/template${queryString}`); 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