wenjin272 opened a new issue, #1399: URL: https://github.com/apache/flink-agents/issues/1399
### Search before asking - [x] I searched the issues and found no matching report. ### Description Model-generated tool calls are resolved against resources registered on the Agent without checking whether the originating model enabled those tools or sub-agents. A model configured with only one tool can therefore invoke another registered resource if it returns that resource's name. Enabling Skills also automatically exposes BashTool, even when the model's `tools` list does not include `bash`. Tool execution should respect the originating model's callable set. Calls outside that set should return a tool error while other valid calls in the same response continue. BashTool should remain built in, but models should explicitly enable it with `tools=["bash"]`; enabling Skills should automatically expose only `load_skill`. ### How to reproduce 1. Register two tools, `lookup` and `other`, on an Agent. 2. Configure its chat model with `tools=["lookup"]`. 3. Have a stub model return a tool call for `other`. 4. Observe that `other` executes despite being absent from the model's configuration. Separately, enable Skills without listing `bash` in `tools` and inspect the tools exposed to the model: `bash` is added automatically. ### Version and environment Current main, Java and Python implementations. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
