sales
Gainsight MCP, CLI, and Lua Integration for AI Agents
Gainsight integration docs for AI agents: MCP gateway setup, Gainsight CLI commands, Lua API reference, credentials, and function schemas.
7 functions 7 read 0 write Manual OAuth token auth
Gainsight for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
gainsight- route_slug
gainsight- package
gainsight- auth_strategy
oauth2_manual_tokenManual OAuth token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Gainsight CLIHeadless setup and direct function calls. Gainsight MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Gainsight MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Gainsight.
Claude Code Gainsight MCP setup for Claude Code. Cursor Gainsight MCP setup for Cursor. Codex Gainsight MCP setup for Codex. OpenAI Agents Gainsight MCP setup for OpenAI Agents SDK. Claude Agent SDK Gainsight MCP setup for Claude Agent SDK. Vercel AI SDK Gainsight MCP setup for Vercel AI SDK. LangChain Gainsight MCP setup for LangChain. LangGraph Gainsight MCP setup for LangGraph. CrewAI Gainsight MCP setup for CrewAI. MCP clients Gainsight MCP setup for Generic MCP Clients.
Gainsight CLI Matrix
Use these pages for direct Gainsight CLI workflows in scripts, CI, cron, and agent wrappers.
CI Gainsight CLI for CI. Cron Jobs Gainsight CLI for cron jobs. Shell Scripts Gainsight CLI for shell scripts. Headless Automation Gainsight CLI for headless automation. Coding Agents Gainsight CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
gainsight.gainsight_list_companies | Read read | 3 | List companies from Gainsight. Returns company details including name, industry, ARR, health score, and lifecycle stage. |
gainsight.gainsight_get_company | Read read | 1 | Get detailed information about a specific company in Gainsight, including health score, ARR, lifecycle stage, and CSM assignment. |
gainsight.gainsight_list_users | Read read | 3 | List users in the Gainsight tenant. Returns user details including name, email, role, and last active date. |
gainsight.gainsight_get_user | Read read | 1 | Get detailed information about a specific user in Gainsight, including role, assigned accounts, and activity data. |
gainsight.gainsight_list_surveys | Read read | 3 | List surveys from Gainsight. Returns survey details including name, type, status, response count, and creation date. |
gainsight.gainsight_get_survey | Read read | 1 | Get detailed information about a specific survey in Gainsight, including questions, response statistics, and distribution settings. |
gainsight.gainsight_get_current_user | Read read | 0 | Get the currently authenticated Gainsight user profile. Useful for verifying credentials and understanding whose data is being accessed. |