Create a MagicSword policy
create_policyCreates a new empty audit-mode policy (version 1) for an organization by name and platform, defaulting to blocklist; use the returned ID to add rules and intel sources.
Instructions
Creates a new empty policy in the authenticated organization with version 1 in audit mode. Requires a name, platform, and policies:write. Defaults to blocklist; strict requires Enterprise and is supported only for Windows/macOS. Does not add rules, attach feeds, make it the default, assign devices, or enable enforcement. Use the returned policy ID with manage_policy_rules and manage_policy_intel_sources to build the policy. Each successful call creates a new policy, even with the same name. If the outcome is uncertain, list policies before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new policy | |
| platform | Yes | Operating system for this policy | |
| policy_mode | No | Defaults to blocklist. Strict requires Enterprise and is unsupported on Linux. |