HTTP Request
Make generic HTTP requests with full control over method, headers, and body
Usage Instructions
Make HTTP requests to any URL with support for all standard methods (GET, POST, PUT, PATCH, DELETE, etc.), custom headers, query parameters, path parameters, form data, and configurable timeout. Useful for integrating with any REST API.
Tools
http_request
Make HTTP requests with comprehensive support for methods, headers, query parameters, path parameters, and form data. Features configurable timeout and status validation for robust API interactions.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL to send the request to |
method | string | No | No description |
headers | object | No | No description |
body | object | No | No description |
pathParams | object | No | No description |
formData | object | No | No description |
timeout | number | No | No description |
retries | number | No | Number of retry attempts for retryable failures (timeouts, 429, 5xx). Default: 0 (no retries). |
retryDelayMs | number | No | No description |
retryMaxDelayMs | number | No | No description |
retryNonIdempotent | boolean | No | Allow retries for non-idempotent methods like POST/PATCH (may create duplicate requests). |
Output
| Parameter | Type | Description |
|---|---|---|
data | json | Response data from the HTTP request (JSON object, text, or other format) |
status | number | HTTP status code of the response (e.g., 200, 404, 500) |
headers | object | Response headers as key-value pairs |

