Skip to main content
Glama

search_firewall_rules

Read-onlyIdempotent

Search every firewall's effective rules by port, source, destination, FQDN, action, or rule type to map cloud exposure and verify connectivity.

Instructions

Search every firewall's effective rules.

port: destination port (ranges and '*' match). source/destination: IP, CIDR, service tag or 'internet' (matches *, 0.0.0.0/0). fqdn: matched against target FQDN patterns (wildcards honored). action: Allow, Deny or DNAT. rule_type: dnat, network or application.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fqdnNo
portNo
limitNo
actionNo
sourceNo
rule_typeNo
destinationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.8

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safe-read profile is covered. The description adds the useful detail that it returns 'effective' rules across all firewalls and explains filter matching, but says nothing about result limits, pagination, or default behavior for the limit parameter.

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?

Purpose is front-loaded in one line, followed by compact per-parameter notes with no filler. Efficient and readable, though the bare parameter list reads slightly like notes rather than prose.

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

Completeness3/5

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

Covers most filter parameters well for a 7-param tool with no output schema, but omits the limit/pagination semantics and does not explain what distinguishes 'effective rules' from raw configured rules. Adequate but with a visible gap.

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 0% schema description coverage the description must carry the load, and it does: it defines port (ranges and '*'), source/destination (IP/CIDR/service tag/'internet'), fqdn (wildcards), action values (Allow/Deny/DNAT), and rule_type values (dnat/network/application). Only the limit parameter (default 200) goes undocumented.

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?

States a specific verb+resource ('search every firewall's effective rules'), which is clearer than a bare name restatement. However, it does not differentiate from siblings such as firewall_rules, search_nsg_rules, or nsg_rules_for, so the agent cannot tell which to pick from the text alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no named alternatives despite several overlapping siblings (firewall_rules, search_nsg_rules). The description documents matching syntax but never says when this tool should be chosen over the alternatives.

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