Skip to main content

Glean A2A server

The Glean A2A server lets external AI platforms invoke Glean Assistant as a remote agent using the open Agent2Agent (A2A) protocol. Once an administrator turns it on, A2A-capable platforms such as Google Gemini Enterprise and Microsoft Copilot Studio can discover Glean Assistant and send it questions on behalf of your users — so people can ask Glean from whichever AI surface their organization standardizes on.

Every request runs as the individual user, under the same permissions and content controls that apply in Glean. A user asking Glean a question through Gemini gets a similar answer to the one they'd get in Glean itself.

To turn on the A2A server and connect an external platform, see Configure the Glean A2A server.

How it works

Diagram of the Glean A2A flow: an A2A client agent such as Gemini Enterprise discovers the Glean agent card, sends a task or prompt, and streams messages, while the Glean A2A server routes the request to Glean Assistant and streams updates back until a final answer or artifact is returned

How an external A2A client agent discovers and communicates with the Glean A2A server

The A2A server exposes Glean Assistant as a single remote agent:

  • Agent discovery: Glean publishes a per-deployment agent card at /.well-known/agent-card.json on your Glean instance. External A2A clients use this card to discover the agent's endpoint, capabilities, and authentication requirements. The exact agent card URL for your deployment is shown on the A2A Server admin page.
  • Messaging: The agent card advertises a JSON-RPC endpoint that supports the standard A2A methods, including message/send and message/stream (which delivers task status updates and the final answer over Server-Sent Events), plus tasks/get and tasks/cancel for task management.
  • Assistant routing: Glean Assistant handles each incoming request and routes it to enterprise search, document retrieval, or any agents your organization has enabled in Glean Chat. Multi-turn conversations are supported: a client can continue a session across messages, and the conversation is saved to the user's Glean Chat history.
tip

You can also expose an individual Glean agent directly over A2A, with its own agent card and endpoint. See Expose Glean agents over A2A.

Authentication and permissions

The A2A server uses the same Glean OAuth authorization server as the Glean MCP server:

  • The agent card advertises an OAuth 2.0 authorization code flow pointing at your Glean deployment's authorization and token endpoints.
  • External A2A clients authenticate using dynamic client registration with PKCE.
  • Every request runs on behalf of an authenticated Glean user. Responses respect that user's document permissions, and tasks are only visible to the user who created them.
  • Users must have access to Glean Assistant to use Glean through A2A. Users without Assistant access receive an authorization error.

You don't need to provision any additional credentials or service accounts in Glean.

Limitations

  • The A2A server exposes Glean Assistant as a single agent. To expose an individual Glean agent directly over A2A — with its own agent card and endpoint — see Expose Glean agents over A2A.
  • The A2A server is inbound only: external platforms can invoke Glean, but Glean Assistant can't call external A2A agents. If you're interested in this capability, please reach out to your account team.
  • Only the text parts of an A2A message are used as the prompt. File and data attachments are currently ignored; support for them is planned for a future release.

FAQ

See also