rest_call
Send RESTful API calls to external endpoints for data retrieval or updates. Supports GET, POST, PUT, HEAD methods with custom headers and body.
Instructions
Make a RESTful API call to external endpoints for data retrieval or updates.
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": {
"url": "<url>",
"method": "<method>",
"body": "<body>"
},
"name": "rest_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | API endpoint URL. | |
| method | Yes | HTTP method. | POST |
| headers | No | Request headers (JSON format) | |
| body | Yes | Request body (string) |