How to use this checklist
Work through each section with the agent's design in front of you: its instructions, its tool list, the credentials it uses and the data it can reach. Each item can be answered yes or no. A 'no' is not automatically a blocker, but it should become a written decision with an owner, not an oversight.
The checklist assumes a task-focused agent: a model that can call a defined set of tools inside your application. It applies whichever model provider you use, because these controls live in your code and infrastructure, not in the model.
Scope and tool permissions
- The agent's purpose is written down in one paragraph, including what it must not do.
- Every tool is needed for that purpose. Tools added 'just in case' have been removed.
- Each tool uses its own credential with the narrowest scope that works: read-only where reading is enough, limited to the records and environments it needs.
- Tools that change or delete data are separate from tools that read it, so each can carry its own controls.
- Tool arguments are validated in code against a schema and your business rules before anything runs.
- A test or demo deployment cannot reach production data or systems.
Untrusted input and prompt injection
- User messages, retrieved documents, web pages, emails and tool results are all treated as untrusted data.
- Instructions that appear inside data are never followed as commands. Tool output goes back to the model as a tool result, clearly separated from your instructions.
- You have tested the agent with inputs that try to override its instructions, reveal its system prompt or trigger tools it should not use.
- If an injection succeeded, the damage would be limited by permissions and approvals, not by the prompt alone.
- Model output is validated before it is used in a database query, a shell command, a URL or a page other people will see.
Human approval for consequential actions
| Action type | Examples | Minimum control |
|---|---|---|
| Read-only | Look up an order, search the help centre | Runs automatically and is logged |
| Reversible change | Save a draft reply, add an internal note | Runs within limits, is logged and is easy to undo |
| Consequential or irreversible | Send an email, issue a refund, delete data, change infrastructure | Explicit human approval every time |
- The approval screen shows exactly what will happen: the action, its target and its values, not a summary written by the model.
- Approval is enforced in code. The tool cannot run without a recorded approval, whatever the model says.
- The approver can reject or edit the action, and a rejection goes back to the agent as a result instead of triggering an automatic retry.
- A named person or team owns approvals and handles the escalations the agent cannot resolve.
Budgets, rate limits and runaway loops
- Each run has a maximum number of steps, model calls and tool calls, and a time limit.
- Spending limits or usage alerts are set with your model provider where it offers them, and in your own metering.
- Repeated identical tool calls are detected and stopped.
- Retries use backoff, cap the number of attempts and only repeat operations that are safe to repeat.
- Write operations are idempotent, for example through an idempotency key, so a retry cannot apply the same change twice.
- When a limit is reached, the agent stops cleanly and tells the user or operator what happened.
{
"agent": "bw-order-helper",
"limits": { "max_steps": 8, "max_tool_calls": 10, "max_run_seconds": 90 },
"tools": {
"lookup_order": { "access": "read", "approval": "none" },
"save_draft_reply": { "access": "draft", "approval": "none" },
"issue_refund": { "access": "write", "approval": "human", "max_amount": 50 }
}
}An illustrative policy for a support agent at Brightwater Outfitters, a fictional shop. The numbers are examples, not recommendations; set your own from testing.
Logging and monitoring without secrets
- Every run records the request, each tool call with its arguments and outcome, approvals, errors and the final result.
- API keys, tokens, passwords and payment card details are never written to logs, and personal data is minimised or masked.
- Logs have a retention period and access controls that suit the data they contain.
- Each run has an ID that links all of its log entries, so you can reconstruct what happened.
- Alerts fire on error spikes, unusual tool usage and spending above what you expect.
Evaluation before launch
- An evaluation set covers typical requests, unclear requests, out-of-scope requests and adversarial inputs.
- Each case states the expected behaviour, including when the agent should refuse or hand over to a person.
- You have measured task completion and correct tool selection on that set, and recorded the results with the prompt, model and tool versions used.
- The evaluation runs again before every change to the prompt, model, tools or retrieval settings.
Rollback and incident response
- Prompts, tool definitions and configuration are versioned alongside the code.
- You can switch the agent off, or fall back to a non-agent path, without a code deployment, for example with a feature flag.
- You can revoke the agent's credentials quickly.
- A written plan says what happens if the agent takes a wrong action: who is told, how the action is reversed and how affected users are contacted.
- The launch is staged: internal users or a small group first, with approval rules kept strict until the results justify relaxing them.
For a structured view of the risks behind these checks, see the OWASP Top 10 for LLM Applications (opens in a new tab). To see where validation and approval sit in the agent's control flow, see the tool-calling loop diagram.
Related lessons
- Choosing the Right Use Case: Agent or Conventional Automation?AI Agent Development
- Agent Components: Model, Instructions, Tools, State and RuntimeAI Agent Development
- Test, Improve and Finish Your Claude AgentBuild Your First Claude AI Agent
- Test, Improve and Finish Your Gemini AgentBuild Your First Google Gemini AI Agent
- Written by
- PromptFable Editorial
- Last updated 13 Nov 2026
- Review
- Not yet reviewed
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.