A tool call is a structured request from an AI model or agent to run an external function, API or service on its behalf, such as querying a database or sending an email. Attackers use prompt injection to trigger unintended calls, so defenders scope tool permissions, validate arguments, require approval for sensitive actions and log every call.
What a tool call is in agentic systems
A tool call is the execution boundary between an AI model’s text generation and an external action. It turns a model intention into a structured request that another system can inspect, allow, deny, or complete. That boundary matters because the risk is not just what the model says, but what it is permitted to do on behalf of a user or workflow.
In practice, tool calls are where autonomy becomes operational. Once an agent can query data, send messages, create records, or invoke services, the security model must treat each call as a privileged action, not just a conversational output.
Why tool calls need tight authorisation
Tool calls are dangerous when the model can choose tools too freely, pass unsafe arguments, or inherit permissions that are broader than the task requires. Prompt injection often aims to steer the model into making an unintended call, which is why defenders scope tool access narrowly and require explicit approval for sensitive actions.
Good control design treats the tool registry, argument schema, and runtime policy as separate checks. A valid-looking call can still be malicious if the model was manipulated, the destination was not intended, or the parameters encode an action the user never approved.
For a broader control perspective on agent runtime enforcement, see the Agent Controls and Monitoring Guide, which covers guardrails, approval gates, containment and telemetry.
Validation, approval and mediation at the call boundary
The safest pattern is complete mediation: every tool call is checked at runtime, not only during prompt construction or initial task setup. That means the system should validate arguments, confirm the tool is allowed for the current context, and distinguish low-risk reads from higher-risk writes or side effects.
Approval becomes especially important for actions that can move money, change records, expose data, or trigger downstream automation. The key design principle is that the model may propose an action, but policy must decide whether the action is actually executed.
For a practical deep dive into per-call enforcement, the Tool-Call Security for AI Agents guide explains where the control point belongs and how to evaluate each call before execution.
Logging, traceability and post-action review
Because tool calls are executable events, they need audit-quality logging. Good logs should show who initiated the request, which tool was selected, what arguments were supplied, whether approval was required, and what outcome followed. That record is essential for incident response, abuse investigation and policy tuning.
Traceability also helps distinguish attempted action from completed action. In agentic environments, that distinction matters because a model may generate several candidate calls, some of which are blocked, altered or partially executed. Without clear logging, defenders cannot reliably reconstruct intent, control decisions or side effects.
Use a dedicated schema for this kind of evidence. The AI Agent Audit Log Schema Template is useful when you need consistent fields for tool calls, delegation and policy decisions, and the Agent Activity Timeline Reconstruction from Tool Calls and Identity Logs guide shows how responders can rebuild what actually happened.
In parallel, external controls should map to the same boundary. NIST’s Security and Privacy Controls and OWASP’s API Security Top 10 both reinforce the need for controlled execution, strong authorisation and careful handling of service interfaces.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-2 — Event Logging | Tool calls are auditable security events that should be recorded. |
| AC-6 — Least Privilege | Tool permissions should be limited to the minimum needed for the task. | |
| IA-2 — Identification and Authentication (Organizational Users) | Approved tool actions depend on knowing which user or operator initiated them. | |
| Recommendation — Log each tool call with actor, tool, arguments, decision and outcome. Restrict agent tool access to the minimum permissions each workflow needs. Bind sensitive tool actions to a verified initiating principal before execution. | ||
| OWASP API Security Top 10 | API5 — Broken Function Level Authorization | Tool calls often expose privileged functions that require server-side authorisation. |
| API2 — Broken Authentication | Tool-call pathways fail when the system cannot trust who is invoking the action. | |
| Recommendation — Enforce server-side function-level checks before any tool-driven action executes. Verify caller identity and token validity before accepting a tool invocation. | ||
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org