---
title: Configure the on-site agent
published: true
access: public
index: 5
---

# Configure the on-site agent

Let people ask questions about your published content from your Glue website.

{% stepper %}
{% step %}
### Enable website chat

In **Settings → Channels**, open the **Site** status menu and choose **Settings**. Under **Agent**, set **On-site agent** to
**Enable**, then choose **Save changes**.
{% endstep %}
{% step %}
### Choose the model and review spending

Open **On-site agent → Settings** to choose the **Default model**. Review the
project’s **Monthly spend limit** under **Usage**.
{% endstep %}
{% step %}
### Choose what the agent can use

The agent reads your published pages. Under **On-site agent → Settings → Tools**,
choose whether it can also use connected sources, approved learnings, and
content tools declared in the published release’s `glue.json`. All three start
selected.

To choose a repository or the read-only tools available through an integration,
[connect a context source](../tools/connect-a-context-source.md).

Choose **Save changes**. New answers use your saved selections. Earlier answers
that used a source or learning you removed become unavailable.
{% endstep %}
{% endstepper %}

The agent answers only from pages the person asking may read. A restricted
page requires a grant or project membership, including when its tier is free.

## How the hosted agent uses content tools

When you enable the lookups for a hosted agent, it can run them with their
filters and use `query` for a tool declared with `search`. It then reads
the pages it needs before answering from them. Website chat can use them
while the MCP channel is off.

- A lookup returns only pages the agent may already use for the person
  asking. It never returns hidden, MCP-only or unpublished pages, or restricted
  pages they have no grant for.
- A lookup returns each page's address, title, path and declared fields, never
  its text.
- A lookup returns at most 50 pages and stops at a size limit. The agent asks
  for more with `nextCursor`.
- Each lookup counts as one of the eight reads the agent can make for an
  answer. It makes no extra model call.
- Website visitors see each lookup as **Look up** in the chat's activity.

A content tool over a folder of MCP-only pages returns nothing to the hosted
agent. Callers reach those pages through your MCP tools.

For the MCP channel, [choose what Ask agent uses](../tools/offer-mcp-tools.md#choose-what-ask-agent-uses).
