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`);
        }
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only operation ('Get'), but doesn't specify authentication needs, rate limits, error handling (e.g., invalid networkId), or what 'details' entail (e.g., JSON structure, included fields). This is inadequate for a tool with zero annotation coverage, as critical behavioral traits are missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with zero waste—'Get details of a network' directly conveys the core action. It's appropriately sized for a simple retrieval tool and front-loaded with the essential information, making it highly efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 parameter, 100% schema coverage) but lack of annotations and output schema, the description is incomplete. It doesn't explain what 'details' include in the response, which is crucial since there's no output schema. For a retrieval tool, this omission leaves the agent uncertain about the return value, reducing overall completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage (networkId is described as 'The network ID'), so the baseline is 3. The description adds no additional parameter semantics beyond the schema, such as format examples (e.g., UUID) or where to find the networkId. It meets the minimum but doesn't enhance understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'details of a network', making the purpose understandable. It distinguishes from siblings like liara_list_networks (which lists multiple networks) and liara_create_network/liara_delete_network (which mutate networks). However, it doesn't specify what 'details' include (e.g., configuration, status, resources), keeping it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives is provided. The agent must infer from the name and sibling tools that this retrieves details for a specific network ID, while liara_list_networks lists all networks. There's no mention of prerequisites, error conditions, or when not to use it, leaving gaps in practical usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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