call_api
Send HTTP requests to a specific service endpoint. Specify service, path, method, headers, body, and environment to call microservices like os-order directly.
Instructions
Direct API call to a specific service endpoint.
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": {
"service": "<service>",
"endpoint": "<endpoint>"
},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| method | No | GET | |
| headers | No | ||
| service | Yes | ||
| endpoint | Yes | API endpoint path | |
| merchantId | No | ||
| environment | No | qa |