How it works · AI tools (MCP)
An agent is one more caller
Mark an operation and an AI agent can call it as a tool, with a precise name and schema. The call carries the user's token and tenant and runs through the same pipeline as the UI, so the agent has exactly the user's rights and gets the same errors.
tool
scenario
view
Step 1
Exchange
Payload
No glue code
Tools are generated from the operations you already have: the contract name and description, a JSON schema from the types, and one tool per workflow event or named query.
The same rules
A tool call is a ChenileExchange. Tenant, validation and security interceptors run exactly as for HTTP, so listing a tool never grants the right to call it.
Answers an agent can use
A success returns the payload, including the workflow actions now allowed. A failure returns the same error the UI would show, as a tool error.