调用接口 / Call an endpoint
call调用一个接口取数据,成功才扣费,返回里写明扣了多少。Call an endpoint; charged only on success, and the answer says what it cost.
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": "call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | 接口参数,见 describe。翻页时传 cursor / Parameters, see describe; pass cursor for the next page | |
| endpoint | Yes | 接口 ID | |
| max_price | No | 这次最多愿意付多少美元,超过就不调用,例如 "0.01" / Refuse the call if it costs more than this (USD) | |
| idempotency_key | No | 重试同一次调用时传同一个值,不会重复扣费 / Same value on a retry is never charged twice |