Skip to main content
Glama

scm_create_security_rule

Create security policy rules to control network traffic flow by defining source/destination zones, actions, applications, and security profiles.

Instructions

Create a security policy rule.

Args: name: Unique name for the rule. folder: Folder to create the rule in. action: Rule action — 'allow' or 'deny'. source_zone: List of source zone names (e.g. ['trust', 'any']). destination_zone: List of destination zone names. source: List of source address objects/groups (default ['any']). destination: List of destination address objects/groups (default ['any']). application: List of application names (default ['any']). service: List of service names (default ['application-default']). profile_setting: Optional security profile group dict, e.g. {'group': ['best-practice']}. log_setting: Optional log forwarding profile name. description: Optional description. tag: Optional list of tag names. disabled: Whether the rule is disabled (default False). rulebase: Which rulebase to add the rule to — 'pre' (default) or 'post'. tsg_id: Optional TSG ID or named alias. Defaults to SCM_TSG_ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
folderYes
actionYes
source_zoneYes
destination_zoneYes
sourceNo
destinationNo
applicationNo
serviceNo
profile_settingNo
log_settingNo
descriptionNo
tagNo
disabledNo
rulebaseNopre
tsg_idNo
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states this is a creation tool, implying a write operation, but doesn't disclose behavioral traits like whether it requires specific permissions, if it's idempotent, what happens on conflicts (e.g., duplicate names), or if changes are immediate or require a commit. For a mutation tool with zero annotation coverage, this is a significant gap.

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?

The description is appropriately sized and front-loaded: the purpose is stated first, followed by a structured parameter list. Each parameter explanation is concise and adds value. However, the 'Args:' section could be slightly more integrated with the initial sentence for better flow.

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?

Given the complexity (16 parameters, mutation tool), no annotations, and no output schema, the description is partially complete. It excels in parameter documentation but lacks behavioral context (e.g., error handling, side effects) and output details. For a creation tool in a security context, more completeness is needed despite the strong parameter coverage.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It provides detailed semantics for all 16 parameters, including explanations, examples (e.g., action values, default lists), and optional/default behaviors. This adds substantial meaning beyond the bare schema, fully documenting the parameters.

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 clearly states the tool's purpose: 'Create a security policy rule.' It specifies the verb ('create') and resource ('security policy rule'), which is unambiguous. However, it doesn't explicitly differentiate from siblings like 'scm_update_security_rule' or 'scm_delete_security_rule', though the action 'create' implies a distinction.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., existing folders or zones), exclusions, or comparisons to sibling tools like 'scm_update_security_rule' or 'scm_move_security_rule'. Usage is implied by the action 'create', but no explicit context is given.

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/ReverseThrottle/scm-mcp'

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