Skip to main content
Glama

Set private port security groups

set_private_port_security_groups
DestructiveIdempotent

Replace a port's complete customer-group security list with chosen groups, or clear it to inherit the network default. Poll the operation until completion to confirm the change.

Instructions

Replace the port's complete customer-group list. Empty list selects the network default; at most seven customer groups fit alongside platform DNS. Use policy and port generations separately. Poll get_network_security_policy for each affected network (policies[].network_id); these receipts are not generic network operation IDs. 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. Read current capabilities and owned resource state first; obtain approval for the exact change. An accepted operation is pending, not proof of connectivity. Poll the returned operation/resource on its in_progress flag, waiting next_check_seconds between reads: while in_progress is true its reason_code is what is awaited (reason_kind waiting, e.g. a queued or pending reason, or a control plane that has not answered yet), never an error; only in_progress false with reason_kind failure is a failure. Preserve reason_code. On transport uncertainty inspect state and reuse only the original key and unchanged request; never automatically retry.

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>",
      "port_id": "<port_id>",
      "group_ids": "<group_ids>",
      "expected_generation": "<expected_generation>",
      "expected_port_generation": "<expected_port_generation>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "set_private_port_security_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
port_idYesExact lowercase UUID returned by an owned networking resource
group_idsYes
network_idYesExact lowercase UUID returned by an owned networking resource
project_idYesExact lowercase UUID returned by an owned networking resource
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery
expected_generationYes
expected_port_generationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive and idempotent, but the description adds substantial context beyond them: required scopes (networking:read / networking:manage, not granted by full/read defaults), backend ownership/feature/2FA lock enforcement, and that an accepted operation is pending rather than proof of connectivity. It also defines the polling contract (in_progress, reason_kind/reason_code distinctions, next_check_seconds) and the no-auto-retry rule on transport uncertainty — exactly the destructive-operation disclosure an agent needs.

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

Conciseness3/5

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

The purpose and constraints are front-loaded well, but the definition is long and dense, and a large share is generic pending-operation polling boilerplate that reads as shared template text rather than tool-specific information. It remains readable and each clause is actionable, but trimming the polling narrative would improve scannability.

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 7-parameter destructive mutation with no output schema, the description covers what is needed: exact replace semantics, cardinality and default fallback, required permissions, precondition reads, and the shape/meaning of the returned pending operation. An agent has enough to invoke and interpret the result correctly.

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

Parameters4/5

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

With 57% schema coverage, the description compensates on the most consequential parameters: group_ids semantics (empty = default, max 7 with DNS), the distinction between expected_generation and expected_port_generation ('use policy and port generations separately'), and idempotencyKey reuse rules. The three UUID parameters are left to the schema's generic description, which is acceptable but keeps it from a 5.

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?

States a specific verb and resource: 'Replace the port's complete customer-group list,' and immediately clarifies replace-vs-append semantics with the empty-list case. An agent can tell this apart from set_network_default_security_policy (which governs the network default that an empty list falls back to) without opening a schema.

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?

Gives concrete use conditions: empty list selects the network default, max seven groups alongside platform DNS, use policy and port generations separately, and read current capabilities/owned state before calling. It stops short of naming sibling alternatives (e.g., clone/update security group, default policy setter) for the cases where this tool is wrong, so not a 5.

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