---
title: firewall_rule_add
url: "/docs/ai-agents/mcp-tools/server-access/firewall_rule_add/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/server-access/firewall_rule_add/
markdown_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/server-access/firewall_rule_add.md
summary: Allow TCP or UDP inbound from a source network to Servers in a Location.
categories:
- mcp
- reference
---

# firewall_rule_add

Allow TCP or UDP inbound from a source network to Servers in a Location. Requires explicit Server access approval.

| | |
|---|---|
| Access | Changes Blossom |
| Same as | [`blossom firewall_rule:add`](/docs/reference/cli/firewall_rule/add/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `location` | string | Location id. Required. |
| `protocol` | string | tcp or udp. Required. |
| `port` | integer | Destination port. Required. |
| `source_cidr` | string | IPv4 or IPv6 source in CIDR notation. Required. |

## Example

```json
{"location":"location-100","protocol":"protocol-100","port":1,"source_cidr":"source_cidr-100"}
```
