You are wiring up tools for a support agent.
The database library exposes one credential with full read/write access.
- AGive the agent the full credential - it might need write access later.
- BGrant a read-only credential scoped to just the tables it needs.
- CKeep the full credential but instruct the agent in the prompt not to write.
- DGive full access and review the logs afterward.
Answer: B
Grant a read-only credential scoped to just the tables it needs.
Why
Least privilege: give the agent only the access its task requires, enforced by the credential - not by a prompt line it can ignore or be tricked past.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path