Call Endpoint
call_endpointInvoke a named SocialAPI endpoint with parameters to fetch item or list JSON data and a pagination cursor for next pages.
Instructions
Calls a SocialAPI endpoint by its name and answers its JSON: { data } for one item, { data, pagination } for a list. endpoint is the endpoint's name (such as tiktok_profile), arguments its parameters (such as {"handle": "nike"}). It costs what the endpoint states (1 credit for most); a cached answer and a refused call are free. A list's next page is its pagination.nextCursor given as cursor.
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_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | The endpoint's name, such as "tiktok_post_comments". | |
| arguments | No | Its parameters, such as {"url": "https://www.tiktok.com/@nike/video/7351…"}. |