servicebus_purge_dlq
Delete all messages from an Azure Service Bus dead-letter queue, stopping at a configurable maximum to control the purge scope.
Instructions
Delete all messages from the dead letter queue for an Azure Service Bus queue.
THIS IS DESTRUCTIVE — messages cannot be recovered after purging. Stops and leaves remaining messages untouched if the running total exceeds max_messages.
connection_string_env_var: name of the environment variable holding the Service Bus connection string. If the variable is set, connection-string auth is used; otherwise DefaultAzureCredential is used.
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": {
"namespace": "<namespace>",
"queue": "<queue>"
},
"name": "servicebus_purge_dlq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | ||
| queue | Yes | ||
| max_messages | No | ||
| connection_string_env_var | No | AZURE_SERVICEBUS_CONNECTION_STRING |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |