# Making an application operable by an AI agent

> Source: <https://dev.to/mkjsix/making-an-application-operable-by-an-ai-agent-45g8>
> Published: 2026-09-03 08:07:51+00:00

getting an AI agent to operate RESTHeart through the exact API and schema every other client already relies on, with no code written specifically for the AI.

The usual way to give an agent access to an application adds a layer: custom endpoints, logic rewritten so a model can follow it. Two issues he opened on the RESTHeart repo, #615 and #616, skip that layer entirely. The agent discovers what it can do by reading the schema the API already enforces. A write gets validated against that schema before it reaches the database. A business rule, a warehouse shortage calculation, stays a MongoDB aggregation written by whoever understands the domain; the agent calls it directly.

The permissions never change: the ACLs already governing every other client apply to the agent too.
