create_exchange
Creates a RabbitMQ exchange by name with configurable type (direct, topic, headers, fanout), vhost, and durable flag to route messages.
Instructions
创建交换机
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>"
},
"name": "create_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 交换机名称 | |
| type | No | 交换机类型 (direct, topic, headers, fanout) | direct |
| vhost | No | 虚拟主机名称 (默认: /) | / |
| durable | No | 是否持久化 |