Call an agent's tools
call_agent_toolsRun 1 to 12 of an agent's own tools now, in order, as the agent: e.g. decide to open or close a perp, set_strategy, set_quotes, get_account. Each answer comes back in the same order. Orders go through the agent's limits and the venue, and are recorded like the agent's own. get_account (as last read; input fresh: true reads it now) and get_strategy alone answer at once. A call still running after about 25 s returns a request id for get_call_result. Needs an access key that may act. On an agent your own AI or code runs, data reads count against a daily allowance (more with trade fees paid; past it, credits); trades and the agent's own account never count. A 402 answer means the day's reads are used: send trades alone, and tell the person how to add credits as the answer says (USDG on Robinhood Chain to AINDEX's credits address, or the agent's own wallet tops them up). Ask the person before placing a trade or changing a strategy for them.
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": {
"agent": "<agent>",
"calls": "<calls>"
},
"name": "call_agent_tools"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | ||
| calls | Yes |