Skip to main content
tmorgan
Helper ⭐️
Dec 3, 2026 10:03 PM UTC

Suggestions for Improving the GS Admin CLI

I've been using the Gainsight Admin CLI as an MCP server with an AI assistant via Amazon Kiro to build and maintain Rules Engine rules. It works well for discovery, reading rule configs, creating fields and querying data. One theme came up repeatedly, though. Today's tools make it easier to create new rules and templates than to extend an existing rule. That pushes an AI assistant toward extra rules, chains and Data Designer templates when the cleaner design is one rule with more tasks and actions.

Example- I needed to flag events that had been removed from a daily S3 file. The right design was to add these to the existing load rule:

A second source task that reads the target object.
A left-join merge against the S3 task.
Two update actions scoped by criteria.


Because the CLI couldn't add those tasks to the existing rule, the assistant first built a separate rule and a Data Designer template. I had to delete both by hand, then build the tasks in the UI myself.

Requests

Add tasks to an existing multi-task (COMPLEX) rule. Today data-designer add-task only works on standalone Design Templates. set-source only configures a Single Object Flow source, which can't coexist with S3 tasks and merges. Please allow adding an extract or merge task directly to a rule's data setup.


Support S3 date-pattern file names when adding an S3 task. For example Lifecycle_Events_yyyyMMdd, with the date pattern settings the UI offers. Today adding an S3 task with a pattern name fails with "The file cannot be read. Either S3 file not found or the file properties are incorrectly defined."


Add or remove a single mapping on an existing action. edit-action load-to-gainsight replaces the full mapping set. Adding one constant mapping to a working 8-mapping action means rebuilding all of them, lookups and picklists included, which is risky on a production rule. Something like --add-mapping or --remove-mapping would make small changes safe.


Delete commands for rules and object fields. The CLI can create rules and fields but can't delete them, so cleanup always falls to the UI.


Design guidance in the tool descriptions. MCP tool descriptions are what an AI assistant reads to decide what to do. A short note on the rule-creation tools would steer AI assistants toward the cleaner design by default. For example: "Before creating a new rule, check whether the change can be made by adding tasks, criteria or actions to an existing rule that already uses the same object or source."


Smaller items:
query execute has no WHERE filter, so finding specific rows means pulling and sorting everything.
A criteria added with add-criteria saved its field alias as Deleted_in_Staircase__gc__gc, with a doubled suffix. The rule still ran correctly, but it looks unintended.


Why it matters- One rule with multiple tasks means one schedule and one run, with no chain to keep in sync. It also means a missing source file fails the whole rule, instead of letting a downstream rule act on stale data. Making that path as easy as "create a new rule" would help admins and AI assistants build cleaner configurations.

Thanks. The CLI is already very useful, and these changes would close the remaining gaps.