Skip to main content
Glama

get-network-volume

Retrieve details of a specific network volume from the RunPod platform using its unique ID to access configuration and status information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkVolumeIdYesID of the network volume to retrieve

Implementation Reference

  • The handler function for the 'get-network-volume' tool. It makes an API request to retrieve the network volume details using the provided ID and returns the result as a formatted JSON text content block.
    async (params) => { const result = await runpodRequest( `/networkvolumes/${params.networkVolumeId}` ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
  • Zod input schema for the 'get-network-volume' tool, defining the required 'networkVolumeId' parameter.
    { networkVolumeId: z .string() .describe('ID of the network volume to retrieve'), },
  • src/index.ts:642-663 (registration)
    Registration of the 'get-network-volume' tool using server.tool(), including inline schema and handler.
    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'

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