Skip to main content
Glama

liara_get_network

Retrieve network configuration details including ID, settings, and infrastructure information from the Liara cloud platform for deployment management.

Instructions

Get details of a network

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkIdYesThe network ID

Implementation Reference

  • The core handler function that executes the liara_get_network tool logic: validates the network ID and fetches network details from the Liara API endpoint /v1/networks/{networkId}.
    export async function getNetwork( client: LiaraClient, networkId: string ): Promise<Network> { validateRequired(networkId, 'Network ID'); return await client.get<Network>(`/v1/networks/${networkId}`); }
  • TypeScript interface defining the structure of a Network object, used as input/output type for the getNetwork function.
    export interface Network { _id: string; name: string; cidr: string; createdAt: string; }
  • Utility function used in the handler to validate that the required networkId parameter is provided.
    export function validateRequired(value: any, fieldName: string): void { if (value === undefined || value === null || value === '') { throw new LiaraMcpError(`${fieldName} is required`); } }

Other Tools

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/razavioo/liara-mcp'

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