Create rewrite rule
create_rewrite_ruleDefine a rule that rewrites live HTTP requests or responses—headers, body, or status—without short-circuiting the upstream call.
Instructions
Create a rewrite rule. Rewrites mutate live requests/responses (headers, body, status) without short-circuiting the upstream call.
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": {
"name": "<name>",
"match_url": "<match_url>",
"action": "<action>"
},
"name": "create_rewrite_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | No | Replacement value. | |
| action | Yes | Rewrite action verb (see engine docs). | |
| target | No | Target field affected by the action. | |
| enabled | No | ||
| match_url | Yes | URL match pattern. | |
| match_method | No | HTTP method to match, or "*". |