Skip to main content
Glama

parse_policy

Parse vendor-native firewall configs to normalized JSON. Inspect extracted rules, verify object resolution, and expand addresses before analyzing overlaps.

Instructions

Parse a vendor-native firewall config and return normalized JSON rules. Use this to inspect what the built-in parser extracts — verify rule counts, object resolution, and address expansion before running overlap analysis. The output uses the same normalized schema accepted by analyze_firewall_rule_overlap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vendorYesVendor identifier. One of: "panos", "asa", "ftd", "ios", "iosxr", "checkpoint", "juniper", "junos", "sros", "fortios".
os_versionNoOptional OS version string for parser variant selection.
context_objectsNoOptional JSON string with supplemental object definitions (address groups, service objects).
ruleset_payloadNoComplete firewall config in vendor-native text format. For IOS: paste the full 'show access-lists <name>' output. For PAN-OS: paste the full XML config tree.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations exist, so the description carries full burden. It describes the parse operation and output format, but does not disclose whether the tool is read-only or has side effects. The behavior is straightforward for a parsing tool, but lacks details like error handling or idempotency.

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?

Two concise sentences front-load the core functionality and immediately provide context for usage. Every sentence adds value without redundancy.

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?

Given the tool's complexity and the presence of an output schema, the description is adequate. It explains the purpose and how the output ties into analysis, though it could mention potential limitations like config size or parser constraints.

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%, so the schema already documents parameters. The description adds value by explaining the output's relationship to another tool, but does not provide additional parameter-level details beyond what the schema offers.

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 description clearly states the verb 'Parse' and the resource 'vendor-native firewall config', with the outcome 'return normalized JSON rules'. It distinguishes from sibling tools by explicitly mentioning 'before running overlap analysis', referencing the analyzer tool.

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?

The description gives explicit guidance: 'Use this to inspect ... before running overlap analysis.' This indicates when to use. It does not explicitly state when not to use, but the context implies it is for verification, not analysis. Sibling tool names provide further differentiation.

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/AutomateIP/fwrule-mcp'

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