Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

create-network-storage

Define and allocate network storage for a specific cluster using cluster ID, storage name, and size in GB. Ensures resources are efficiently organized and accessible for Novita MCP Server operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clusterIdYesThe ID of the cluster to create network storage. Must be from the `list-clusters` tool result, and the cluster must have supportNetworkStorage set to true
storageNameYesName for the network storage. Use only letters, numbers, and hyphens
storageSizeYesSize of the network storage in GB

Implementation Reference

  • The handler function for the 'create-network-storage' tool. It makes a POST request to the Novita API endpoint '/networkstorage/create' with the input parameters and formats the response as a text content block.
    }, async (params) => { const result = await novitaRequest("/networkstorage/create", "POST", params); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
  • Zod input schema defining parameters for the 'create-network-storage' tool: clusterId (string), storageName (string, nonempty, trimmed), storageSize (number >=10).
    clusterId: z .string() .describe("The ID of the cluster to create network storage. Must be from the `list-clusters` tool result, and the cluster must have supportNetworkStorage set to true"), storageName: z .string() .nonempty() .trim() .describe("Name for the network storage. Use only letters, numbers, and hyphens"), storageSize: z .number() .min(10) .describe("Size of the network storage in GB"), }, async (params) => {
  • src/tools.ts:504-527 (registration)
    The server.tool call that registers the 'create-network-storage' tool, providing its input schema and inline handler function.
    server.tool("create-network-storage", { clusterId: z .string() .describe("The ID of the cluster to create network storage. Must be from the `list-clusters` tool result, and the cluster must have supportNetworkStorage set to true"), storageName: z .string() .nonempty() .trim() .describe("Name for the network storage. Use only letters, numbers, and hyphens"), storageSize: z .number() .min(10) .describe("Size of the network storage in GB"), }, async (params) => { const result = await novitaRequest("/networkstorage/create", "POST", params); 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