Implementing Permission-Gated Tool Calling in Python Agents - TrendCloud