update-network-storage
Modify network storage capacity and rename storage volumes on the Novita AI platform to accommodate growing data needs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storageId | Yes | The unique ID of the network storage to update. Please ensure it exists before updating. | |
| storageName | No | 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 | Yes | 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. |
Implementation Reference
- src/tools.ts:587-597 (handler)Handler function for the 'update-network-storage' tool. It sends a POST request to the /networkstorage/update endpoint with the provided parameters and returns the JSON response as text content.}, async (params) => { const result = await novitaRequest(`/networkstorage/update`, "POST", params); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; });
- src/tools.ts:575-586 (schema)Input schema using Zod for validating parameters: storageId (required string), storageName (optional string), storageSize (required number >=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)Registration of the 'update-network-storage' tool on the MCP server, including input schema and handler.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), }, ], }; });