Skip to main content
Glama

Get network security policy

get_network_security_policy
Read-onlyIdempotent

Retrieve a network's security policy, including default rules, assigned group rules, and desired/applied policy generations for auditing or change planning.

Instructions

Read default_policy, assigned group rules and desired/applied policy generations. Policy generation differs from network and port generations. effective_policy.default_ingress/default_egress describe implicit deny fallthrough after allow rules; they do not override default_policy=accept or mean every packet is denied. Custom group rules replace the network default on their assigned ports. Requires explicit networking:read for reads or networking:manage for changes; full/read defaults do not grant networking. The backend enforces ownership, feature availability and service 2FA locks.

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": {
      "project_id": "<project_id>",
      "network_id": "<network_id>"
    },
    "name": "get_network_security_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
network_idYesExact lowercase UUID returned by an owned networking resource
project_idYesExact lowercase UUID returned by an owned networking resource

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description adds substantive context: the exact OAuth scopes required, that full/read defaults do not include networking, and that the backend enforces ownership, feature availability, and service 2FA locks. It also preempts a likely misinterpretation about effective_policy deny fallthrough and warns that policy generations differ from network and port generations.

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?

The definition is front-loaded with what is read, then moves to semantic caveats and finally access requirements, so an agent can stop reading early. It is dense but nearly every sentence carries non-obvious information; the only cost is that the caveat sentences are packed tightly and read as field documentation rather than call guidance.

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?

With no output schema, the description usefully names the returned concepts (default_policy, group rules, desired/applied generations, effective_policy default_ingress/default_egress) and explains the override semantics of each. It does not describe the concrete response shape or error behaviors, but covers everything needed to call the tool correctly.

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 both project_id and network_id documented as exact lowercase UUIDs from an owned networking resource, so the schema does the heavy lifting. The description adds no parameter-level detail beyond what the schema already states, which is the expected 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 first sentence states a specific verb and enumerates exactly what is read: default_policy, assigned group rules, and desired/applied policy generations. That scope is distinct from mutation siblings such as set_network_default_security_policy, retire_network_security_policy, and retry_network_security_policy.

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 implied by the read framing and the stated prerequisite of networking:read, but the description never explicitly says when to call this versus get_security_group_capabilities, list_network_security_groups, or get_private_network. There are no when-not conditions or named alternatives, leaving the routing decision to inference.

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

Deploy Server

Other Tools