Skip to main content

Agents API

The Agents API lets you discover Glean agents, inspect their input and output schemas, and execute agent runs. Use it to embed Glean's agentic capabilities directly into your own applications and workflows.

Use Cases

Agent Discovery

Search for agents available to the authenticated user and retrieve their configuration to decide which agent to invoke.

Schema Inspection

Fetch an agent’s input and output schemas so you can build type-safe integrations and validate payloads before invoking a run.

Agent Execution

Create agent runs to execute Glean agents programmatically and incorporate their results into downstream automation.

For error responses, see Platform API Errors for the shared ProblemDetail code reference and remediation guidance.