Skip to content
Middle+0 views

How was the whitelist of tools determined for each step of the agent?

Practice

Asked at

AI answer

I would build the whitelist around the agent’s scenarios and stages, rather than allowing all available tools at once:

  1. Break the scenario into steps and determine what the agent needs to do at each one.
  2. For each step, select the smallest set of necessary tools and explicitly define their purpose and input schema.
  3. Restrict access according to the principle of least privilege: for example, separate read access from write access, and require a separate permission or confirmation for potentially irreversible actions.
  4. Validate arguments and permissions not only in the model interface, but also on the executor side; invalid or disallowed calls should be safely rejected.
  5. Test allowed and disallowed scenarios, then log calls and review the list based on operational experience.

This keeps the whitelist tied to real tasks instead of turning it into general access to every system capability.