fetch_data
Make HTTP requests to an external API by specifying an endpoint path and an optional HTTP method. Retrieve data from any API endpoint.
Instructions
Placeholder for a tool that calls an external API. Replace the handler with your own API logic.
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": {
"endpoint": "<endpoint>"
},
"name": "fetch_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method | GET |
| endpoint | Yes | API endpoint path (e.g., /users/123) |