Self-Healing Function Call
wrap_callExecute external calls with automatic retry and circuit breaker protection to handle transient failures reliably.
Instructions
Execute a function call with retry, circuit breaker, and metrics. Pass a target name and the function will be retried on transient failures. Use this to wrap any unreliable external 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": {
"target": "<target>",
"description": "<description>"
},
"name": "wrap_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Identifier for the target service (used for circuit breaker tracking) | |
| description | Yes | Human-readable description of what this call does | |
| url | No | URL to call (for HTTP targets) | |
| method | No | HTTP method (default: GET) | |
| headers | No | HTTP headers | |
| body | No | Request body (for POST/PUT/PATCH) | |
| timeoutMs | No | Timeout per attempt in ms (default: 30000) |