---
title: "Control connection tool access"
description: "Set what a connection allows, then choose the accounts and tools each agent can use."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.aiagent.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Control connection tool access

Two settings decide what an agent can do with a connected account:

1. **The connection** sets a ceiling. It lists which tools any agent may ever call on that account.
2. **The agent** chooses which accounts to use and which of the permitted tools to keep. An agent can narrow the ceiling but never go past it.

> **Where to find it**
>
> The ceiling is in the detail dialog of a card on **Agents**, **Connections**.
> The agent setting is in the **Connections** section under **Spec**, in the
> right panel of the agent page.

## The three tool levels

- **Reads** — Retrieve information without changing the provider. Reads are always on and
  run without approval.
- **Actions** — Create, send, or update information. All Actions are on by default, and each
  one waits for your approval.
- **Destructive** — Delete or irreversibly change information. These tools are off by default.
  Once you turn one on, it still waits for your approval.

AI Agent sorts each tool by the verbs in its name. A tool that it cannot sort counts as an Action, so it needs approval. Do not widen access only to make a failing task pass. Confirm what the tool does first.

1. **Set what a connection allows**

   1. In **Connections**, click the provider's card.
   2. In **Tool permissions**, tick the Actions and Destructive tools that agents may use. The checkbox in each group's header toggles the whole group.
   3. Click **Save permissions**. A message says **Tool permissions saved**.

   ![The HubSpot detail dialog with Tool permissions and the Save permissions button.](/screenshots/connections/toolaccess-ceiling.webp)

   A group that has no tools does not appear. HubSpot, for example, shows **Reads** and **Actions** only. A provider that has Destructive tools also shows a **Destructive** group, and every tool in it starts off.

   **Tool permissions** appears for most providers. A provider that AI Agent connects through its own link, such as GitHub, PostHog, or Stripe, shows **What it can do**, a read-only list, in its place. You can change permissions only on a connection you manage. A teammate's personal connection shows **Personal to a teammate**.
2. **Choose accounts and tools for one agent**

   An agent uses one active account for each provider. Connecting an account does not attach it.

   1. On the agent page, scroll the right panel to **Connections** under **Spec**, then click **Attach**.
   2. In **Attach connection accounts**, choose one account for each provider. A second choice for the same provider replaces the first.
   3. Click **Stage**. The button shows the count, for example **Stage (1)**.

   ![The Attach connection accounts dialog with one account selected and the Stage button.](/screenshots/connections/toolaccess-agent-attach.webp)

   4. To limit the tools, click **All tools** on the account. Untick the tools this agent must not call.
   5. In the **Unsaved changes** bar, click **Save**.

   ![A staged Stripe account in the agent panel with its tool list open.](/screenshots/connections/toolaccess-agent-tools.webp)

   The list shows only the tools that the connection permits. A **Destructive** group appears only after someone turns those tools on for the connection. **Select all** returns the agent to every permitted tool, and the button then reads **All tools** again.

   When a provider has several accounts, the agent needs one named account. Pick it here.
3. **Test the access**

   1. Ask the agent for a read, such as listing a few records, and check that the data comes from the account you chose.
   2. Ask for an action. Inspect the proposed account, arguments, and effect on the approval card before you decide.

> **Expand access deliberately**
>
> A failed task is not evidence that an agent needs broader permissions.
> Identify the missing account or tool and check its effect first.

## Related

- [Connect and disconnect accounts](/connections/connect-and-disconnect)
- [Connection access and approvals](/security/connections-and-approvals)
- [Agents](/core-concepts/agents)
- [Troubleshoot connections](/troubleshooting/connections)

Source: https://docs.aiagent.app/connections/tool-access/index.mdx
