Skip to main content
Glama

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
NameRequiredDescriptionDefault
networkVolumeIdYesID of the network volume to update
nameNoNew name for the network volume
sizeNoNew size in GB (must be larger than current)

Implementation Reference

  • 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), }, ], }; } );
  • 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), }, ], }; } );

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/runpod/runpod-mcp-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server