mainwp_costs_edit
Update an existing cost entry in MainWP with new details such as name, type, price, currency, renewal schedule, and assigned sites.
Instructions
Edit an existing cost entry in MainWP (Pro feature)
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": {
"cost": "<cost>"
},
"name": "mainwp_costs_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost ID (number) | |
| name | No | Updated cost name | |
| note | No | Additional notes | |
| type | No | Cost type | |
| price | No | Cost amount | |
| sites | No | Site IDs this cost applies to | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) | |
| currency | No | Currency code | |
| last_renewal | No | Last renewal date | |
| next_renewal | No | Next renewal date | |
| product_type | No | Product category | |
| renewal_frequency | No | Billing frequency |