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.

MCP: services as AI tools, through the same pipeline At startup every @ChenileMCP operation becomes a tool, and a polymorphic operation becomes one tool per variant, such as one per workflow event or named query. An AI agent lists the tools and calls one over Streamable HTTP with the user's token and tenant. The tool callback turns the arguments into a ChenileExchange and runs the full pipeline, security included, so the agent has exactly the user's rights. The result is the response payload, or a tool error. A variant shows a call refused for a missing authority. AI agentan MCP client MCP endpointStreamable HTTP · /mcp tools (built at startup) issueProcessById_assign issueProcessById_resolve issueProcessById_close mcpQuerySearch_issues mcpQuerySearch_openIssues from @ChenileMCP operations ChenileToolCallbackarguments → ChenileExchange chenile-highwayevery interceptor, security too issue workflowprocessById(id, eventID, …) ChenileMCPInitializerone tool per operation or variant polymorph providersevents · named queries result: the GenericResponse payload, or a tool error
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.