Glean
Add Akto guardrails to Glean agents using Glean's custom tools
Overview
Glean is an enterprise AI platform that lets teams build and deploy AI agents across their organisation. The Akto guardrails integration adds inline security enforcement to any Glean agent - every user message and agent response is evaluated by Akto before reaching the model or the end user, so prompt injection, PII leaks, and policy violations can be blocked in real time.
The integration works through Glean's Custom Tools (formerly Actions). You create a custom tool that calls Akto's guardrails service, then attach it to whichever agents you want to protect.
How It Works
Prerequisites
A Glean account with admin access to the Admin Console
The Akto Guardrails service URL - provisioned and shared by Akto
An Akto API Token - retrieved from Akto Argus → Connectors → Setup Guardrail
Steps to Connect
Part 1 - Create the Custom Tool
Open the Admin Console
Log in to Glean as an admin. Navigate to the Admin Console and go to Tools in the left navigation.

Create a new tool
Click Add, then select Create from Scratch. The custom tool form opens.

Fill in the basic info
Give the tool a clear name (e.g. Akto Guardrail) and an optional description so agents and admins can identify it. Set the Tool Type to Read.

Configure the functionality
Under Functionality, click Get Started, then paste the OpenAPI spec below.
Note
In the script, replace the placeholder URL with your Akto Guardrails service URL.
Your Akto Guardrails service URL is provisioned by Akto. If you do not have it, contact Akto support or retrieve it from your Akto Argus dashboard under Connectors → Setup Guardrail.

Configure authentication
Under Authentication, set the type to API Key, then enter your Akto API Token.
To retrieve your token:
Open your Akto Argus dashboard.
Go to Connectors → Setup Guardrail.
Copy the API token shown on that page.
Paste the token into the API Key field in the Glean tool form.

Configure deployment
Open the Deploy tab and expand the Agents section. Under Allow teammates to add tools to agents, select one of the following:
Enable for all teammates - any teammate can add this tool to agents.
Enable for selected teammates - only the teammates you specify can add this tool to agents.

Save the tool
Click Save. The custom tool is now created and available to attach to agents.
Part 2 - Attach the Tool to an Agent
Repeat this for each agent you want to guardrail.
Open the Agents list
From the Glean home page, click Agents in the navigation.
Select your agent
Find the agent you want to protect and click on it to open its detail view.
Open the agent setup
Click View Agent Setup. The agent configuration panel opens.

Open the Tools panel
In the right-side navigation of the agent setup, click the Tools icon.
Add the Akto Guardrail tool
Click Add, then search for the tool by name (e.g. Akto Guardrail). Alternatively, browse to it under the Custom Tools section.
Select the tool and confirm.

Save the agent
Save the agent configuration. The Akto guardrail is now active on this agent and will evaluate every incoming message before it reaches the model.
Get Support
There are multiple ways to request support from Akto. We are 24X7 available on the following:
In-app
intercomsupport. Message us with your query on intercom in Akto dashboard and someone will reply.Join our discord channel for community support.
Contact support@akto.io for email support.
Contact us here.
Last updated
