Skip to main content
Glama

Retry network security policy

retry_network_security_policy
DestructiveIdempotent

Retry a failed network security policy using its current desired state; inspect the pending policy first, then poll each affected network to track progress.

Instructions

Retry the failed network security policy using its current desired state. The pending policy may replace firewall rules and remove network access; inspect its desired state first. 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>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "retry_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
idempotencyKeyYesIdempotency-Key for this exact change; preserve it and the unchanged body on uncertain recovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.16

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the destructive effect in concrete terms (replaces firewall rules, removes network access), states the required scope (networking:manage, with full/read defaults insufficient), mentions backend ownership/feature/2FA enforcement, and explains idempotency-key preservation and never-auto-retry on transport uncertainty. Some of the in_progress/reason_code polling narrative reads as generic operational boilerplate shared across the API rather than tool-specific behavior, which caps it at 4.

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 destructive warning are front-loaded, which is good. However, the description is a long, dense run-on that spends several sentences on generic polling and reason_code protocol details that likely apply to many sibling tools, diluting the tool-specific content.

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?

For a destructive retry tool with three required parameters and no output schema, the definition covers the important ground: side effects, required permissions, approval prerequisites, failure vs pending semantics, and idempotent recovery. The only real gap is that the shape of the returned operation/resource is only loosely described.

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 coverage is 100%, so all three parameters are already documented with patterns and descriptions. The description does add some meaning by clarifying that policies[].network_id must be polled via get_network_security_policy and that these are not generic network operation IDs. project_id is never discussed, and the idempotencyKey guidance largely repeats the schema text, so baseline 3 is appropriate.

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 opens with a specific verb+resource: "Retry the failed network security policy using its current desired state." It also distinguishes the tool from sibling lookups by warning that the retried policy may replace firewall rules and by directing the agent to get_network_security_policy for per-network inspection. It does not explicitly rule out other retry-style siblings, but the action and target are unmistakable.

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?

Strong procedural guidance: inspect the desired state first, read current capabilities and owned resource state, obtain approval for the exact change, and poll get_network_security_policy per affected network. It lacks an explicit "use this only when X, otherwise use Y" statement, and no alternative is named for cases where a policy should be retired or a different retry tool should be used, so it lands just below the top score.

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