Content Rules
Geo and IP targeting. Content rule profiles bundle rule groups; groups define the countries, regions and addresses a rule applies to. Global groups are a read-only catalogue Zype maintains.
Example prompts:
- "List my content rule profiles"
- "Create a rule group blocking a country"
- "What global content rule groups are available?"
12 Tools
list_content_rule_profiles
List content rule profiles — named sets of geo/IP access rules — in your Zype site.
Parameters
order
string
optional
Sort order
"asc" | "desc"page
number
optional
Page number (default: 1)
per_page
number
optional
Results per page
q
string
optional
Search query
sort
string
optional
Field to sort by
get_content_rule_profile
Get a specific content rule profile by its ID, including all of its nested content rules.
Parameters
content_rule_profile_id
string
required
The unique ID of the content rule profile (required)
create_content_rule_profile
Create a new content rule profile (a named set of geo/IP access rules).
More details
Provide a title and, optionally, a description, whether it is the site's default profile, and a list of nested content rules. Each rule has a policy (allow/deny), a priority, a match_type, location criteria (countries, states, cities, zip_codes, dma_codes, ip_addresses, ip_ranges), and content_rule_group_ids identifying the content rule groups it targets.
Parameters
title
string
required
Title of the content rule profile (required)
content_rules
array<object>
optional
Nested content rules to create with the profile
description
string
optional
Description of the profile
is_default_profile
boolean
optional
Whether this is the default profile for the site
update_content_rule_profile
Update an existing content rule profile. Only the fields you provide are changed.
More details
To modify nested rules, pass content_rules: include an existing rule's id to update it, set _destroy: true (with id) to remove it, or omit id to add a new rule.
Parameters
content_rule_profile_id
string
required
The unique ID of the content rule profile to update (required)
content_rules
array<object>
optional
Nested content rules to add, update (with id), or remove (with _destroy)
description
string
optional
New description
is_default_profile
boolean
optional
Whether this is the default profile for the site
title
string
optional
New title
delete_content_rule_profile
Permanently delete a content rule profile from Zype. This action cannot be undone.
Parameters
content_rule_profile_id
string
required
The unique ID of the content rule profile to delete (required)
confirm
boolean
optional
Set to true to confirm deletion (required in safe mode)
list_content_rule_groups
List all custom content rule groups (geo/IP targeting rule sets) for your site, ordered by name.
No parameters required
get_content_rule_group
Get a single content rule group by its ID, including its group type and all matching values.
Parameters
content_rule_group_id
string
required
The unique ID of the content rule group (required)
create_content_rule_group
Create a new content rule group. Provide a name, a group_type, and the matching values for that type (e.g. countries for a country group, ip_addresses/ip_ranges for an ip_address group).
Parameters
name
string
required
Name of the content rule group (required)
cities
array<string>
optional
City names; required for city groups
countries
array<string>
optional
ISO 3166-1 alpha-2 country codes (uppercase); required for country groups
dma_codes
array<string>
optional
DMA codes; required for dma_code groups
group_type
string
optional
Rule matching type (default: country)
"country" | "state" | "city" | "zip_code" | "dma_code" | "ip_address"ip_addresses
array<string>
optional
Single hosts or CIDR blocks
ip_ranges
array<object>
optional
Start/end IP address pairs
states
array<string>
optional
US state codes (uppercase); required for state groups
zip_codes
array<string>
optional
ZIP/postal codes; required for zip_code groups
update_content_rule_group
Update an existing content rule group. Only the fields you provide are changed.
Parameters
content_rule_group_id
string
required
The unique ID of the content rule group to update (required)
cities
array<string>
optional
City names; required for city groups
countries
array<string>
optional
ISO 3166-1 alpha-2 country codes (uppercase); required for country groups
dma_codes
array<string>
optional
DMA codes; required for dma_code groups
group_type
string
optional
Rule matching type (default: country)
"country" | "state" | "city" | "zip_code" | "dma_code" | "ip_address"ip_addresses
array<string>
optional
Single hosts or CIDR blocks
ip_ranges
array<object>
optional
Start/end IP address pairs
name
string
optional
New name
states
array<string>
optional
US state codes (uppercase); required for state groups
zip_codes
array<string>
optional
ZIP/postal codes; required for zip_code groups
delete_content_rule_group
Permanently delete a content rule group from Zype. This action cannot be undone.
Parameters
content_rule_group_id
string
required
The unique ID of the content rule group to delete (required)
confirm
boolean
optional
Set to true to confirm deletion (required in safe mode)
list_global_content_rule_groups
List the global content rule groups catalog (geo/IP targeting rule groups shared across sites), ordered by name. Supports optional search, sorting, and pagination.
Parameters
order
string
optional
Sort order
"asc" | "desc"page
number
optional
Page number (default: 1)
per_page
number
optional
Results per page (default: 10, max: 500)
q
string
optional
Search query
sort
string
optional
Field to sort by
get_global_content_rule_group
Get a single global content rule group from the catalog by its ID, including its geo/IP targeting lists (countries, states, cities, zip codes, DMA codes, IP addresses, and IP ranges).
Parameters
global_content_rule_group_id
string
required
The unique ID of the global content rule group (required)