create_policy
Create a product license policy (plan or tier) with type, machine/IP limits, and duration so licenses can be issued from it.
Instructions
Create a policy for a product: a plan or tier customers buy (e.g. Pro, Lite, Trial), i.e. the license template with its type, machine limit, IP limit and duration. Licenses are issued from policies (issue_license). maxMachines, maxIps or durationDays left out means unlimited.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product": "<product>",
"name": "<name>"
},
"name": "create_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the plan or tier's name, e.g. 'Pro' or 'Trial' | |
| type | No | PERPETUAL (never expires), SUBSCRIPTION (expires durationDays after issue) or TRIAL (a time-boxed evaluation). Default: SUBSCRIPTION with durationDays, else PERPETUAL | |
| maxIps | No | IP addresses one license may be used from (e.g. 1 for one server; IPv6 counts per /64); unlimited when left out | |
| product | Yes | product id, code or name | |
| maxMachines | No | machines one license may run on at once; unlimited when left out | |
| durationDays | No | days a license lasts after issue; needed for SUBSCRIPTION and TRIAL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes |