Skip to content

Newark, Delaware

AI

Giving an AI agent access to business tools

Tool calling expands both capability and blast radius. Scope credentials, validate inputs and require human approval for consequential actions.

September 12, 20267 min readStarlink Nexus AI Practice
Giving an AI agent access to business tools

Treat tool access as privilege

When integrating an AI agent into your business environment, the decision to grant access to operational tools is not trivial. Each tool—whether it’s a ticketing system, password reset utility, or email gateway—should be treated as a privilege, not a default. The AI agent must be subject to the same rigorous authorisation controls as any human user or service account. This means assigning access based on the principle of least privilege, ensuring the agent can only perform actions that are explicitly required for its intended tasks.

A common misstep is to assign broad administrator credentials to the agent for the sake of expedience, especially during demonstrations or proofs of concept. This approach exposes the organisation to unnecessary risk. For example, if the agent is granted blanket admin rights to a helpdesk platform, it could inadvertently close critical incidents or alter user permissions without oversight. Instead, create a dedicated service account for the AI agent, and restrict its permissions to a named ticket queue, such as AI-Automation-Requests. This queue should be limited to specific ticket types and actions, with all other capabilities disabled.

Define the functions exposed to the agent with explicit parameters. For instance, if the agent can create tickets, specify the allowed fields—such as summary, description, and priority—and validate these values on the server side. Do not rely on the AI model to enforce business rules or authorisation policies. The model is a tool consumer, not an access control system. After implementation, a review of the agent’s actions should reveal only permitted operations, with no evidence of unauthorised access or privilege escalation. Avoid shortcuts that bypass these controls, as they often lead to silent failures or security breaches that are difficult to trace.

Require approval for external actions

The distinction between reversible and irreversible actions is critical when delegating authority to an AI agent. Reading a record from a database or viewing a report can often be undone or simply logged. However, actions such as sending an external email, deleting a record, or modifying a firewall rule have lasting consequences. These operations should always require explicit approval from a human operator.

To implement this, configure the AI agent to submit requests for consequential operations to a named approval queue—such as Change-Approvals—within your ITSM platform. Each request should include the action, affected resources, and the context in which the request was generated. The approval workflow must log the request, the identity of the approver, and the final result. For example, if the agent proposes to delete a user account, the request should be routed to an authorised manager for confirmation, and the outcome recorded in the audit log.

Failure to require approval can result in the agent executing destructive commands based on ambiguous prompts or misinterpreted instructions. In one scenario, a poorly scoped prompt might lead the agent to disable a VLAN serving critical infrastructure, causing a service outage. Requiring approval introduces a checkpoint, allowing human review before any irreversible change is made. After implementation, the audit trail should show a clear sequence of request, approval, and result for every high-impact action. Avoid delegating final authority to the agent for these operations, as this removes a vital layer of oversight and accountability.

Design explicit tool interfaces and parameter validation

The interface between the AI agent and your business tools must be tightly controlled. Rather than exposing generic APIs or broad endpoints, design explicit tool interfaces that accept only the parameters necessary for each action. For instance, if the agent is permitted to reset passwords, the endpoint should require the username, a valid reason code, and a confirmation token. All inputs must be validated on the server side before any action is executed.

A typical failure mode occurs when the agent is allowed to pass arbitrary parameters to backend systems. This can result in malformed requests, unintended data exposure, or even command injection. For example, if the password reset API does not validate the username format, the agent might attempt to reset system accounts or service credentials, leading to outages or security incidents. To prevent this, implement strict input validation and reject any request that does not conform to the expected schema.

After deployment, review logs for evidence of rejected or malformed requests. A well-designed interface will show only valid, authorised actions, with all other attempts blocked and logged. Avoid exposing catch-all endpoints or APIs that accept unfiltered data from the agent, as these are frequent sources of security and operational failures.

Monitor and audit agent activity in real time

Continuous monitoring and auditing of the AI agent’s actions are essential for maintaining operational integrity. Every interaction with business tools—whether it’s creating a ticket, updating a record, or sending a notification—should be logged in detail. Use a centralised logging system to capture the agent’s actions, including timestamps, parameters, and the outcome of each operation.

Set up alert thresholds for anomalous activity. For example, if the agent creates more than a set number of tickets in the AI-Automation-Requests queue within an hour, trigger an alert for investigation. Similarly, configure alerts for repeated failed attempts to access restricted resources or for any action that deviates from established patterns. These thresholds act as early warning systems for misconfiguration, prompt injection, or unintended behaviour.

A common failure mode is the absence of comprehensive logging, which makes it difficult to reconstruct events after an incident. If the agent modifies a firewall rule outside of an approved change window and there is no record, diagnosing the root cause becomes nearly impossible. Good practice is to review audit logs regularly and test alerting mechanisms to ensure they function as intended. Avoid relying solely on the agent’s internal logs or assuming that upstream systems will capture all relevant activity.

Run prompt-injection and adversarial testing for tool calls

AI agents are susceptible to prompt-injection attacks, where malicious or poorly formatted input causes the agent to perform unintended actions. Documents, emails, or chat messages containing embedded instructions are untrusted data and must be treated as potential attack vectors. Before deploying the agent in production, conduct prompt-injection tests for every tool call it can make.

Develop a suite of test cases that simulate adversarial input, such as a PDF containing hidden commands or a support ticket with embedded script tags. Attempt to trick the agent into executing actions that violate business policy, such as escalating privileges or bypassing approval workflows. Monitor the agent’s responses and verify that it adheres strictly to authorisation rules and parameter validation.

A specific failure mode occurs when the agent interprets a user-uploaded document as a legitimate instruction, leading to unauthorised actions. For example, a cleverly crafted email might cause the agent to reset a password or send sensitive data to an external address. Good practice is to sanitise all input, strip out embedded commands, and restrict the agent’s ability to interpret freeform text as executable instructions. After testing, there should be no evidence of policy violations or unauthorised tool calls. Avoid deploying the agent without comprehensive adversarial testing, as this leaves the system vulnerable to both accidental and deliberate misuse.

Implement granular network segmentation and firewall controls

AI agents require network access to interact with business tools, but this connectivity must be tightly segmented. Assign the agent to a dedicated VLAN, such as AI-Agent-Network, with access restricted to only the necessary endpoints. Use firewall rules to limit outbound and inbound traffic, specifying allowed protocols, ports, and destination addresses.

A frequent misconfiguration is placing the agent on a general-purpose network segment with broad access to internal resources. This increases the risk that a compromised agent could move laterally or access sensitive systems beyond its remit. For instance, if the agent’s VLAN is not isolated, it might discover and interact with backup servers, domain controllers, or other critical infrastructure. To prevent this, review firewall logs for unauthorised connection attempts and adjust rules to block all unnecessary traffic.

After implementation, the agent should only be able to reach designated tool endpoints, with all other network traffic denied by default. Regularly review and update firewall rules to accommodate changes in the agent’s authorised toolset. Avoid the temptation to open wide network ranges for convenience, as this undermines segmentation and exposes the organisation to avoidable risk.

Enforce backup and recovery for agent-driven changes

Any action performed by the AI agent that alters business data or system configurations must be covered by a reliable backup and recovery process. Schedule regular backup jobs for all affected systems, including ticketing databases, user directories, and configuration repositories. Each backup job should be tested for completeness and the ability to restore to a known good state.

A specific failure mode is the agent making bulk changes—such as closing multiple tickets or modifying access rights—without a recent backup. If an error occurs or the agent misinterprets a prompt, reverting the changes may be impossible without a valid restore point. For example, if the agent accidentally deletes user accounts from Active Directory, a tested backup job allows for rapid recovery, minimising downtime and data loss.

Good practice is to tie backup schedules to the agent’s operational windows. If the agent is authorised to make changes during a defined change window, ensure that a backup is taken immediately beforehand. After a change, verify the integrity of affected systems and document any recovery actions taken. Avoid relying on manual backups or ad-hoc snapshots, as these are often incomplete and may not support timely restoration after an incident.

Define and enforce change windows for high-impact actions

To maintain control over critical operations, restrict the AI agent’s authority to perform high-impact actions—such as network rule changes, mass user updates, or system restarts—to predefined change windows. These windows should be scheduled during periods of low business activity and communicated to all relevant stakeholders.

Configure the agent to check the current time and date against an approved change window list before executing any high-impact operation. For example, if firewall rules can only be modified between 02:00 and 04:00 on Sundays, the agent must refuse to process such requests outside this interval. Log all attempted actions, both successful and denied, for later review.

A failure mode arises when the agent is allowed to make critical changes at any time, increasing the risk of disruption during peak hours. For instance, an unscheduled VLAN reconfiguration could disconnect users during business-critical operations. After enforcing change windows, audit logs should show that all high-impact actions occur only within approved periods, with no exceptions. Avoid granting the agent unrestricted change authority, as this removes a key safeguard against operational errors and unauthorised activity.

Topics

#AI

Starlink Nexus AI practice

If this reflects a problem you are dealing with, we can review your environment and tell you what we would change first - including if the answer is nothing.

Start a conversation

Next step

Let's scope it properly.

A 30-minute call is usually enough to tell whether we are the right fit. No pitch deck, no pressure.