Call Service
call_serviceInvokes a discovered API service via AgentClear's metered proxy and charges the per-call price to your prepaid balance; discover the service first to get its service ID and payload schema.
Instructions
Call an API service through AgentClear's metered proxy. You'll be charged the per-call price from your prepaid balance. Use 'discover_services' first to find the service_id. The payload varies by service — discovery results include expected input schemas.
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_id": "<service_id>",
"payload": "<payload>"
},
"name": "call_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | The request payload to send to the upstream API. Structure depends on the service. | |
| service_id | Yes | The service ID returned by discover_services, e.g. 'openweathermap', 'deepl-translate' |