Execute API call
executeCall one enabled endpoint by slug with args from its schema; charges credits. Get the slug from search_apis. max_credits caps the charge. Omit idempotency_key; repeats replay (idempotent_replay:true). Long results continue via get_call_result.
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": {
"slug": "<slug>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Endpoint args; call describe_api for schema. | |
| slug | Yes | provider/endpoint slug. | |
| loop_id | No | Agent loop ID when policy requires one. | |
| attribution | No | Spend attribution: taskId + feature (+ optional appVersion). | |
| max_credits | No | Most credits this call may charge. | |
| approval_token | No | From an approval error; send its idempotency_key. | |
| idempotency_key | No | Omit; resend a returned key to retry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Raw provider response. | |
| usd_charged | No | USD charged (secret-key auth only). | |
| credits_balance | No | ||
| credits_charged | No | ||
| idempotent_replay | No | Stored replay; no new charge. |