Skip to main content
Glama

get_dfw_rule_stats

Read-onlyIdempotent

Retrieve packet, byte, and session hit-count statistics for a Distributed Firewall rule to verify active traffic before updating or deleting it.

Instructions

[READ] Get packet/byte hit-count statistics for a DFW rule.

Returns one flat stats object, not an envelope: packet_count, byte_count, session_count, hit_count, popularity_index. Use it before update_dfw_rule or delete_dfw_rule to see if a rule still matches traffic; counters are cumulative and may read zero on a new rule. Ids come from list_dfw_rules.

Args: policy_id: Parent policy identifier. rule_id: Rule identifier. target: Optional NSX Manager target from config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
rule_idYes
policy_idYes
Behavior5/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive. The description adds valuable context beyond annotations: returns a flat object not an envelope, lists the exact fields returned, notes counters are cumulative, and warns that new rules may read zero. No contradiction with annotations.

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

Conciseness5/5

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

Concise and well-structured: starts with a [READ] tag and clear purpose, then a compact paragraph of usage and return details, followed by an Args list. Every sentence provides useful information without waste.

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 simple 3-parameter read tool with no output schema, the description is complete. It describes the return format (flat object with field names), explains counter behavior, specifies where IDs come from, and includes parameter semantics. No critical information is missing.

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 compensates by giving one-line meanings for each parameter: policy_id as parent policy, rule_id as rule identifier, and target as optional NSX Manager target from config. This adds meaning beyond the bare schema titles, though not deeply detailed.

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?

Clearly states it gets packet/byte hit-count statistics for a DFW rule, using a specific verb and resource. Distinguishes itself from sibling tools by explicitly noting it should be used before update_dfw_rule or delete_dfw_rule and that IDs come from list_dfw_rules.

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

Usage Guidelines5/5

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

Provides explicit usage context: 'Use it before update_dfw_rule or delete_dfw_rule to see if a rule still matches traffic' and explains counter semantics (cumulative, may read zero on new rule). This gives clear when-to-use guidance despite not enumerating exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vmware-skills/VMware-NSX-Security'

If you have feedback or need assistance with the MCP directory API, please join our Discord server