update-network-volume
Modify a network volume's name or increase its storage capacity in the RunPod MCP Server. Provide the volume ID and specify new name or larger size in GB.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkVolumeId | Yes | ID of the network volume to update | |
| name | No | New name for the network volume | |
| size | No | New size in GB (must be larger than current) |
Implementation Reference
- src/index.ts:698-715 (handler)Handler function that extracts the networkVolumeId from params, calls runpodRequest with PATCH to `/networkvolumes/{id}` using the remaining params, and returns the JSON-stringified result as text content.async (params) => { const { networkVolumeId, ...updateParams } = params; const result = await runpodRequest( `/networkvolumes/${networkVolumeId}`, 'PATCH', updateParams ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );
- src/index.ts:690-697 (schema)Input schema using Zod: requires networkVolumeId (string), optional name (string) and size (number).{ networkVolumeId: z.string().describe('ID of the network volume to update'), name: z.string().optional().describe('New name for the network volume'), size: z .number() .optional() .describe('New size in GB (must be larger than current)'), },
- src/index.ts:688-715 (registration)Full registration of the 'update-network-volume' tool via server.tool(), defining input schema and handler function.server.tool( 'update-network-volume', { networkVolumeId: z.string().describe('ID of the network volume to update'), name: z.string().optional().describe('New name for the network volume'), size: z .number() .optional() .describe('New size in GB (must be larger than current)'), }, async (params) => { const { networkVolumeId, ...updateParams } = params; const result = await runpodRequest( `/networkvolumes/${networkVolumeId}`, 'PATCH', updateParams ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );