get-network-volume
Retrieve details of a specific network volume by its ID to manage storage resources in the RunPod MCP Server environment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| networkVolumeId | Yes | ID of the network volume to retrieve |
Implementation Reference
- src/index.ts:649-663 (handler)Handler function that retrieves network volume details from Runpod API by ID and returns formatted JSON response.async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}` ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );
- src/index.ts:644-648 (schema)Input schema validating networkVolumeId as a string (ID of the network volume).{ networkVolumeId: z .string() .describe('ID of the network volume to retrieve'), },
- src/index.ts:642-663 (registration)Registration of the 'get-network-volume' tool with schema and inline handler using server.tool.server.tool( 'get-network-volume', { networkVolumeId: z .string() .describe('ID of the network volume to retrieve'), }, async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}` ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } );