fetch_api
Fetch structured JSON/XML data from any API endpoint. Best for REST APIs and data feeds. Cost: 0.01 USDC
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>"
},
"name": "fetch_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The API endpoint URL to fetch | |
| body | No | Optional request body for POST/PUT | |
| method | No | GET | |
| headers | No | Optional HTTP headers |