Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

restart-gpu-instance

Restart a GPU instance on the Novita AI platform to resolve issues or apply configuration changes by specifying the instance ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceIdYesID of the instance to restart. Before calling the MCP tool to restart the instance, MUST show me the details of the instance to help me identify it, including id, name, etc.

Implementation Reference

  • The handler function that executes the tool logic: makes a POST request to the Novita API endpoint `/gpu/instance/restart` with the provided instanceId and returns the result as formatted JSON text content.
    }, async (params) => { const result = await novitaRequest(`/gpu/instance/restart`, "POST", { instanceId: params.instanceId, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
  • Zod schema for the tool's input parameters, specifically validating the instanceId as a string with a descriptive note.
    instanceId: z .string() .describe("ID of the instance to restart. Before calling the MCP tool to restart the instance, MUST show me the details of the instance to help me identify it, including id, name, etc."),
  • src/tools.ts:262-278 (registration)
    The server.tool call that registers the 'restart-gpu-instance' tool, including its schema and inline handler function.
    server.tool("restart-gpu-instance", { instanceId: z .string() .describe("ID of the instance to restart. Before calling the MCP tool to restart the instance, MUST show me the details of the instance to help me identify it, including id, name, etc."), }, async (params) => { const result = await novitaRequest(`/gpu/instance/restart`, "POST", { instanceId: params.instanceId, }); 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