add_middleware
Add a new middleware to the Traefik dynamic middlewares file; Traefik hot-reloads the configuration automatically.
Instructions
Add a new middleware to traefik/dynamic/middlewares.yml (Traefik hot-reloads automatically)
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>",
"type": "<type>",
"config": "<config>"
},
"name": "add_middleware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Middleware name | |
| type | Yes | Middleware type (headers, rateLimit, stripPrefix, etc.) | |
| config | Yes | Configuration object for the middleware type |