api_request
Send generic HTTP requests with a chosen method, URL, body, headers, and query parameters, returning structured status, timing, and error details.
Instructions
Make a generic HTTP request with specified method, URL, and optional data, headers and query parameters
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": {
"method": "<method>",
"url": "<url>"
},
"name": "api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to send the request to | |
| data | No | The data to send in the request body (for POST, PUT, PATCH) | |
| format | No | Output format (default: json) | |
| method | Yes | HTTP method to use | |
| params | No | Optional query parameters as key-value pairs | |
| headers | No | Optional headers as key-value pairs |