remove_mock_rule
Remove a single conditional rule from an existing mock API endpoint by its rule ID, without needing to resend the full rules array. Returns the full updated mock object with the remaining rules. Token-efficient counterpart to add_mock_rule — use this instead of update_mock when deleting one rule so other rules keep their existing database IDs and slugIds. Obtain the target ruleId from get_mock_detail.
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": {
"projectId": "<projectId>",
"mockId": "<mockId>",
"ruleId": "<ruleId>"
},
"name": "remove_mock_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mockId | Yes | Database ID of the mock endpoint containing the rule (obtain from list_mocks or get_mock_detail). | |
| ruleId | Yes | Database ID of the specific rule to remove (obtain from the 'rules[].id' field in get_mock_detail). | |
| projectId | Yes | Database ID of the project workspace (obtain from list_projects or get_mock_detail). |