api-tools
Read, change, and test the API tools of your AI Agent. An API tool calls an endpoint of your API during a conversation. The alias is actions, so adacli acme actions list works the same as adacli acme api-tools list.
Commands
Examples
Create an API tool that gets the status of an order:
Add the order_id input that the URL uses, and an output that the AI Agent can read. The output key is a JMESPath expression on the response body:
Add a request header:
Run the API tool with a test value:
Turn off an API tool:
Details
testsends the real HTTP request to your endpoint.inputs addfails if an input with the name exists.inputs setfails if no input has the name.- An input type is
text,number,boolean,list, ordict. - An output
--keyis a JMESPath expression. An output with--source status_codemust have the namehttp_status_code. headers setandheaders unsetmatch the header name without regard to case.update --inputs-fileandupdate --outputs-filereplace the full list of inputs or outputs.update --simulation-mode mockmocks the calls of the API tool in a simulation.livesends them for real.
For every option of a command, run it with --help, for example adacli acme api-tools update --help.
Related commands
code-tools: transform the response of an API tool with Python.mcp-tools: connect tools that live on your MCP server.playbooks: run an API tool from a Playbook step.