proxy_add_rule
Add an interception rule to match HTTP requests and define handling via passthrough, mock, forward, or drop. Rules are evaluated by priority, first match wins.
Instructions
Add an interception rule with a matcher and handler. Rules are evaluated by priority (ascending), first match wins.
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": {
"description": "<description>",
"matcher": "<matcher>",
"handler": "<handler>"
},
"name": "proxy_add_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handler | Yes | What to do with matched requests | |
| matcher | Yes | Conditions to match requests | |
| priority | No | Priority (lower = higher priority, default: 100) | |
| description | Yes | Human-readable description of this rule |