Skip to main content
Glama

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
NameRequiredDescriptionDefault
networkVolumeIdYesID of the network volume to retrieve

Implementation Reference

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

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