Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

update-network-storage

Update the size or rename a network storage on Novita MCP Server by specifying the storage ID, new size (in GB), and optional new name. Ensure the new size is larger than the current size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
storageIdYesThe unique ID of the network storage to update. Please ensure it exists before updating.
storageNameNoNew name for the network storage. This is optional, if not provided, the name will not be changed. Use only letters, numbers, and hyphens
storageSizeYesNew size in GB (must be larger than current size). You can use the `list-network-storage` tool to get the current size if you don't know it.

Implementation Reference

  • The handler function that executes the 'update-network-storage' tool. It performs a POST request to the '/networkstorage/update' endpoint using novitaRequest with the input params and returns the result as formatted JSON text content.
    }, async (params) => { const result = await novitaRequest(`/networkstorage/update`, "POST", params); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
  • Zod schema for input validation of the 'update-network-storage' tool parameters: storageId (required non-empty string), storageName (optional string), storageSize (number minimum 10).
    storageId: z .string() .nonempty() .describe("The unique ID of the network storage to update. Please ensure it exists before updating."), storageName: z .string() .optional() .describe("New name for the network storage. This is optional, if not provided, the name will not be changed. Use only letters, numbers, and hyphens"), storageSize: z .number() .min(10) .describe("New size in GB (must be larger than current size). You can use the `list-network-storage` tool to get the current size if you don't know it."),
  • src/tools.ts:574-597 (registration)
    The registration of the 'update-network-storage' tool using server.tool, including inline schema and handler function.
    server.tool("update-network-storage", { storageId: z .string() .nonempty() .describe("The unique ID of the network storage to update. Please ensure it exists before updating."), storageName: z .string() .optional() .describe("New name for the network storage. This is optional, if not provided, the name will not be changed. Use only letters, numbers, and hyphens"), storageSize: z .number() .min(10) .describe("New size in GB (must be larger than current size). You can use the `list-network-storage` tool to get the current size if you don't know it."), }, async (params) => { const result = await novitaRequest(`/networkstorage/update`, "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