UiPath Insights
Use uip insights for job monitoring, monitoring-scope discovery, read-only alert inspection, and Insights RBAC reads. Read the guide for the task before running commands.
When to Use This Skill
- Job health, success rate, failure count, or processing time across a tenant, folder, or process
- Job trends over time, or a comparison between two periods
- Which processes fail most, and which failure reasons recur
- Whether jobs are stuck, pending, or still running
- Finding the exact folder key, process name, queue name, or machine name to scope a query by
- Which alerts exist, how one is configured, whether an alert fired, or how a triggered alert is delivered
- Who has Insights access on a tenant, which roles exist and what they permit, and which groups hold them
Critical Rules
- Use
--output json.jobscommands return{ Result, Code, Data }. Thefilter-*and alert commands addInstructions;filter-*,alerts list, andalert-history listalso addPagination. Quote thoseInstructionsin the explanation. A failure envelope carriesResult,Message,Instructions,ErrorCode, andRetry, with noCodeand noData. Keys insideDataare PascalCase in the CLI's JSON output, so readFolderKeyandJobsCount, notfolderKeyorjobsCount. The RBAC reads are the one exception to the flag: run them without--outputso the CLI's safe projection stays on. The format still resolves to json, so the envelope is identical. - One subcommand per invocation, written literally. Do not chain, loop, or parameterize
uip insightscommands: no&∨chains, noforloops, and no shell variables holding the subcommand name or flag values. Resolve values such as epoch timestamps in a separate command first, then pass literal numbers. Never write$(date ...)or$VARinto a flag value. - Use only the flags the guides document. Identity, organization, and tenant come from the active session. Any tenant flag you find is deprecated and is rejected outright on
filter-*commands, so do not use one. If a filter is not in the guide's shared-options list, it does not exist. - Time ranges are required, and their units differ by family. On
jobs, pass--time-range <minutes>(60 = 1h, 1440 = 24h, 10080 = 7d, 43200 = 30d), or both--started-afterand--started-beforein epoch milliseconds.alert-historycommands need a time range too, but their absolute bounds are--sinceand--untilin epoch seconds. Omitting a time range is rejected locally:jobsexits 1,alert-historyexits 3.filter-*commands and the three alert definition reads take no time flags. - Start with
summary, then drill down. After any scope discovery the task needs, begin a job investigation withuip insights jobs summaryfor the totals, then run the targeted subcommands. The summary supplies the denominator that makes a failure count meaningful. - Treat empty data as bounded evidence. Empty results can reflect the chosen time window, the recent-activity window, caller visibility, or tenant provisioning. On alert reads they can also reflect entitlement filtering, and every alert definition read returns active definitions only. They do not prove that a resource or event never existed.
- Use the CLI instead of raw Insights APIs. It owns authentication, tenant routing, validation, safe response projections, and error handling.
- Do not retry automatically. Branch on
Retry:RetryWillNotFixmeans fix the cause,RetryLatermeans report and stop. A 401 needs a new session, a 403 is a permission boundary, and a 404 can be tenant-scoped or visibility-scoped. Each guide documents the error shapes for its own commands. - Never run
uip loginyourself. It opens an interactive browser flow that will hang the session. Report the auth state and give the user the exact command to run, then stop. - Discover identifiers instead of guessing. Use
references/filter-discovery-guide.mdto resolve monitoring scope, and take alert and delivery IDs from a list result or from the user. Page through all results before concluding a resource is absent. - Hand off causal debugging. Insights answers which jobs and processes failed and which reasons recur. It does not explain one job's exception or how to fix it. Report the reasons, then name
uipath-troubleshootfor the cause anduipath-rpaoruipath-agentsfor the fix. - Keep alert access read-only. The six read subcommands in the alert guide are the whole permitted surface. Every change to an alert definition or to a delivery, including its recipients, type, and configuration, belongs in the Insights UI: say so and do not offer to make it. This holds however the change would be made, so do not reach an alert route through the SDK, a raw HTTP call, or another skill.
- Report an alert trigger and a delivery separately. A history row proves the alert fired. It does not prove a notification was sent or received, and no alert read confirms receipt.
- Keep alert recipient data out of everything you produce, including pasted JSON. Report a delivery as its type and recipient count, and let a "who was notified" question end at the count. Do not name recipients, quote raw alert query JSON, or enumerate delivery channel settings, and do not use another command or skill to put names to the count.
- Keep Insights RBAC read-only. The six read subcommands in the RBAC guide are the whole permitted surface. Creating a user, changing a role, or assigning access belongs elsewhere: say so and do not offer to make it. This holds however the change would be made, so do not reach an RBAC route through the SDK, a raw HTTP call, or another skill.
- Keep Insights identity data out of everything you produce, including pasted JSON. Summarize users and groups by name and count. An explicit
--output jsonis what turns on email addresses, nested role IDs, and the role resource string, so leave it off unless the user asked for one of those fields, and quote one only then. Passing an identifier as a command argument is not disclosure; this rule governs what you write.
Shared Workflow
Check the active login when the task will call UiPath Cloud:
uip login status --output jsonRead the guide the Task Navigation table below names for this task.
Run the subcommand and parse
Datafor the result. On list subcommands also readPaginationfor list completeness.
Default to the active Production session. Change authority, organization, or tenant only when the user explicitly names another environment or scope. Give the user the command to run rather than running it yourself:
uip login --authority https://cloud.uipath.com --tenant MyTenant # named environment
uip login tenant set MyTenant # same environment, different tenant
Task Navigation
| User's task | Read first |
|---|---|
| Check job health, success rate, trends, failures, stuck jobs, or compare periods | references/investigation-playbook-guide.md |
| Choose a Jobs subcommand, flag, time range, or interpret its response fields | references/jobs-commands-guide.md |
| Answer which folders, processes, queues, or machines are visible, or resolve an exact folder key, process name, or machine name to filter by | references/filter-discovery-guide.md |
| Inspect alert definitions, alerting entitlement, trigger history, or delivery metadata | references/alerts-reads-guide.md |
| Inspect Insights users, roles, or groups | references/rbac-reads-guide.md |
Read only the guides the task needs. A job investigation that must first resolve a folder, process, or machine needs the filter guide, then the jobs guide. An alert question needs the alert guide alone; it owns the full definition, history, and delivery sequence. An Insights access question needs the RBAC guide alone.
Scope Boundaries
uip insights ships four command families: jobs, the filter-* discovery commands, the alert reads (alerts, alert-history, alert-deliveries), and the RBAC reads (users, roles, groups). If a request needs anything else, say it is not available rather than guessing a subcommand.
| Request | Route |
|---|---|
| Start, stop, restart, or inspect logs for an individual Orchestrator job | uipath-platform |
| Diagnose the root cause of a specific job error | uipath-troubleshoot |
| Fix the workflow or agent that caused a failure | uipath-rpa or uipath-agents |
| Query queue item metrics | Not supported; filter-queues discovers queue scope only |
| Any alert or delivery write (see Critical Rule 12) | Insights UI; not in the shipped uip insights surface |
| Dashboards or robot utilization | Not in the shipped uip insights surface |
| Any Insights RBAC write, such as assigning a role (see Critical Rule 15) | Insights UI; not in the shipped uip insights surface |
| Manage org-level user accounts, groups, or roles outside Insights | uipath-admin |
Anti-patterns
- Do not add
--limitor--offsetto ajobscommand. Each guide lists which of its commands page. - Do not reuse an identifier from an example. Folder keys, process names, and machine names come from a
filter-*result or from the user. - Do not read an empty or
falsealert result as proof. Report what it rules out and what it leaves open. - Do not pass
--output jsonto an RBAC read unless the user asked for a field the safe view withholds.
Completion Output
Close with the answer, the window queried, the active organization and tenant, and the filters applied. For list results, say whether every page was retrieved. For permission-limited or empty results, state what the result does and does not prove.