Skip to main content
Glama

Get network

get_network
Read-onlyIdempotent

Retrieve an OpenStack network by ID to inspect status, sharing and external flags, MTU, subnets, and provider data. Use list_networks to find the network ID first.

Instructions

Get one network by ID: status, sharing and external flags, MTU, subnets, provider data.

Use list_networks to find IDs, with shared=true for shared networks. Returns not_found if the network is not visible to the selected project.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "network_id": "<network_id>"
    },
    "name": "get_network"
  }
}

Input Schema

NameRequiredDescriptionDefault
network_idYesNetwork ID, as returned by list_networks.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
idYes
mtuNo
nameNo
statusNo
is_sharedNo
project_idNo
subnet_idsNo
descriptionNo
is_admin_state_upNo
availability_zonesNo
is_router_externalNo
provider_network_typeNo
provider_segmentation_idNo
provider_physical_networkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / network_id / description
      Added value: +"Network ID, as returned by list_networks."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds value beyond them by disclosing the project-scoped visibility rule and the concrete not_found failure mode, which an agent cannot infer from the annotations.

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?

Three sentences, front-loaded with the operation and its returned fields, followed by discovery guidance and the error case. No redundant restatement of the tool name or schema, and every sentence carries distinct information.

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

Completeness5/5

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

For a two-parameter read tool with full schema coverage, rich annotations and an output schema, the description covers everything else an agent needs: what fields come back, how to obtain the ID, and the one non-obvious failure mode. Nothing material is missing.

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?

Schema description coverage is 100%, so both network_id and project_id are already documented in the schema, including the get_scope pointer. The description only reinforces project scoping via the visibility/not_found sentence and adds no format or constraint detail beyond the schema, making 3 the correct baseline.

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

Purpose5/5

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

The opening clause names a specific verb and resource ("Get one network by ID") and then enumerates the returned attributes (status, sharing/external flags, MTU, subnets, provider data). This is clearly a single-resource fetch, distinguishable at a glance from the sibling list_networks.

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

Usage Guidelines4/5

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

It explicitly routes ID discovery to list_networks and flags the shared=true variant needed for shared networks, which is real when-to-use guidance. It stops short of stating when not to use this tool (e.g. bulk retrieval should go to list_networks), so it is strong but not exhaustive.

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