Skip to main content
Glama

liara_detach_network

Remove a network from a virtual machine to manage connectivity and isolate resources on the Liara cloud platform.

Instructions

Detach a network from a VM

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vmIdYesThe VM ID
networkIdYesThe network ID

Implementation Reference

  • Executes the detachment of a network from a specified virtual machine using the Liara IaaS API. This is the core logic for the liara_detach_network tool.
    export async function detachNetwork(
        client: LiaraClient,
        vmId: string,
        networkId: string
    ): Promise<void> {
        validateRequired(vmId, 'VM ID');
        validateRequired(networkId, 'Network ID');
        const iaasClient = createIaaSClient(client);
        await iaasClient.delete(`/vm/${vmId}/networks/${networkId}`);
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. 'Detach' implies a mutation operation, but the description doesn't disclose whether this requires specific permissions, if it's reversible, what happens to network connectivity during/after detachment, or any rate limits. This leaves significant behavioral gaps for a mutation tool.

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, efficient sentence that states the core functionality without any wasted words. It's perfectly front-loaded with the essential information.

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?

For a mutation tool with no annotations and no output schema, the description is insufficient. It doesn't explain what happens after detachment, whether there are side effects, what the response contains, or any error conditions. Given the complexity of network detachment operations, this leaves too many unanswered questions.

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?

With 100% schema description coverage, the schema already documents both parameters (vmId and networkId) adequately. The description doesn't add any additional semantic context about these parameters beyond what the schema provides, meeting the baseline expectation.

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 action ('detach') and resource ('a network from a VM'), making the purpose immediately understandable. It doesn't explicitly differentiate from sibling tools like 'liara_attach_network', but the verb 'detach' inherently contrasts with 'attach', providing some implicit differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or consequences. With sibling tools like 'liara_attach_network' and 'liara_delete_network', there's no indication of when detaching is appropriate versus deleting or attaching networks.

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