Skip to main content
Glama

List subnets

list_subnets
Read-onlyIdempotent

Lists a project's subnets with CIDR, gateway, and DHCP details, supporting paging plus network, project, and IP version filters.

Instructions

List the project's subnets with CIDR, gateway and DHCP settings.

Paged with limit and marker.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_subnets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items to return (1-100, default 50).
markerNonext_marker from the previous page; omit for the first page.
ip_versionNoIP version filter: 4 or 6.
network_idNoNetwork ID whose subnets to list.
project_idNoProject ID to work in; omit for the default project. Allowed values are listed by get_scope.

Output Schema

NameRequiredDescriptionDefault
itemsYes
limitYesMaximum number of items requested.
completeYesTrue when no more items exist beyond this page.
resourceYesResource type of the items.
project_idYesProject whose session produced the list.
next_markerNoPass as marker to read the next page; null when complete or when the API has no marker paging.
observed_atYesUTC time the list was read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • addedInput schema / properties / ip_version / description
      Added value: +"IP version filter: 4 or 6."
    • addedInput schema / properties / network_id / description
      Added value: +"Network ID whose subnets to list."
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive and open-world behavior, so the safety profile is fully covered elsewhere. The description adds only the pagination mechanic, which the schema also documents, and says nothing about ordering, empty results, or permission requirements beyond what the annotations imply.

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

Conciseness4/5

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

Two short sentences, front-loaded with the core purpose and returned fields, followed by the pagination note. The pagination sentence largely repeats schema information, which is a minor redundancy.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and annotations cover the behavioral profile; the description is adequate for a simple paginated list tool. The small gap is that it never mentions the ip_version or network_id filtering that the tool actually supports, so an agent must read the schema to discover it.

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%, with limit, marker, ip_version, network_id and project_id all documented in the schema itself, so the baseline is 3. The description merely echoes 'paged with limit and marker' and does not explain the semantics of the filtering parameters (network_id, ip_version, project_id).

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 names a specific verb and resource ('List ... subnets') and adds the key returned attributes (CIDR, gateway, DHCP settings), so the agent knows this is a read-listing tool rather than a detail lookup. It does not explicitly contrast itself with the sibling get_subnet or list_networks, which is the only thing keeping it from a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the tool lists a project's subnets and notes that results are paged with limit and marker. There is no explicit guidance on when to prefer this over get_subnet for a single subnet, or over list_networks, and no mention of how the network_id or ip_version filters change the use case.

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