Guide / Every rule
AI agent without a limit on model calls
The check agents/no-model-call-limit, in the group AI agents.
Why it matters
An agent calls the model again after every round of tool calls. With no limit on the number of calls, a model that keeps asking for tools runs, and is paid for, until something else stops it.
How to fix it
Set the maximum number of model calls in the Limits group of the agent.
Where you see it
The Problems tab of the BPMN editor lists it, the Agents tab shows it on the agent it belongs to, and penstock check reports it as agents/no-model-call-limit. It runs on .bpmn files and is free.
Rule details
| Id | agents/no-model-call-limit |
| Group | AI agents |
| Level | Advice: it works, and reads or runs better without it |
Read more: AI agents of Camunda 8. All rules: Every rule.