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.
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) |