omni-app-mcp

v0.2.2
omni-app-mcp Checked 1 day ago Published 2 months ago

MCP server for the Omni REST API (stdio).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

omni_get_ai_branding

Get the organization's AI Agent branding configuration. Returns the display name, custom logo URL and the copy shown on AI Agent landing surfaces, falling back to the product defaults when custom branding has not been configured. When to Use: - To label an AI surface with the organization's agent name and logo. - To reuse the configured headline, body copy and prompt placeholder. When NOT to Use: - To ask a question of the AI (use `omni_ask_ai` or `omni_create_ai_job`). - To read organization settings unrelated to the AI Agent. Returns: A markdown summary of the branding fields, or the raw…

ParameterTypeDescription
params *

omni_generate_query

Generate a structured query from a natural language prompt (consumes AI credits). The returned `query.model_job` object can be handed straight to the query tools (`omni_run_query`) to execute or re-run it. This call consumes AI credits, and by default it also *runs* the generated query against the database — pass `run_query: false` to preview the query only. When to Use: - To turn one focused question into a re-runnable query object. - To preview what query a prompt would produce before executing it. - After `omni_pick_topic` has resolved the right topic for the question. When NOT to Use:…

ParameterTypeDescription
params *

omni_pick_topic

Pick the model topic that best answers a natural language prompt (consumes AI credits). A preprocessing step for `omni_generate_query`, `omni_create_ai_job` and `omni_ask_ai`: the returned topic name goes into their `current_topic_name` / `topic_name` parameter. This call consumes AI credits. When to Use: - When a question could relate to several topics and you want it scoped. - To constrain the choice to a shortlist via `potential_topic_names`. When NOT to Use: - When the topic is already known — pass it straight to the other AI tools. - To list the topics in a model (use the model tools…

ParameterTypeDescription
params *

omni_list_ai_conversations

List recent AI conversations, most recently active first. Each conversation ID can be passed as `conversation_id` to `omni_create_ai_job` / `omni_ask_ai` to continue the thread, or to `omni_get_ai_conversation` to read the full transcript. When to Use: - To find a thread to continue, or to show recent AI activity. - To resolve a conversation ID from the last prompt a user asked. When NOT to Use: - To read a conversation's messages (use `omni_get_ai_conversation`). - To list jobs — poll a known job with `omni_get_ai_job_status` instead. Returns: A paginated markdown list of conversations…

ParameterTypeDescription
params *

omni_get_ai_conversation

Get one AI conversation with its full message history. Returns alternating user and assistant turns; each assistant turn carries the originating `jobId` (usable with `omni_get_ai_job_status` / `omni_get_ai_job_result`) and a chat deep link. When to Use: - To read what was already asked and answered before adding a follow-up. - To find the job ID behind an assistant answer. When NOT to Use: - To find a conversation ID (use `omni_list_ai_conversations`). - To fetch query data behind an answer (use `omni_get_ai_job_result`). Returns: A markdown transcript with per-turn metadata, or the raw co…

ParameterTypeDescription
params *

omni_create_ai_job

Submit an AI job for asynchronous execution (consumes AI credits). The AI analyzes the prompt, generates and executes queries against the model, and produces a summarized answer. Jobs typically complete in 15-60 seconds; poll with `omni_get_ai_job_status` and fetch the answer with `omni_get_ai_job_result`, or configure `webhook_url` for a callback. The AI can also build or edit dashboards, and will publish a dashboard draft only when the prompt explicitly asks it to. When to Use: - For exploratory, multi-step or cross-topic questions. - To continue a thread by passing `conversation_id`. - Wh…

ParameterTypeDescription
params *

omni_get_ai_job_status

Get the current state, progress and result summary of an AI job. States are `QUEUED`, `EXECUTING`, `DELIVERING`, `COMPLETE`, `FAILED` and `CANCELLED`; the last three are terminal. Poll every 2-5 seconds until the job reaches a terminal state. `progress` is present only while `EXECUTING`, `resultSummary` only when `COMPLETE`, and `error` only when `FAILED`. When to Use: - To poll a job created with `omni_create_ai_job`. - To read the failure reason of a `FAILED` job. - To check a job ID found on an assistant turn of a conversation. When NOT to Use: - To read the full answer with query data (…

ParameterTypeDescription
params *

omni_cancel_ai_job

Request cancellation of an AI job. Idempotent: calling it on an already-cancelled or completed job succeeds and reports the current state. `QUEUED` jobs stop immediately, `EXECUTING` jobs stop after finishing the current iteration, and `DELIVERING` jobs cannot be cancelled because they are already finalizing results. When to Use: - To stop a long-running or mistaken job, freeing the conversation for a new turn (a conversation allows only one active job). - To clear an `Active job exists for conversation` 409 from job creation. When NOT to Use: - On a job that already reached `COMPLETE`  

ParameterTypeDescription
params *

omni_get_ai_job_result

Get the full result of a completed AI job — the answer plus every action taken. The API serves this endpoint streamed from storage — chunked transfer of a single JSON result object. The whole body is read and decoded here, so the tool returns one finished answer, never a partial stream. Results exist only for jobs in `COMPLETE` state and are retained for 14 days. When to Use: - After `omni_get_ai_job_status` reports `COMPLETE`. - When the status summary is not enough and you need the generated queries, row counts and CSV data behind the answer. When NOT to Use: - While the job is stil…

ParameterTypeDescription
params *

omni_search_omni_docs

Ask the documentation a natural language question (consumes AI credits). Returns a synthesized answer with links to the documentation pages it was built from. This searches product documentation, not the organization's data, and consumes AI credits. When to Use: - To look up how a product feature, setting or modeling parameter works. - To find the documentation page backing an answer before acting on it. When NOT to Use: - To ask questions about the organization's data — use `omni_ask_ai`. - To search dashboards or documents (use the content/document tools). Returns: A markdown answer fo…

ParameterTypeDescription
params *

omni_ask_ai

Ask the AI a question and wait for the finished answer (consumes AI credits). A convenience chain over three endpoints: create the job, poll its status every `poll_interval_seconds` until it reaches a terminal state (`COMPLETE`, `FAILED` or `CANCELLED`), until `max_wait_seconds` of wall-clock time has elapsed, or until the poll cap is hit — then fetch and decode the result. Nothing is streamed to the caller: the answer arrives complete, once. When to Use: - For a one-shot question where you want the answer, not a job handle. - To continue a thread synchronously by passing `conversation_id`…

ParameterTypeDescription
params *

omni_get_ai_credit_controls

Get the organization's AI credit controls, thresholds, and current usage. Calls `GET /v1/ai/credit-controls`. Returns the downgrade and shutoff thresholds, the default per-user and per-entity-group AI credit limits, plus read-only context: the account-wide credit limit, this organization's usage for the current billing period, and the period bounds. This endpoint can be used for embedded instances. When to Use: - To see the current downgrade/shutoff thresholds before changing them. - To check how much of the account's AI credit budget has been used this period. - To find the default per-user…

ParameterTypeDescription
params *

omni_update_ai_credit_controls

Update the organization's AI credit downgrade/shutoff thresholds and defaults. Calls `PATCH /v1/ai/credit-controls`. Only the fields you explicitly pass are changed — omitted fields are left untouched, and a field passed as `null` turns that control off (or makes that default unlimited). This endpoint can be used for embedded instances. Calling it again with the same values is a no-op, so it is idempotent. When to Use: - To set or clear the downgrade/shutoff credit thresholds. - To change the default per-user or per-entity-group AI credit limit. When NOT to Use: - To set an individual use…

ParameterTypeDescription
params *

omni_list_user_ai_credit_limits

List the organization's individual (per-user) AI credit limits. Calls `GET /v1/ai/credit-controls/users`. Only users with an individual limit are returned, ordered by `userId` ascending; users following the organization default are omitted. When to Use: - To audit which users have a custom AI credit limit. - Before calling `omni_set_user_ai_credit_limits`, to see current overrides. When NOT to Use: - To read the organization-wide default limit — use `omni_get_ai_credit_controls`. - To read how many credits a user has *used* — use `omni_get_user_ai_credit_usage`. Returns: A markdown lis…

ParameterTypeDescription
params *

omni_set_user_ai_credit_limits

Set individual users' AI credit limits in bulk. Calls `PATCH /v1/ai/credit-controls/users`. Each entry names a user and either sets an individual limit or removes one so the user follows the organization default. All entries are applied in a single transaction — either every entry is applied, or none are. When to Use: - To grant a small group of power users a higher AI credit limit. - To reset one or more users back to the organization default. When NOT to Use: - To change the organization-wide default — use `omni_update_ai_credit_controls`. - To update entity groups instead of users  

ParameterTypeDescription
params *

omni_list_entity_group_ai_credit_limits

List the organization's individual (per-embed-entity-group) AI credit limits. Calls `GET /v1/ai/credit-controls/entity-groups`. Only entity groups with an individual limit are returned, ordered by entity group ID ascending; entity groups following the organization default are omitted. When to Use: - To audit which embed entity groups have a custom AI credit limit. - Before calling `omni_set_entity_group_ai_credit_limits`, to see current overrides. When NOT to Use: - To read the organization-wide default limit — use `omni_get_ai_credit_controls`. - To read individual users' limits — use…

ParameterTypeDescription
params *

omni_set_entity_group_ai_credit_limits

Set individual embed entity groups' AI credit limits in bulk. Calls `PATCH /v1/ai/credit-controls/entity-groups`. Each entry names an entity group and either sets an individual limit or removes one so the entity group follows the organization default. All entries are applied in a single transaction — either every entry is applied, or none are. To set an unlimited override (distinct from following the organization default), pass `credit_limit: null`. When to Use: - To grant one embedded customer's entity group a higher AI credit budget. - To reset one or more entity groups back to the organ…

ParameterTypeDescription
params *

omni_get_user_ai_credit_usage

Read specific users' AI credit usage for the current billing period. Calls `POST /v1/ai/credit-usage/users` (a bulk lookup by ID, so it uses POST despite being a pure read — it changes nothing). Each user ID must be a member of the organization; unknown, invalid, and duplicate IDs fail the whole request. Users with no current usage report `0`. When to Use: - To check whether specific users are approaching their AI credit limit. - To build a usage report for a known set of users. When NOT to Use: - To read a user's configured *limit* rather than usage — use `omni_list_user_ai_credit_limi…

ParameterTypeDescription
params *

omni_get_entity_group_ai_credit_usage

Read specific embed entity groups' AI credit usage for the current billing period. Calls `POST /v1/ai/credit-usage/entity-groups` (a bulk lookup by ID, so it uses POST despite being a pure read — it changes nothing). Each `entity` must have an entity group in the organization; unknown, invalid, and duplicate values fail the whole request. Entity groups with no current usage report `0`. When to Use: - To check whether a specific embedded customer's entity group is approaching its AI credit limit. - To build a usage report for a known set of entity groups. When NOT to Use: - To read an en…

ParameterTypeDescription
params *

omni_list_model_suggestions

List AI-generated context suggestions for a shared model. Calls `GET /v1/models/{modelId}/suggestions`. Suggestions are sorted by priority, creation date, and ID for stable keyset pagination. Each suggestion proposes one or more `ai_context` edits, cites the chat session(s) that motivated it (when tracked), and can be dismissed or restored. When to Use: - To review what the AI suggests improving in a model's `ai_context`. - To find a suggestion's ID before dismissing, restoring, or deleting it. - To check whether a model has any active suggestions left to review. When NOT to Use: - To trigg…

ParameterTypeDescription
params *

omni_delete_model_suggestion

Permanently delete an AI-generated model suggestion. Calls `DELETE /v1/models/{modelId}/suggestions/{suggestionId}`. Unlike dismissing, this cannot be undone — there is no restore for a deleted suggestion. When to Use: - To permanently remove a suggestion that will never be actioned (e.g. generated against a model that has since been redesigned). When NOT to Use: - To temporarily hide a suggestion you might revisit — use `omni_dismiss_model_suggestion` instead, which is reversible via `omni_restore_model_suggestion`. Returns: A short confirmation string. Examples: - `{"params":…

ParameterTypeDescription
params *

omni_get_latest_suggestion_run

Get the most recent AI suggestion generation run for a shared model. Calls `GET /v1/models/{modelId}/suggestions/runs/latest`. Returns the active run if one is in flight, otherwise the last terminal run, or reports that the model has never had a run. When to Use: - To check whether a generation run is currently in progress before calling `omni_generate_model_suggestions` (which returns `409` if one already is). - To see when suggestions were last generated for a model. When NOT to Use: - To check a specific run you already have the ID for — use `omni_get_suggestion_run_status`. Ret…

ParameterTypeDescription
params *

omni_get_suggestion_run_status

Get the status of a specific AI suggestion generation run. Calls `GET /v1/models/{modelId}/suggestions/runs/{runId}`. Poll this until `status` is terminal (`complete` or `failed`), then re-fetch the suggestions list with `omni_list_model_suggestions`. When to Use: - To poll a run started by `omni_generate_model_suggestions` until it finishes. - To inspect why a run `failed` (see the `error` field). When NOT to Use: - To find the most recent run when you don't already have its ID — use `omni_get_latest_suggestion_run`. Returns: A markdown summary of the run (ID, status, trigger source…

ParameterTypeDescription
params *

omni_generate_model_suggestions

Trigger a new AI suggestion generation run for a shared model. Calls `POST /v1/models/{modelId}/suggestions/generate`, enqueuing an async job and returning immediately. **This consumes AI credits.** A model can have only one active run at a time, and a cooldown period is enforced after a successful run (see the `Retry-After` header on a `429`) — calling this repeatedly is not idempotent and can fail with `409` or `429`. When to Use: - To refresh a shared model's suggestions after significant changes to its views or fields. - To kick off the first suggestion generation for a newly shared…

ParameterTypeDescription
params *

omni_enable_model_suggestions_schedule

Enable the daily AI suggestion generation schedule for a shared model. Calls `PUT /v1/models/{modelId}/suggestions/schedule`. Suggestions are then generated daily at midnight in the given timezone. This operation is idempotent — calling it again (with the same or no timezone) just returns the persisted schedule. When to Use: - To keep a shared model's suggestions fresh automatically, without manually calling `omni_generate_model_suggestions` on a schedule. When NOT to Use: - To generate suggestions right now — use `omni_generate_model_suggestions`. - To stop the schedule — use `omni…

ParameterTypeDescription
params *

omni_disable_model_suggestions_schedule

Disable the daily AI suggestion generation schedule for a shared model. Calls `DELETE /v1/models/{modelId}/suggestions/schedule`. This operation is idempotent — calling it again returns success even if the schedule was already disabled. When to Use: - To stop automatic daily suggestion generation for a model. When NOT to Use: - To pause generation temporarily while keeping the schedule — there is no pause; re-enable later with `omni_enable_model_suggestions_schedule`. Returns: A short confirmation string. Examples: - `{"params": {"model_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}`…

ParameterTypeDescription
params *

omni_dismiss_model_suggestion

Dismiss an AI-generated suggestion, removing it from the active list. Calls `POST /v1/models/{modelId}/suggestions/{suggestionId}/ignore`. Dismissed suggestions can be brought back with `omni_restore_model_suggestion`, so this is safer than `omni_delete_model_suggestion` for suggestions you might revisit. When to Use: - To hide a suggestion that is not worth acting on right now, without losing it permanently. - To record why a suggestion was declined, via `reason`. When NOT to Use: - To permanently remove a suggestion — use `omni_delete_model_suggestion`. Returns: A short confirmation…

ParameterTypeDescription
params *

omni_restore_model_suggestion

Restore a previously dismissed AI-generated suggestion back to the active list. Calls `POST /v1/models/{modelId}/suggestions/{suggestionId}/restore`. The counterpart to `omni_dismiss_model_suggestion`. When to Use: - To reconsider a suggestion that was dismissed by mistake or whose relevance changed. When NOT to Use: - On a suggestion that was permanently deleted with `omni_delete_model_suggestion` — deletion cannot be undone. Returns: A short confirmation string. Examples: - `{"params": {"model_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "suggestion_id": "b2c3d4e5-f6a7-8901-bcde-f…

ParameterTypeDescription
params *

omni_list_ai_routines

List AI Routines for the calling user, newest first. Includes routines paused by the owner or disabled by Omni, but excludes deleted routines. When to Use: - To see what scheduled AI prompts exist before creating, updating, or triggering one. - To check whether a routine has been paused or disabled by Omni. When NOT to Use: - To read one routine's full detail (destination recipients, last-run timestamp) — use `omni_get_ai_routine`. Returns: A markdown list (name, id, active/paused state, schedule, timezone, destination type, last-run status) with a `pageInfo`-driven next-cursor hint,…

ParameterTypeDescription
params *

omni_get_ai_routine

Retrieve details for a specific AI Routine by ID. Includes the status of its most recent completed run. When to Use: - To inspect a routine's full configuration (prompt, schedule, timezone, destination, recipient count) before updating or triggering it. - To check the outcome of the last scheduled or manually triggered run. When NOT to Use: - To browse many routines at once — use `omni_list_ai_routines`. Returns: A markdown summary of the routine's schedule, destination, prompt, and last-run status, or the raw routine payload when `response_format` is `json`. Examples: - `{"params": {…

ParameterTypeDescription
params *

omni_create_ai_routine

Create a new AI Routine that runs on the specified schedule. Each scheduled run executes once using the routine owner's permissions, and every recipient receives the same result. When to Use: - To stand up a recurring, scheduled AI prompt delivered by email or Slack (e.g. a daily sales summary). When NOT to Use: - For a one-off AI answer right now — use the query/AI-generation tools instead of scheduling a routine. - To run an existing routine off-cycle — use `omni_trigger_ai_routine`. Returns: A short confirmation naming the routine and its new id, or an `Error ...` string on fail…

ParameterTypeDescription
params *

omni_update_ai_routine

Update an existing AI Routine's name, prompt, schedule, model, or active state. Note: unlike creation, this endpoint's body does not accept `destination`, `branchId`, `timezone`, or `topicName` — those cannot be changed via this call. When to Use: - To rename a routine, change its prompt or schedule, rescope it to a different model, or pause/resume it (`is_active`). When NOT to Use: - To change delivery recipients (destination) — not supported by this endpoint; recreate the routine instead. - To run the routine immediately — use `omni_trigger_ai_routine`. Returns: A short confirm…

ParameterTypeDescription
params *

omni_delete_ai_routine

Permanently delete an AI Routine. This action cannot be undone. When to Use: - To remove a routine that is no longer needed. Its future scheduled runs stop; past deliveries already sent are unaffected. When NOT to Use: - To temporarily stop it — use `omni_update_ai_routine` with `is_active=false` instead, so it can be resumed later. Returns: A short confirmation with the deleted routine's id, or an `Error ...` string on failure. Examples: - `{"params": {"routine_id": "880e8400-e29b-41d4-a716-446655440003"}}` Error Handling: 400 means an invalid routine id; 401 means a missing/invali…

ParameterTypeDescription
params *

omni_trigger_ai_routine

Run an existing routine immediately, in addition to its schedule. Useful to get an off-cycle result or verify a routine produces the output you expect. This consumes AI credits. Executes once using the routine owner's permissions and delivers the response to every configured recipient. Returns as soon as the run has started; the result arrives asynchronously via the routine's normal delivery. When to Use: - To test a newly created or updated routine without waiting for its next scheduled time. - To get an ad-hoc, off-cycle result. When NOT to Use: - When a run is already in progress for t…

ParameterTypeDescription
params *

omni_list_eval_prompt_sets

List eval prompt sets, sorted alphabetically by name. When `model_ids` is omitted, returns prompt sets for every shared model the caller can access. When to Use: - To find an existing prompt set's id before getting, updating, archiving, or starting a run against it. - To review archived prompt sets (`archived=true`) before restoring one. When NOT to Use: - To read one prompt set's full prompt list — use `omni_get_eval_prompt_set`. Returns: A markdown list (name, id, slug, model id, prompt count, archived state, latest run time), or the raw `prompt_sets` array when `response_format` i…

ParameterTypeDescription
params *

omni_get_eval_prompt_set

Get a single eval prompt set with all of its prompts. When to Use: - Before updating a prompt set, to see current prompts and their ids (needed to update rather than replace individual prompts). - Before starting a run, to confirm which prompts will be evaluated. When NOT to Use: - To browse many prompt sets — use `omni_list_eval_prompt_sets`. Returns: A markdown summary plus a table of prompts (id, prompt text, expectation), or the raw prompt set payload when `response_format` is `json`. Examples: - `{"params": {"prompt_set_id": "550e8400-e29b-41d4-a716-446655440000"}}` Error Handlin…

ParameterTypeDescription
params *

omni_create_eval_prompt_set

Create a new eval prompt set bound to a shared model. Initial prompts can be supplied; additional prompts can be added later via `omni_update_eval_prompt_set`. When to Use: - To start a regression suite of prompts for a model, so its AI answers can be re-evaluated after model or prompt-generation changes. When NOT to Use: - To add prompts to an existing set — use `omni_update_eval_prompt_set`. Returns: A short confirmation naming the new prompt set, its id/slug, and prompt count, or an `Error ...` string on failure. Examples: - `{"params": {"model_id": "880e8400-e29b-41d4-a716-4466554…

ParameterTypeDescription
params *

omni_update_eval_prompt_set

Update a prompt set's name, description, and/or prompts. When `prompts` is supplied, it fully replaces the existing list — existing prompts omitted from the list are deleted, entries without an `id` are created, and entries with a matching `id` are updated in place. When to Use: - To rename or re-describe a prompt set. - To add, edit, or remove prompts (always send the *full* desired list). When NOT to Use: - To reorder existing prompts — not supported by this endpoint. - To archive or restore a set — use `omni_archive_eval_prompt_set` / `omni_restore_eval_prompt_set`. Returns: A s…

ParameterTypeDescription
params *

omni_archive_eval_prompt_set

Archive (soft-delete) a prompt set. Omni also attempts to cancel every in-flight agentic job associated with the set — the response's `cancelled_job_count` reports how many were cancelled. Cancellation is best-effort: the archive is committed first, so a run-cancellation failure surfaces as a 500 even though the set is already archived. The call is idempotent — retrying drains any remaining runs. When to Use: - To retire a prompt set that is no longer needed, without permanently losing its history (it can be restored). When NOT to Use: - To permanently delete it — there is no hard-d…

ParameterTypeDescription
params *

omni_restore_eval_prompt_set

Restore an archived prompt set. When to Use: - To bring back a previously archived prompt set so it appears again in the default (`archived=false`) list and can be run again. When NOT to Use: - On a prompt set that was never archived — this is a no-op but not an error. Returns: A short confirmation naming the restored prompt set, or an `Error ...` string on failure. Examples: - `{"params": {"prompt_set_id": "550e8400-e29b-41d4-a716-446655440000"}}` Error Handling: 400 means `promptSetId` is not a UUID; 401 means a missing/invalid API key; 403 means insufficient permissions; 404 mean…

ParameterTypeDescription
params *

omni_list_eval_runs

List runs for a prompt set, newest first. Filtered to runs whose model the caller can access. When to Use: - To see run history for a prompt set and find a run id to inspect, cancel, archive, or restore. When NOT to Use: - To read one run's full per-prompt results — use `omni_get_eval_run`. Returns: A markdown list (run number, id, status, terminal/total job counts, created/completed timestamps), or the raw `runs` array when `response_format` is `json`. This endpoint has no cursor pagination. Examples: - `{"params": {"prompt_set_id": "550e8400-e29b-41d4-a716-446655440000"}}` - Archive…

ParameterTypeDescription
params *

omni_get_eval_run

Get an eval run with every per-prompt result row. Includes the underlying agentic job state and any scoring data. When to Use: - To check progress or final results of a run — per-prompt score, cost, timing, and job state. - To debug a failed prompt via its `error_reason`. When NOT to Use: - To browse run history for a prompt set — use `omni_list_eval_runs`. Returns: A markdown summary (status, timestamps, terminal/total counts) plus a per-prompt results table, or the raw run payload when `response_format` is `json`. Examples: - `{"params": {"run_id": "660e8400-e29b-41d4-a716-4466554…

ParameterTypeDescription
params *

omni_start_eval_run

Create and start a new run against an existing prompt set. The run enqueues one agentic job per prompt and begins executing immediately. This consumes AI credits — one agentic job per prompt in the set. Returns the newly created run with its initial per-prompt result rows. When to Use: - To re-evaluate a prompt set's answers, e.g. after changing the underlying model or its AI query generation. When NOT to Use: - When the per-user active-run cap has been reached, or AI eval is paused for the organization — both surface as errors rather than queuing. Returns: A short confirmation w…

ParameterTypeDescription
params *

omni_cancel_eval_run

Cancel an in-flight eval run. Marks the run cancelled first so no in-progress per-prompt job can flip it back to COMPLETE, then cancels every non-terminal agentic job associated with the run. The run is also archived as part of the cancel (`status: CANCELLED`, `is_archived: true`); use `omni_restore_eval_run` to surface it in the default list again. When to Use: - To stop a run that is taking too long, was started by mistake, or is no longer needed, before it consumes further AI credits. When NOT to Use: - On a run that has already completed — cancelling a terminal run is a no-op. Re…

ParameterTypeDescription
params *

omni_archive_eval_run

Archive (soft-delete) an eval run. Any non-terminal per-prompt agentic jobs are cancelled as part of the archive (best-effort), and a still-RUNNING run is flipped to CANCELLED before archival. The call is idempotent — archiving an already-terminal or already-archived run is a no-op. When to Use: - To remove a run from the default (`archived=false`) list once you no longer need to see it there. When NOT to Use: - To stop a run that is still executing and you want confirmation of how many jobs were cancelled — use `omni_cancel_eval_run`, which reports that count explicitly. Returns…

ParameterTypeDescription
params *

omni_restore_eval_run

Restore an archived eval run. When to Use: - To bring an archived run back into the default (`archived=false`) list, e.g. after archiving or cancelling it by mistake. When NOT to Use: - To resume execution of a cancelled run — restoring only changes the archived flag; a cancelled run stays cancelled. Start a new run instead. Returns: A short confirmation, or an `Error ...` string on failure. Examples: - `{"params": {"run_id": "660e8400-e29b-41d4-a716-446655440001"}}` Error Handling: 400 means `runId` is not a UUID; 401 means a missing/invalid API key; 403 means insufficient permis…

ParameterTypeDescription
params *

omni_list_connections

List database connections configured on this instance. Supports filtering by name/database (partial, case-insensitive) and dialect(s), and sorting by name/dialect/database. The API does not paginate this endpoint, so every matching connection is returned in one call. When to Use: - To find a connection's ID before calling `omni_get_connection` or a schema refresh schedule tool. - To audit which dialects/databases are connected, or to find archived connections with `include_deleted`. When NOT to Use: - To fetch full detail for one already-known connection — use `omni_get_connection`.…

ParameterTypeDescription
params *

omni_get_connection

Fetch a single database connection by ID. Requires Restricted Querier permissions or higher on the connection. When to Use: - To inspect a connection's dialect, database, base role, and environment user-attribute configuration before updating it or creating a schedule. When NOT to Use: - To browse all connections — use `omni_list_connections`. Returns: A markdown summary (id, name, dialect, database, base role, default schema, environment user-attribute settings, timestamps) or the raw JSON record when `response_format` is `json`. Credential-shaped fields are masked in both formats (th…

ParameterTypeDescription
params *

omni_create_connection

Create a new database connection. Required fields depend on the dialect (see each field's description); common scalar fields (name, dialect, host, port, database, username, password, warehouse, schema, role) are first-class parameters, and less common dialect-specific options are passed through the `settings` dict. When to Use: - To register a new Snowflake/Postgres/BigQuery/etc. connection. When NOT to Use: - To change credentials on an existing connection — use `omni_update_connection`. - To scope environment-specific connections — use `omni_create_connection_environments`. Returns…

ParameterTypeDescription
params *

omni_update_connection

Update connection credentials, base role, or environment user-attribute settings. Credentials are encrypted at rest and never returned in API responses. Supports credential rotation for infrastructure-as-code workflows: password-based connections (Postgres, MySQL, etc.) and BigQuery rotate via `password_unencrypted`; Snowflake rotates via `private_key` (PEM, minimum 2048 bits). At least one field must be provided. When to Use: - To rotate a connection's password/service-account key or Snowflake private key. - To change the connection's default base role. - To set or clear which user attribut…

ParameterTypeDescription
params *

omni_delete_connection

Archive a connection (soft delete — moves it to trash). Requires Connection Admin permissions. The connection and its associated models and content move to trash and can be restored from the Omni app; sensitive credentials (passwords, keys) are permanently deleted immediately. When to Use: - To decommission a connection that is no longer needed. When NOT to Use: - When you are not sure the connection is unused — check dependent models and schedules first with `omni_get_connection` / the schedule tools. Returns: A short confirmation that the connection was archived. On failure, an `Er…

ParameterTypeDescription
params *

omni_create_connection_environments

Associate one or more environment-specific connections with a base connection. Connection environments let a base connection's user-attribute value route different users to different underlying connections (e.g. dev/staging/prod) while sharing the same model. When to Use: - To add dev/staging/etc. connections that share dialect with an existing base connection, before wiring up which user-attribute values select each one with `omni_update_connection_environment`. When NOT to Use: - To change which user-attribute values select an existing environment connection — use `omni_update_con…

ParameterTypeDescription
params *

omni_update_connection_environment

Set which user-attribute values route to a specific connection environment. Works together with the base connection's own user-attribute name and default values (set via `omni_update_connection`): the base connection specifies which attribute to evaluate, and each environment connection specifies which values of that attribute trigger its use. When to Use: - After creating environment connections, to wire up which attribute values (e.g. `dev`, `staging`) select each one. When NOT to Use: - To create the environment connections themselves — use `omni_create_connection_environments` fir…

ParameterTypeDescription
params *

omni_delete_connection_environment

Delete a connection environment, removing its base-connection association. Requires Connection Admin or Organization Admin permissions. This does not delete the underlying environment connection itself, only its role as an environment for the base connection. When to Use: - To retire a dev/staging/etc. environment mapping that is no longer needed. When NOT to Use: - To delete the underlying connection — use `omni_delete_connection`. Returns: A short confirmation that the connection environment was deleted. On failure, an `Error ...` string. Examples: - `{"params": {"connection_environme…

ParameterTypeDescription
params *

omni_list_schema_refresh_schedules

List the schema refresh schedules configured for a connection. Requires Connection Admin permissions for the connection. Each schedule uses a 6-field AWS EventBridge cron expression (`minute hour day-of-month month day-of-week year`) plus an IANA timezone to define when the connection's schema is refreshed. The API does not paginate this endpoint. When to Use: - To audit or find the ID of an existing schedule before updating/deleting it. When NOT to Use: - To create a new schedule — use `omni_create_schema_refresh_schedule`. Returns: A markdown table (Schedule ID, Cron, Timezone, Descr…

ParameterTypeDescription
params *

omni_get_schema_refresh_schedule

Fetch one schema refresh schedule's details. Requires Connection Admin permissions for the connection. When to Use: - To check a schedule's cron expression, timezone, or disabled status before editing it. When NOT to Use: - To list all schedules for a connection — use `omni_list_schema_refresh_schedules`. Returns: A markdown summary or the raw JSON record when `response_format` is `json`. On failure, an `Error ...` string. Examples: - `{"params": {"connection_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schedule_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"}}` Error Handling: 403 me…

ParameterTypeDescription
params *

omni_create_schema_refresh_schedule

Create a new schema refresh schedule for a connection. Requires Connection Admin permissions for the connection. Multiple schedules can be created for the same connection. When to Use: - To schedule automatic schema refreshes (e.g. nightly, weekdays at 6 PM). When NOT to Use: - To change an existing schedule — use `omni_update_schema_refresh_schedule`. Returns: A short confirmation with the new schedule's ID and its human-readable description. On failure, an `Error ...` string. Examples: - `{"params": {"connection_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schedule": "00 09 * * ? *",…

ParameterTypeDescription
params *

omni_update_schema_refresh_schedule

Replace the cron schedule and/or timezone for an existing schema refresh schedule. Requires Connection Admin permissions for the connection. When to Use: - To change when an existing schedule runs, or to toggle hard vs. soft refresh. When NOT to Use: - To create a new schedule — use `omni_create_schema_refresh_schedule`. Returns: A short confirmation with the schedule's ID and new description. On failure, an `Error ...` string. Examples: - `{"params": {"connection_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schedule_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "schedule": "00 18 ? *…

ParameterTypeDescription
params *

omni_delete_schema_refresh_schedule

Delete a schema refresh schedule. Requires Connection Admin permissions for the connection. Deleting one schedule does not affect other schedules on the same connection. When to Use: - To remove a schedule that is no longer needed. When NOT to Use: - To temporarily pause a schedule without deleting it — this API has no disable/enable endpoint exposed here; delete and recreate it when needed. Returns: A short confirmation that the schedule was deleted. On failure, an `Error ...` string. Examples: - `{"params": {"connection_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "schedule_id": "a1…

ParameterTypeDescription
params *

omni_get_content

Retrieve a paginated list of documents and folders. Calls `GET /v1/content`. Browse the whole organization, one folder (`folder_id`), or a path pattern (`path`), optionally filtered by labels and by the creator of restricted content. When to Use: - To browse the content tree or find what lives in a folder or path. - To resolve a dashboard/folder name into an identifier for other tools. - To list content carrying particular labels. When NOT to Use: - For free-text relevance search over dashboards — use `omni_search_dashboards`. - To read a document's contents or queries — use the documen…

ParameterTypeDescription
params *

omni_search_dashboards

Free-text search over the organization's dashboards. Calls `GET /v1/content/search`. Keywords are matched against dashboard names, descriptions, and tile titles, and the most relevant dashboards come back first with their identifier, folder path, tile names, URL, and verified flag. When to Use: - To find a dashboard when you only know roughly what it is about. - To turn a human description ("revenue by region") into a dashboard identifier. - To check whether a dashboard on a topic already exists before building one. When NOT to Use: - To enumerate a folder or the whole content tree — use…

ParameterTypeDescription
params *

omni_validate_content

Validate every document on a model and report broken view/field references. Calls `GET /v1/models/{modelId}/content-validator`. It scans the documents associated with the model and reports fields, views, and topics referenced by saved queries or dashboard filters that no longer exist. Pass `find` + `find_type` to scope the scan to content that references one element, which avoids validating every document. When to Use: - After renaming or removing a view, field, or topic, to find the content it broke. - Before a model change, to see which dashboards reference an element (`find` + `find_type`…

ParameterTypeDescription
params *

omni_find_and_replace_content

Replace a view, field, or topic reference across every document on a model. Calls `POST /v1/models/{modelId}/content-validator`. This rewrites saved queries, workbook models, and dashboard filters in place across all documents on the model (optionally scoped to one workbook), so it is destructive and cannot be undone through the API. Nothing is sent unless `confirm` is true. When to Use: - After renaming a view, field, or topic in the model, to repoint all content at the new name. - To clean up references reported by `omni_validate_content`. - To migrate content off a deprecated topic onto i…

ParameterTypeDescription
params *

omni_export_dashboard

Export a dashboard as a migration payload for another instance. Calls `GET /unstable/documents/{dashboardId}/export` — the path is literally under `/unstable/`, and this endpoint is in beta and may change. The payload contains `dashboard`, `document`, `workbookModel`, `exportVersion`, and any `fileUploads` (base64 spreadsheet data backing spreadsheet tiles). Requires an Organization API key; Personal Access Tokens are not accepted. Export payloads are large, so prefer `output_path`: the raw JSON is written to that local file (parent directories are created) and the tool returns the path an…

ParameterTypeDescription
params *

omni_import_dashboard

Import an exported dashboard into a model on this instance. Calls `POST /unstable/documents/import` — the path is literally under `/unstable/`, and this endpoint is in beta and may change. It creates content on the target instance (and can overwrite content at the same `identifier`), so it is treated as destructive. Requires an Organization API key; Personal Access Tokens are not accepted. Supply the export payload either inline as `export_payload` or as `input_path` pointing at the file `omni_export_dashboard` wrote — exactly one of the two. The payload must carry `dashboard`, `document…

ParameterTypeDescription
params *

omni_initiate_dashboard_download

Start an asynchronous download job for a dashboard or single tile. Renders the dashboard (or one tile, via `query_identifier_map_key`) to PDF, PNG, CSV, XLSX, or JSON and returns a job id. Poll `omni_get_dashboard_download_status` until the job reports `complete`, then fetch the file with `omni_download_dashboard_file` — or use `omni_export_dashboard_file` to do both in one call. When to Use: - To generate a downloadable export of a dashboard or one of its tiles. - As the first step of the manual download flow, before polling status or downloading. When NOT to Use: - When you already have…

ParameterTypeDescription
params *

omni_get_dashboard_download_status

Check the status of a dashboard/tile download job. Poll this after `omni_initiate_dashboard_download` until the status is `complete`, then fetch the file with `omni_download_dashboard_file`. Recommended poll interval is 2-5 seconds; avoid polling more than once per second. When to Use: - To find out whether a download job is still running, finished, or failed. - Between initiating a download and downloading the finished file. When NOT to Use: - To fetch the file itself once complete — use `omni_download_dashboard_file`. - When you want polling handled for you — use `omni_export_dashboar…

ParameterTypeDescription
params *

omni_download_dashboard_file

Download a completed dashboard/tile export to a local file. Only call this once `omni_get_dashboard_download_status` reports `complete`. The response body (binary PDF/PNG/XLSX/ZIP, or JSON for a single-tile JSON export) is written to `output_path` — never returned inline — because these payloads can be large and are not valid tool-result text. When to Use: - After polling status and seeing `complete`, to save the file to disk. When NOT to Use: - Before the job is `complete` — a `202` (still processing) or `410` (job failed) response means poll again or re-initiate instead. - When yo…

ParameterTypeDescription
params *

omni_export_dashboard_file

Initiate, poll, and download a dashboard/tile export in one call. Convenience wrapper around `omni_initiate_dashboard_download` → `omni_get_dashboard_download_status` → `omni_download_dashboard_file`: starts the job, polls status every `poll_interval_seconds` up to `max_wait_seconds`, then writes the file to `output_path`. When to Use: - To export a dashboard or tile to a local file without managing the job lifecycle yourself. When NOT to Use: - When you need to run several downloads concurrently, or want fine control over each step — use the individual initiate/status/download to…

ParameterTypeDescription
params *

omni_get_dashboard_filters

Retrieve a dashboard's filter and control configuration. Returns every filter and control on the dashboard — IDs, types, current default values, labels, and display order. When to Use: - Before calling `omni_update_dashboard_filters`, to see the current filter/control IDs and values. - To inspect what filters a dashboard exposes and their current defaults. When NOT to Use: - To change values — use `omni_update_dashboard_filters`. Returns: A markdown summary of the dashboard identifier, its filters (id, type, kind, current value, label, required/hidden flags), controls (id, type, kind…

ParameterTypeDescription
params *

omni_update_dashboard_filters

Set or reset values for a dashboard's filters and/or controls. Updates are partial: only the filter/control IDs you include are changed, and only the fields you set within each are modified. Updates to a published dashboard go through a draft/publish workflow; if a draft already exists, set `clear_existing_draft=true` to discard it and proceed. When to Use: - To change default filter values, labels, visibility, or display order on a dashboard. - To relabel or hide a control. When NOT to Use: - To merely inspect current filters/controls — use `omni_get_dashboard_filters`. Returns: A short…

ParameterTypeDescription
params *

omni_get_dbt_configuration

Retrieve the dbt configuration for a connection. Reports whether the connection's dialect supports dbt, and — when dbt is configured — the git auth method, branch, repository URL, project root path, dbt version, and the autogen-relationships / semantic-layer / virtual-schemas toggles. The write-only `token` field (HTTPS auth) is never returned by the API and never echoed here. When to Use: - Before calling `omni_update_dbt_configuration`, to see the current state. - To check whether dbt is linked to a connection and which branch it tracks. - To debug why dbt environments or exposures are…

ParameterTypeDescription
params *

omni_update_dbt_configuration

Update the dbt configuration for a connection. `branch`, `autogen_relationships`, `enable_virtual_schemas`, and `ssh_url` are always required by the API; every other field is optional and, when omitted, the existing value is retained. Field/method compatibility (e.g. `token` with `https_token`, `github_app_installation_id` with `github_app`) is validated against the *effective* auth method — the request's `auth_method`, or the connected repo's if omitted. When to Use: - To link or relink a connection's dbt project (branch, repo URL, auth). - To switch auth method (ssh / https_token / githu…

ParameterTypeDescription
params *

omni_delete_dbt_configuration

Remove the dbt configuration for a connection by unlinking its dbt repository. This does not delete the git repository itself — only the connection's link to it — but it does remove Omni's dbt integration for this connection, including its dbt environments' usability. This action cannot be undone from this tool (the connection would need to be reconfigured from scratch). When to Use: - To fully unlink dbt from a connection (e.g. decommissioning a project). - Before relinking a connection to an unrelated dbt repository from scratch. When NOT to Use: - To temporarily disable one dbt envir…

ParameterTypeDescription
params *

omni_create_dbt_environment

Create a new dbt environment on a connection. A dbt environment connects Omni to a specific dbt project/target within the connection. Environments can be personal (owned by one user, via `owner_id`) or shared (`shared=true`, which sends `ownerId: null` as the API's documented shared-environment convention). `owner_id` and `shared` are mutually exclusive. Permission requirements differ by kind: creating a personal environment for yourself needs Restricted Querier or higher on the associated model; a personal environment for someone else needs Organization Admin; a shared environment needs Conn…

ParameterTypeDescription
params *

omni_list_dbt_environments

List every dbt environment configured on a connection. The API returns the full list in one response (it is not paginated), so there is no `page_size`/`cursor` for this tool. When to Use: - To find an environment's id before calling `omni_update_dbt_environment`, `omni_delete_dbt_environment`, or `omni_update_model_branch_dbt_environment`. - To audit which environments exist, which is the default, and who owns each. When NOT to Use: - To read a single environment's full variable list only — this already returns every environment; filter the result yourself if you only need one. Retur…

ParameterTypeDescription
params *

omni_update_dbt_environment

Update an existing dbt environment on a connection. Every field is optional — only the fields you provide are changed. To convert a personal environment to shared (or vice versa), see `owner_id` and `clear_owner`. The `target_database`/`target_name`/`target_role` overrides are nullable in the API; use `clear_target_database`/`clear_target_name`/ `clear_target_role` to explicitly reset one to the connection's default instead of leaving it unchanged. Variables can be added (omit `id`) or updated in place (include the existing `id`). When to Use: - To rename an environment, change its target…

ParameterTypeDescription
params *

omni_delete_dbt_environment

Delete a dbt environment from a connection. This action cannot be undone. Any model branch currently set to use this environment (via `omni_update_model_branch_dbt_environment`) will need to be repointed at a different environment afterward. When to Use: - To remove a personal dev environment that is no longer needed. - To decommission a shared environment being replaced by another. When NOT to Use: - To temporarily disable dbt for the whole connection — use `omni_delete_dbt_configuration` instead. - When you are unsure whether a branch still depends on it — check first with `omni_l…

ParameterTypeDescription
params *

omni_get_dbt_exposures

Compute and retrieve dbt exposures for a model, on demand. Exposures are computed by analyzing which dbt models are referenced by dashboards that use the specified Omni model — the same data the manual **Sync exposures** flow produces, but retrievable programmatically. This makes it usable from CI/CD pipelines and other automated workflows, without a person triggering a sync in the UI. A dashboard that references no dbt models yields a record with a `null` exposure. The result set can be large for models with many dashboards; it is paginated and the markdown/JSON output is truncated at the…

ParameterTypeDescription
params *

omni_update_model_branch_dbt_environment

Update the active dbt environment on a model branch. Model branches are Omni's working-copy mechanism for iterating on a model (e.g. a developer's feature branch, or a branch a CI pipeline checks out) before merging changes into the shared model. Each branch can point at a different dbt environment — for example, a feature branch might target a personal dev environment while the shared model targets production. This endpoint lets a CI/CD pipeline configure that mapping programmatically, typically right before triggering a schema refresh on the branch, so the refresh compiles dbt against the…

ParameterTypeDescription
params *

omni_get_document_permissions

Retrieve a document's ability toggles, plus one user's resolved permits. Calls `GET /v1/documents/{documentId}/permissions`. The `abilities` object always comes back (the document-level toggles such as `canDownload` or `canSchedule`); `permits` — the resolved direct and folder-inherited role for a specific user — is only present when `user_id` is given. When to Use: - Before changing sharing, to see the document's current ability settings. - To check what access level a specific user actually has (direct vs. folder-inherited). - To debug why a user cannot perform an action the document s…

ParameterTypeDescription
params *

omni_list_document_access

List every user and group with access to a document. Calls `GET /v1/documents/{documentId}/access-list`. Each entry is a distinct access grant with its own role and settings; a principal may appear twice if it has both `direct` and `folder`-based access to the document. When to Use: - To audit who can see or edit a document, including access inherited from its folder. - Before revoking or changing access, to find the exact principal to target. - To filter down to only direct grants (`access_source="direct"`) or only groups (`principal_type="userGroup"`). When NOT to Use: - To check one us…

ParameterTypeDescription
params *

omni_grant_document_permissions

Grant a content role on a document to users and/or user groups. Calls `POST /v1/documents/{documentId}/permissions`. When to Use: - To share a document with new users or groups for the first time. - To add additional principals at a given role alongside existing grants. When NOT to Use: - To change an existing grant's role — use `omni_update_document_permissions` (same shape, `PATCH` semantics). - To take access away — use `omni_revoke_document_permissions`. Returns: A short confirmation naming the role and the number of users/groups granted. On failure, an `Error ...` string. Examp…

ParameterTypeDescription
params *

omni_update_document_permissions

Update the content role already granted to users and/or user groups on a document. Calls `PATCH /v1/documents/{documentId}/permissions`. When to Use: - To change an existing principal's role (e.g. VIEWER -> EDITOR). - To toggle AccessBoost for principals that already have access. When NOT to Use: - To share with a principal that has no existing grant — use `omni_grant_document_permissions` (identical request shape). - To remove access entirely — use `omni_revoke_document_permissions`. Returns: A short confirmation naming the role and the number of users/groups updated. On failure, an…

ParameterTypeDescription
params *

omni_update_document_permission_settings

Update a document's permission/interactivity ability settings and default org role. Calls `PUT /v1/documents/{documentId}/permissions`. Only the fields you set are sent, and only those fields are updated — everything else on the document is left as-is. When to Use: - To toggle abilities such as download, scheduling, drill, or upload for the document. - To change the default organization-wide role (`organization_role`). When NOT to Use: - To grant/update/revoke a specific user's or group's role — use the permissions grant/update/ revoke tools instead. Returns: A short confirmation lis…

ParameterTypeDescription
params *

omni_revoke_document_permissions

Revoke document access from users and/or user groups. Calls `DELETE /v1/documents/{documentId}/permissions`. This removes the direct grant entirely (there is no partial role left behind); a principal with folder-inherited access may still be able to see the document through that path. When to Use: - To remove a user's or group's direct access to a document. - As cleanup after off-boarding a user or retiring a group's need for a document. When NOT to Use: - To lower (not remove) a role — use `omni_update_document_permissions` with a smaller role instead. - To remove folder-inherited acce…

ParameterTypeDescription
params *

omni_favorite_document

Add a published document to a user's favorites. Calls `PUT /v1/documents/{documentId}/favorite`. Only published documents can be favorited. The API returns `204` whether the document was newly favorited or was already a favorite, so this call is safe to repeat. When to Use: - To favorite a document for the calling user. - With an Organization API key, to favorite a document on behalf of another user (e.g. during a migration that preserves favorites). When NOT to Use: - On an unpublished document — the API returns 404. - To act on behalf of another user with a Personal Access Token — t…

ParameterTypeDescription
params *

omni_unfavorite_document

Remove a published document from a user's favorites. Calls `DELETE /v1/documents/{documentId}/favorite`. Only published documents can be unfavorited. The API returns `204` whether the document was previously favorited or not, so this call is safe to repeat. When to Use: - To unfavorite a document for the calling user. - With an Organization API key, to unfavorite a document on behalf of another user. When NOT to Use: - To act on behalf of another user with a Personal Access Token — that always returns 403; use an Organization API key instead. Returns: A short confirmation that the docu…

ParameterTypeDescription
params *

omni_list_document_favoriters

List the users who have favorited a published document. Calls `GET /v1/documents/{identifier}/favorites`, paginated and sorted by `favoritedAt`. **Requires an Organization API key** — Personal Access Tokens cannot call this endpoint. When to Use: - To answer "who favorited document X" — for example, a content-migration script that preserves favorites when replacing a document should call this once per document rather than iterating every user in the organization. When NOT to Use: - With a Personal Access Token — this endpoint always returns 403 for PATs; use an Organization API…

ParameterTypeDescription
params *

omni_bulk_update_document_labels

Add and/or remove multiple labels from a document in one atomic operation. Calls `PATCH /v1/documents/{documentId}/labels`. All changes succeed or fail together — there are no partial updates. Label matching is case-insensitive, and a label cannot appear in both `add` and `remove` in the same request (rejected client-side before the call). Labels must already exist (create them first via the create-label tool) before they can be added to or removed from a document. When to Use: - To apply and retire several labels on a document in a single call. - When you need an all-or-nothing guarantee…

ParameterTypeDescription
params *

omni_apply_document_label

Apply an existing label to a document, adding it alongside any labels already there. Calls `PUT /v1/documents/{documentId}/labels/{labelName}`. Documents can have multiple labels; this endpoint adds one without replacing the others. The API returns `204` whether the label was newly applied or already present, so this call is safe to repeat. When to Use: - To tag a document with one additional label. - To apply a **Verified** or **Homepage** label as an Organization Admin. When NOT to Use: - To add and remove several labels atomically — use `omni_bulk_update_document_labels`. - When the la…

ParameterTypeDescription
params *

omni_remove_document_label

Remove one label from a document. Calls `DELETE /v1/documents/{documentId}/labels/{labelName}`. **This endpoint is not idempotent**: if the label is not currently on the document, the API returns `404` — repeating a successful call will fail the second time. When to Use: - To untag a document from one specific label. When NOT to Use: - To add and remove several labels atomically — use `omni_bulk_update_document_labels`. - To repeat a call you already know succeeded — the second call returns 404 because the label is no longer present. Returns: A short confirmation that the label was…

ParameterTypeDescription
params *

omni_list_documents

List documents (dashboards and workbooks) with filtering and cursor pagination. Calls `GET /v1/documents`. Filters by folder, labels, creator, and by what a given user can see; optionally adds favorite/view counts, labels, deleted documents, only-favorites and only-shared-with-me views. When to Use: - To find a document's identifier before calling any other document tool. - To inventory the documents in a folder, or everything carrying a label. - To see what a specific user can view, has favorited, or has had shared with them. When NOT to Use: - To full-text search names and contents — us…

ParameterTypeDescription
params *

omni_get_document

Retrieve a dashboard document's configuration (name, filters, query presentations). Calls `GET /v1/documents/{documentId}`. The body is the round-trip shape the old `PUT` accepted, so it is still the quickest way to read a dashboard's filter configuration and query presentations in one call. Deprecated: superseded by `omni_get_document_state` (documents v2), which also reports draft state. Prefer it for new work. When to Use: - To inspect a dashboard's filters, refresh interval and query presentations. - To capture a dashboard's current configuration before editing it via a draft. When NOT…

ParameterTypeDescription
params *

omni_create_document

Create a new document on a model, optionally seeded with query presentations. Calls `POST /v1/documents`. Returns the new workbook and dashboard IDs plus the document identifier used in its URL. Deprecated: superseded by `omni_create_document_v2` (documents v2). Prefer it for new work. When to Use: - To create a dashboard/workbook programmatically on a known model. - To pin a specific URL identifier when promoting content between environments. When NOT to Use: - To copy an existing document — use `omni_duplicate_document`, which keeps the tiles and layout. - To edit an existing documen…

ParameterTypeDescription
params *

omni_delete_document

Delete a document, moving it to Trash. Calls `DELETE /v1/documents/{documentId}`. The document leaves every listing (unless `include: ["includeDeleted"]` is passed to `omni_list_documents`) and its schedules stop running. When to Use: - To retire a document the user has explicitly asked to delete. - To clean up documents created by a failed automation run. When NOT to Use: - To hide a document from most people — move it to a restricted folder with `omni_move_document` instead. - To discard in-progress edits — archive the draft with `omni_archive_document_draft` and keep the publishe…

ParameterTypeDescription
params *

omni_move_document

Move a document to another folder, or change its sharing scope. Calls `PUT /v1/documents/{documentId}/move`. The destination is explicit: either `folder_path`, or `to_root: true` to pull the document out of every folder. Passing neither is rejected, so a scope change can never move a document to the root level as a side effect. When to Use: - To file a document into a folder, or pull it back out to the root. - To flip a document between `organization` and `restricted` access along with its destination folder. When NOT to Use: - To grant one person access — use the document permission to…

ParameterTypeDescription
params *

omni_duplicate_document

Duplicate a published document into a new document. Calls `POST /v1/documents/{documentId}/duplicate`. Only published documents can be duplicated — duplicating a draft returns `404`. When to Use: - To branch off a copy of a dashboard before reworking it. - To template a report per team, region or customer. - To promote a document into another folder while keeping the original. When NOT to Use: - To move the original — use `omni_move_document`. - On a draft: publish it first, or duplicate the published version. Returns: A confirmation string with the new document's name, identifier, wor…

ParameterTypeDescription
params *

omni_upgrade_dashboard_layout

Upgrade a document to the advanced dashboard layout. Calls `POST /v1/documents/{documentId}/upgrade` — the same action as *File > Upgrade layout* in the UI. The operation is idempotent: a document already on the advanced layout is a no-op and reports `upgraded: false`. For published documents the upgrade runs through a draft-and-publish workflow automatically. When to Use: - To move a legacy dashboard onto the advanced layout before editing tiles. - To bulk-upgrade dashboards; re-running on an already-upgraded document is safe. When NOT to Use: - On workbook-only documents — with no das…

ParameterTypeDescription
params *

omni_transfer_document_ownership

Transfer ownership of a document to another organization member. Calls `PUT /v1/documents/{documentId}/transfer-ownership`. The named user is granted the `OWNER` role, every other `OWNER` is demoted to `MANAGER`, the new owner's explicit permits are revoked (owner access supersedes them), and the content search index is updated. The document's creator is unchanged and a restricted document stays in its folder. Transferring to the current owner is a no-op that still returns success. Deprecated: superseded by the document permission tools — `omni_grant_document_permissions` and `omni_update_…

ParameterTypeDescription
params *

omni_create_document_draft

Create a draft of a document (or return the existing one). Calls `POST /v1/documents/{documentId}/draft`. A draft is an isolated copy of the document — workbook and dashboard — that can be modified without touching the published version. Each branch can hold one draft per document; if a draft already exists for the document (or branch), that draft's identifier is returned instead of a second one being created. Requires **Editor** permissions or higher on the document. Deprecated: superseded by `omni_patch_document_draft` (documents v2), which creates the draft and applies changes in one…

ParameterTypeDescription
params *

omni_archive_document_draft

Archive a document's current draft, discarding its unpublished changes. Calls `DELETE /v1/documents/{documentId}/draft`. Archived drafts move to the **Archived** section of the document's **Drafts** drawer and are retained for 30 days. Passing `branch_id` archives that branch's draft instead of the one not attached to a branch. When to Use: - To throw away unpublished edits and return to the published version. - To clear a blocking draft before an operation that refuses to overwrite one. When NOT to Use: - To keep the changes — publish the draft instead. - To delete the whole document —…

ParameterTypeDescription
params *

omni_list_document_drafts

List the drafts attached to a published document. Calls `GET /v1/documents/{documentId}/drafts`. A document can have one draft per branch plus one draft not attached to a branch. Results are sorted by the draft's `updatedAt`, descending. Requires **Viewer** permissions or higher. When to Use: - To check whether a draft is blocking an upgrade or a rename. - To find a `draft_id` for `omni_remove_dashboard_from_document`. - To see which drafts are out of date against the published document. When NOT to Use: - To read a draft's contents — use the documents v2 draft tools. - On an unpublished…

ParameterTypeDescription
params *

omni_get_document_queries

Retrieve the queries behind a document, ready to re-run through the query API. Calls `GET /v1/documents/{documentId}/queries`. Each entry carries the query UUID, its name, a URL to the sheet in the workbook, and the query JSON that the run-query tool accepts as-is. When to Use: - To re-run a dashboard's queries programmatically and get the rows back. - To inspect which fields, filters and tables a dashboard depends on. - To copy a query definition as the starting point for a new one. When NOT to Use: - To read the dashboard's layout or filter bar — use `omni_get_document`. - To execute th…

ParameterTypeDescription
params *

omni_remove_dashboard_from_document

Remove the dashboard from a draft, leaving a workbook-only document. Calls `DELETE /v2/documents/{documentId}/draft/{draftId}/dashboard`. The change lands on the draft only; publish the draft to apply it to the published document. A document that is already workbook-only is unchanged. **Note:** the document's schedules are removed when the draft is published. When to Use: - To turn a dashboard document back into a plain workbook. - To drop a dashboard that duplicates another before publishing. When NOT to Use: - To delete individual tiles — patch the draft with the documents v2 tools. - T…

ParameterTypeDescription
params *

omni_create_document_v2

Create a brand-new document and publish it in one call. `POST /v2/documents`. Takes creation metadata (`model_id`, `name`, and optional `identifier` / `description` / `folder_id`) plus the same content slice as a draft patch: `query_presentations`, `controls`, `settings` and `containers`. A new document starts with a single empty seed tile at record key "1" — write to "1" (or send it as null) to replace the seed. Because this is the first publish of brand-new content, it is not subject to the organization's `requirePullRequestToPublish` policy, which gates edits to existing content. This i…

ParameterTypeDescription
params *

omni_get_document_state

Read a document's published state (tiles, controls, settings, layout). `GET /v2/documents/{documentId}`. The response is round-trippable: submit it verbatim as the `body` of `omni_create_draft_and_patch_document` or `omni_patch_document_draft`. Tiles come back keyed by a stable record key ("1", "2", …) which the server uses to identify existing tiles on a later patch, so no other identifier needs tracking; control IDs and container `instanceKey` / `referenceKey` values also round-trip unchanged. A workbook-only document (no dashboard layout yet) returns only the workbook-scoped fields (`na…

ParameterTypeDescription
params *

omni_create_draft_and_patch_document

Open a draft on a published document and apply the first patch. `PATCH /v2/documents/{documentId}/draft`. Creates a new draft on the published document and applies the patch — nothing goes live here. The response carries the new `draftIdentifier` for the follow-up calls. Pass `branch_id` to attach the draft to a branch; omit it for a draft on the main (unpublished) workspace. Step 3 of the lifecycle: create → get state → **create draft and patch** → `omni_patch_document_draft` (optional, repeatable) → `omni_publish_document_draft`. A document may have only one main draft at a time:…

ParameterTypeDescription
params *

omni_publish_document_draft

Publish the document's main draft, making it live (effectively irreversible). `POST /v2/documents/{documentId}/draft/publish`. No request body — the draft is consumed by the publish, so there is no undo: the previous published version is replaced for every viewer and recovering it means editing the document back. Verify the draft with `omni_get_document_draft_state` before calling this. Step 5 of the lifecycle: create → get state → create draft and patch → patch draft → **publish** → rename identifier. Only the main draft is publishable here; a branch-attached draft (one created…

ParameterTypeDescription
params *

omni_get_document_draft_state

Read a named draft's state — the unpublished counterpart of the document state. `GET /v2/documents/{documentId}/draft/{draftId}`. Returns the same shape as `omni_get_document_state` and is equally round-trippable as a patch `body`. `workbookModelId` here is the draft's workbook model, not the published document's — that is the model an upload must be created against before a `csv` / `spreadsheet` tile can reference it. Step 4b of the lifecycle: create → get state → create draft and patch → **read the draft** / patch it → publish. The `draft_id` is the `draftIdentifier` returned b…

ParameterTypeDescription
params *

omni_patch_document_draft

Apply a further patch to an existing draft — no draft creation, no publish. `PATCH /v2/documents/{documentId}/draft/{draftId}`. A pure apply: the body, content sections, field caps and tile-addressing rules are identical to `omni_create_draft_and_patch_document`, except that this route does not accept `branch_id` (the draft's branch was fixed when it was created). Step 4 of the lifecycle: create → get state → create draft and patch → **patch draft** (repeatable) → publish. Use it for the second and later edits to the same draft, and when `omni_create_draft_and_patch_document` retur…

ParameterTypeDescription
params *

omni_rename_document_identifier

Rename a published document's identifier (URL slug), live and immediately. `PUT /v2/documents/{documentId}/identifier`. The rename does not go through the draft/publish workflow: it applies at once. The former identifier is recorded in the document's rename history so old links redirect automatically. Only published documents can be renamed, and the new identifier must be a valid slug that no other document in the organization uses. Sending the identifier the document already has (case-sensitive) returns 200 without writing a history record. The last step of the lifecycle: create → get sta…

ParameterTypeDescription
params *

omni_list_folders

List folders within the organization, with filtering, sorting, and cursor pagination. Behavior depends on the API key type: Organization-scoped keys get full access (and must pass `owner_id` for `scope=restricted`); Personal Access Tokens get permission-filtered access matching the UI, auto-inferring `owner_id` for `scope=restricted` when omitted. When to Use: - To browse folders before creating, updating, or deleting one — folder IDs are required elsewhere. - To find a folder by name/path prefix, or to list a user's own restricted folders. - To audit which folders carry a given label (via…

ParameterTypeDescription
params *

omni_create_folder

Create a new folder, optionally nested under a parent. Folders can be nested up to 7 levels. Folder paths are automatically generated based on hierarchy, so a child folder's path includes its parents' paths. When to Use: - To set up a new place to organize documents or sub-folders. - To create a personal (`restricted`) folder scoped to a specific owner. When NOT to Use: - To rename or move an existing folder — use `omni_update_folder`. - To grant access to a folder — use `omni_grant_folder_permissions`. Returns: A confirmation string naming the created folder, its id, path, and scope.…

ParameterTypeDescription
params *

omni_update_folder

Update a folder's name and/or path segment. Requires Editor permissions or higher on the folder. Either or both of `name`/`path` can be updated in one request. Name-only updates do not touch descendant folders; path updates automatically update every descendant folder's path. When to Use: - To rename a folder. - To move/rename a folder's URL path segment (cascades to descendants). When NOT to Use: - To change folder labels — use `omni_bulk_update_folder_labels`. - To change who can access the folder — use the folder permission tools. Returns: A confirmation string with the folder's id,…

ParameterTypeDescription
params *

omni_delete_folder

Delete a folder. By default, only empty folders can be deleted. With `force=true`: all documents in the folder tree are archived (soft-deleted to trash), sub-folders are deleted recursively (deepest first), up to 100 total items, all in a single transaction — a partial failure rolls back completely. SSO embed users cannot force-delete entity folders. When to Use: - To remove an empty folder. - To remove a folder tree and archive its documents, with `force=true`. When NOT to Use: - To permanently purge documents — this only archives them to trash. Returns: A confirmation string that the…

ParameterTypeDescription
params *

omni_bulk_update_folder_labels

Add and/or remove multiple labels from a folder in a single all-or-nothing request. Label matching is case-insensitive. Labels must already exist (create them first with `omni_create_label`) and cannot appear in both `add` and `remove` in the same request. Adding or removing **Verified** or **Homepage** labels requires Organization Admin permissions. When to Use: - To tag or untag a folder with existing labels in one atomic call. When NOT to Use: - To create a brand-new label — use `omni_create_label` first. - To change a folder's name or path — use `omni_update_folder`. Returns: A con…

ParameterTypeDescription
params *

omni_grant_folder_permissions

Grant a content role on a folder to one or more users or user groups. When to Use: - To give new users or groups access to a folder's contents. When NOT to Use: - To change an existing grant's role — use `omni_update_folder_permissions` (this tool also works, but the update tool communicates intent more precisely). - To read current permissions — use `omni_get_folder_permissions`. - To remove access entirely — use `omni_revoke_folder_permissions`. Returns: A confirmation string naming the role and how many users/groups it was granted to. On failure, an `Error ...` string. Examples:…

ParameterTypeDescription
params *

omni_update_folder_permissions

Update the content role already granted to users or groups on a folder. When to Use: - To change the role of users/groups that already have some access to the folder. When NOT to Use: - To grant access to principals with none yet — use `omni_grant_folder_permissions`. - To remove access entirely — use `omni_revoke_folder_permissions`. Returns: A confirmation string naming the new role and how many users/groups it applies to. On failure, an `Error ...` string. Examples: - Downgrade a user to Viewer: `{"params": {"folder_id": "<uuid>", "role": "VIEWER", "user_ids": ["<uuid>"]}}` - Prom…

ParameterTypeDescription
params *

omni_get_folder_permissions

Retrieve the folder permissions that apply to a specific user. When to Use: - To inspect what access (direct role, AccessBoost, ownership) a user has on a folder before granting, updating, or revoking permissions. When NOT to Use: - To list every folder a user can see — use `omni_list_folders` with `user_id`. Returns: A markdown table of permission holders (id, name, type, role, ownership, AccessBoost), or the raw `permits` payload when `response_format` is `json`. On failure, an `Error ...` string. Examples: - `{"params": {"folder_id": "<uuid>", "user_id": "<uuid>"}}` - JSON: `{"param…

ParameterTypeDescription
params *

omni_revoke_folder_permissions

Revoke folder permissions from one or more users or user groups. When to Use: - To remove a user's or group's access to a folder entirely. When NOT to Use: - To merely downgrade a role — use `omni_update_folder_permissions` with `NO_ACCESS` or a lower role instead, if the principal should still resolve in permission listings. Returns: A confirmation string naming how many users/groups had access revoked. On failure, an `Error ...` string. Examples: - `{"params": {"folder_id": "<uuid>", "user_ids": ["<uuid>"]}}` - `{"params": {"folder_id": "<uuid>", "user_group_ids": ["<group-id>"]}}`…

ParameterTypeDescription
params *

omni_create_label

Create a new label for organizing and categorizing folders and documents. Any user can create basic labels; Organization Admin permissions are required to create **Verified** (`verified: true`) or **Homepage** (`homepage: true`) labels. When to Use: - To define a new label before applying it to folders (`omni_bulk_update_folder_labels`) or documents. When NOT to Use: - To apply an existing label to a folder — use `omni_bulk_update_folder_labels`. Returns: A confirmation string naming the created label. On failure, an `Error ...` string. Examples: - `{"params": {"name": "Dev", "color":…

ParameterTypeDescription
params *

omni_list_labels

List every label defined in the organization. Takes no filters — the API returns all of them. When to Use: - To see what labels exist before applying one to a folder, or before creating a new one (label names must be unique, case-insensitively). When NOT to Use: - To look up a single label's details — use `omni_get_label` (avoids scanning the full list). Returns: A markdown summary of every label (name, verified/homepage flags, usage count, color, description), or the raw `labels` array when `response_format` is `json`. On failure, an `Error ...` string. Examples: - `{"params": {}}`…

ParameterTypeDescription
params *

omni_get_label

Retrieve a single label by name. When to Use: - To check a label's current verified/homepage status, usage count, color, or description. When NOT to Use: - To browse all labels — use `omni_list_labels`. Returns: A markdown summary of the label's details, or the raw label payload when `response_format` is `json`. On failure, an `Error ...` string. Examples: - `{"params": {"label_name": "Production"}}` - `{"params": {"label_name": "In Review", "response_format": "json"}}` Error Handling: 404 means no label with this name exists (lookup is case-insensitive).

ParameterTypeDescription
params *

omni_update_label

Update an existing label — rename it, or change its Verified/Homepage/color/description. Only include the fields being changed. Users can update basic labels they created; Organization Admin permissions are required to modify **Verified** or **Homepage** status. When to Use: - To rename a label, recolor it, or promote/demote its Verified or Homepage status. When NOT to Use: - To apply or remove a label from a folder — use `omni_bulk_update_folder_labels`. Returns: A confirmation string naming the label's (possibly new) name. On failure, an `Error ...` string. Examples: - Rename: `{"pa…

ParameterTypeDescription
params *

omni_delete_label

Delete a label from the organization. Any user can delete basic labels; Organization Admin permissions are required to delete **Verified** or **Homepage** labels. Labels currently applied to any document cannot be deleted — remove the label from every document first. When to Use: - To permanently remove a label that is no longer needed and applied to nothing. When NOT to Use: - To remove a label from one folder only — use `omni_bulk_update_folder_labels` with `remove`. Returns: A confirmation string that the label was deleted. On failure, an `Error ...` string. Examples: - `{"params":…

ParameterTypeDescription
params *

omni_health_check

Verify connectivity and authentication against the Omni API. Calls `GET /v1/whoami` with the configured API key and reports who the key belongs to, its scope (Organization API key vs Personal Access Token), the organization role, and the resolved per-model permissions. When to Use: - As the first call after configuring the server, to confirm the key works. - To debug 401/403 responses from other tools. - To check whether the caller may run an action before attempting it. When NOT to Use: - To look up other people (use the user tools). - To list models in detail (use the model tools). Retur…

ParameterTypeDescription
params *

omni_get_api_info

Report how this server is configured, without calling the API. When to Use: - To confirm which instance the server points at and whether a key is set. - To find out which tool areas this server exposes. - When `omni_health_check` fails and you need to see the configuration. When NOT to Use: - To verify that the key actually works — that needs `omni_health_check`. Returns: A markdown summary of the instance URL, credential presence (never the key itself), timeout/retry settings, the rate limit, and the tool modules that are actually registered — naming the ones `OMNI_TOOL_MODULES` left o…

ParameterTypeDescription
params *

omni_whoami

Get the caller's full identity, API key scope, org role, and per-model permissions. Calls `GET /v1/whoami`. Retrieves the authenticated caller's own identity, API key scope, organization role, and resolved per-model permissions — useful for determining whether the caller can execute a specific action before attempting it. Pass `model_id` to scope `rolesByModel` to specific models. This is the full identity + permissions report; for a connectivity/configuration summary use the health-check tool instead. When to Use: - To find the caller's own user ID and membership ID. - To check the caller…

ParameterTypeDescription
params *

omni_list_api_tokens

List API tokens in the organization, optionally filtered by type. Calls `GET /v1/api-keys`. Lists API tokens in the organization — including Organization API keys, Personal Access Tokens, and MCP OAuth grants — with optional filtering by `type`. Only metadata is returned; actual secret token values are never included in the API response or in this tool's output. When to Use: - To audit which API tokens exist, who owns them, and whether they are enabled. - To find a token's `id` before calling the get/enable/disable/delete tools. - To filter by `type` (`organization`, `personal`, `mcp`) t…

ParameterTypeDescription
params *

omni_get_api_token

Retrieve a single API token by its id. Calls `GET /v1/api-keys/{id}`. Returns only metadata — name, type, enabled state, creation timestamp, and owning membership id — never the token's secret value. When to Use: - To check whether a specific token is currently enabled before disabling/deleting it. - To confirm a token's type or owner after finding its id via the list tool. When NOT to Use: - To retrieve the token's secret value — the API never returns it. - To list many tokens at once — use the list tool instead. Returns: A markdown summary of the token's fields, or the raw record…

ParameterTypeDescription
params *

omni_update_api_token

Enable or disable an API token without permanently deleting it. Calls `PUT /v1/api-keys/{id}` with `{"enabled": <bool>}`. This is idempotent — calling it twice with the same body produces the same result, and the response reflects the token's current state (even if it was already in the requested state). To permanently revoke a token, use the delete tool instead. When to Use: - To temporarily suspend a token (e.g. suspected leak) without losing its history/id. - To re-enable a previously disabled token. When NOT to Use: - To permanently revoke a token — use the delete tool instead. - No…

ParameterTypeDescription
params *

omni_delete_api_token

Permanently delete (revoke) an API token. Calls `DELETE /v1/api-keys/{id}`. Works for all token types — Organization API keys, Personal Access Tokens, and MCP OAuth grants. This is the same as revoking a token in the Omni app and cannot be undone. Concurrent deletes are safe: the first caller receives `200` and any subsequent caller receives `404` consistently. An Organization Admin can delete the token they are currently authenticated with, which is useful for self-service rotation — but note that doing so will invalidate the very key this server is using. When to Use: - To permanently…

ParameterTypeDescription
params *

omni_list_user_attributes

List all user attribute definitions in the organization. Calls `GET /v1/user-attributes`. Retrieves all user attribute definitions, including both custom-defined and system-defined attributes (e.g. `omni_user_id`, `omni_user_email`, `omni_is_org_admin`). User attributes enable row-level security filtering, personalize dashboard content, and configure per-user database credentials. Useful for embed integrations to discover available attributes for setting values in SSO sessions. This endpoint does not paginate — all records are returned in one response. When to Use: - To discover which user…

ParameterTypeDescription
params *

omni_get_git_configuration

Retrieve the Git configuration of a shared model. Calls `GET /v1/models/{modelId}/git` and reports the repository, auth method, base branch, pull-request policy, model path, webhook URL and the deploy public key. This is the first call of the promotion flow: it tells you whether a model is connected to git at all, whether pull requests are required (`always` / `users-only` / `never`), and whether the model is a git follower (read-only, updated only by merging pull requests). When to Use: - Before opening a pull request or merging a branch, to learn the model's promotion rules. - To fetch t…

ParameterTypeDescription
params *

omni_create_git_configuration

Connect a shared model to a Git repository. Calls `POST /v1/models/{modelId}/git`. This is step 1 of the promotion flow — once a model is connected, changes travel: branch → edit the model YAML → `omni_create_or_update_model_branch_pull_request` → merge the pull request in the provider → `omni_merge_model_branch` → `omni_sync_model_with_git`. With `auth_method: ssh` Omni generates a deploy keypair and returns the public key (unless you supply your own `deploy_private_key`); authorise it in the repository with write access. With `auth_method: https_token` you must pass `token`. Co…

ParameterTypeDescription
params *

omni_update_git_configuration

Change a shared model's Git configuration; only supplied fields change. Calls `PATCH /v1/models/{modelId}/git`. Use it to tighten or relax the promotion policy (`require_pull_request`, `git_follower`), retarget the base branch, move the model path, switch the auth method, or rotate a credential (`token` for HTTPS, `deploy_private_key` for SSH — authorise the matching public key in the repository first; a new key takes effect on the next git operation). When to Use: - To require pull requests (`always` / `users-only`) once a model is ready for a reviewed promotion flow. - To rotate a depl…

ParameterTypeDescription
params *

omni_delete_git_configuration

Disconnect a shared model from its Git repository. Calls `DELETE /v1/models/{modelId}/git`. The repository itself is untouched, but Omni stops syncing: pull requests can no longer be opened from branches, the pull-request policy stops applying, and a git-follower model becomes editable again. The stored credentials (deploy key or token) and the webhook secret are discarded, so reconnecting later means issuing a new credential and re-configuring the webhook. When to Use: - To retire a git integration, or before reconnecting the model to a different repository (create returns `409` while a c…

ParameterTypeDescription
params *

omni_sync_model_with_git

Sync a shared model with its configured Git repository. Calls `POST /v1/models/{modelId}/git/sync`, which pulls the latest changes from the repository and applies them to the shared model. This is the last step of the promotion flow — branch → edit YAML → open/update the pull request → merge the branch → sync — and also the way to pick up commits that landed in the repository outside Omni (a merged pull request from another author, a manual commit, a revert). When to Use: - After a pull request is merged in the git provider, to bring the shared model up to date. - To check whet…

ParameterTypeDescription
params *

omni_create_or_update_model_branch_pull_request

Push a model branch to Git and create or update its pull request. Calls `POST /v1/models/{modelId}/git/commit`, the API equivalent of the **Create Pull Request** / **Update Pull Request** buttons in Omni. It is step 3 of the promotion flow: create a branch in Omni and edit its model YAML, call this tool to push the branch and open the pull request, get it reviewed and merged in the git provider, then `omni_merge_model_branch` and `omni_sync_model_with_git`. By default the endpoint auto-detects whether the git branch exists: if it does not, it creates the branch and opens a pull request; if i…

ParameterTypeDescription
params *

omni_merge_model_branch

Merge a model branch into the shared model (irreversible). Calls `POST /v1/models/{modelId}/branch/{branchName}/merge`. It is step 4 of the promotion flow — branch → edit YAML → open/update the pull request → **merge the branch** → sync — and it changes the shared model everyone queries, so treat it as irreversible: there is no unmerge, and `delete_branch: true` also removes the branch. How the model's git settings gate the merge: - No git configuration: the merge succeeds, nothing is synced to git. - Git enabled without required pull requests: the merge succeeds and syncs to…

ParameterTypeDescription
params *

omni_list_models

List models with their metadata, optionally including active branches. Calls `GET /v1/models`. This is the entry point for every other tool in this area: model IDs, branch IDs, connection IDs and base model IDs all come from here. A branch is itself a model (`modelKind=BRANCH`), so the `id` of a branch record is exactly the `branch_id` the YAML, validate, refresh and schema tools expect. When to Use: - To find a model ID by name, kind or connection before any other call. - To list the branches of a shared model (`model_kind="BRANCH"` plus `base_model_id=<shared model id>`, or `include="act…

ParameterTypeDescription
params *

omni_create_model

Create a model on a connection (schema, shared, extension or branch). Calls `POST /v1/models`. The documented workflow is: create the `SCHEMA` model for a connection, load the database structure into it with `omni_refresh_model_schema`, then create the `SHARED` model(s) on top of it. When to Use: - To stand up a new connection's schema model, once, before refreshing it. - To create a shared model, or to bulk-create `SHARED_EXTENSION` models (departmental or user-attribute driven variants of the shared model). When NOT to Use: - To create a branch for day-to-day modelling work — branches…

ParameterTypeDescription
params *

omni_rename_model

Rename a shared, extension or branch model. Calls `PATCH /v1/models/{modelId}`. Useful for bulk maintenance of shared extension models created through the API, and for renaming a working branch before it is promoted. When to Use: - To rename a shared or shared extension model without opening the UI. - To give a branch a meaningful name before its pull request is opened. When NOT to Use: - On workbook models or query models — the endpoint rejects them. - On a branch that already has an open pull request; renaming would desync the model from the git remote and the API refuses it. Returns…

ParameterTypeDescription
params *

omni_archive_model

Archive (soft-delete) a shared or shared extension model and its content. Calls `DELETE /v1/models/{modelId}`. Only `SHARED` and `SHARED_EXTENSION` models can be archived here. Archiving takes the model, all of its content and every child extension model built on it to the trash; for shared models the git configuration is removed as well. The model is recoverable from the trash, but restoring it does **not** restore its content — that must be restored separately. When to Use: - To retire a shared or extension model that is no longer used, accepting that its workbooks and dashboards go to…

ParameterTypeDescription
params *

omni_get_model_yaml

Read a model's YAML files, with the checksums needed to write them back. Calls `GET /v1/models/{modelId}/yaml`. This is step one of the edit loop: **fetch (with checksums) → edit → send back with the checksum** via `omni_update_model_yaml`. The checksum is what makes a write fail loudly with `File has been modified since it was fetched` instead of silently discarding a colleague's change. When to Use: - Before editing any model file, to get its current content and checksum. - To read a branch's YAML (`branch_id`) while working in branch mode. - To inspect one file (`file_name`) or one sc…

ParameterTypeDescription
params *

omni_update_model_yaml

Create or overwrite model YAML files, with checksum conflict detection. Calls `POST /v1/models/{modelId}/yaml` once per entry in `files`. The safe loop is **fetch → edit → send back with the checksum**: read the files with `omni_get_model_yaml` (`include_checksums: true`), edit them, then pass each file's checksum in `checksums`. If anyone changed the file in between, the API answers `File has been modified since it was fetched` and nothing is overwritten — re-fetch, re-apply the edit and retry. In branch mode, pass the `branch_id` of the branch you are developing on (required when the…

ParameterTypeDescription
params *

omni_delete_model_yaml_file

Delete one topic, composite topic or view YAML file from a model. Calls `DELETE /v1/models/{modelId}/yaml`. Only files ending in `.topic`, `.composite_topic` or `.view` can be deleted — this tool rejects anything else (including the `model` and `relationships` files) before the request is sent. In branch mode, delete on the branch (`branch_id`) so the removal travels through the normal promotion path. When to Use: - To retire a topic, composite topic or view file from a model or branch. When NOT to Use: - On schema models or models in git follower mode — the endpoint refuses both. - T…

ParameterTypeDescription
params *

omni_validate_model

List a model's (or branch's) validation errors and warnings, grouped by file. Calls `GET /v1/models/{modelId}/validate`. Run this after every YAML edit and before promoting a branch: it reports broken references, orphaned topics and similar problems, together with any auto-fix the model service can offer. When to Use: - Right after `omni_update_model_yaml` or `omni_delete_model_yaml_file`. - Before promoting a branch, as the pre-merge check. - To triage which file is responsible for a modelling failure. When NOT to Use: - To read the YAML itself — use `omni_get_model_yaml`. - To test that…

ParameterTypeDescription
params *

omni_list_model_schemas

List every schema name available in a model (physical, virtual and dynamic). Calls `GET /v1/models/{modelId}/schemas`. The names it returns are the exact values `omni_get_model_yaml`'s `schema_name` and `omni_refresh_model_schema`'s `schemas` expect. The response is a plain sorted array, not a paginated one. When to Use: - To discover schema names before narrowing a YAML fetch or a selective schema refresh. - To confirm a schema exists in the model after a refresh. When NOT to Use: - To list tables or views — read the model YAML instead. - To list models — use `omni_list_models`. Ret…

ParameterTypeDescription
params *

omni_refresh_model_schema

Start a schema refresh so a model picks up the data source's latest structure. Calls `POST /v1/models/{modelId}/refresh` and returns immediately with a job ID — the refresh runs asynchronously. A hard refresh removes schemas, views and fields that no longer exist in the source (never anything users created); a soft refresh (`hard_refresh: false`) is additive, and is the only mode that accepts the selective `schemas` / `tables` filters. When to Use: - Right after `omni_create_model` for a `SCHEMA` model, to load the structure for the first time. - After the warehouse gains or drops tables…

ParameterTypeDescription
params *

omni_reset_model_cache

Invalidate the cached results of one cache policy on a model. Calls `POST /v1/models/{modelId}/cache_reset/{cachePolicyName}`. Every cached result older than `reset_at` (default: now) stops being served, so the next query hits the warehouse again. When to Use: - After a data load, when dashboards must stop serving stale results. - To invalidate everything cached before a known-bad load, by passing that load's timestamp as `reset_at`. When NOT to Use: - To pick up structural changes (new or dropped columns) — that is `omni_refresh_model_schema`. - Speculatively: resetting a busy policy…

ParameterTypeDescription
params *

omni_migrate_model

Copy a model's YAML from one connection to another at a given git ref. Calls `POST /v1/models/{modelId}/migrate`. The API reads the source model's full YAML from its git repository at `git_ref` (merged with the default branch), then writes it to the target model — into `branch_name` when given, creating that branch if it does not exist — replacing the target's model definition. Same-organization and cross-organization migrations are both supported. When to Use: - To promote a model definition between environments (for example a development connection to production) at a known commit. -…

ParameterTypeDescription
params *

omni_delete_model_branch

Delete a development branch from a shared model. Calls `DELETE /v1/models/{modelId}/branch/{branchName}`. This is the correct way to remove a branch model — `omni_archive_model` refuses branch kinds. Any un-promoted work on the branch goes with it. When to Use: - To clean up a branch after its changes were promoted or abandoned. When NOT to Use: - To archive a shared or extension model — use `omni_archive_model`. - Before the branch's changes are merged, unless you intend to discard them. - With a branch **ID**: this endpoint takes the branch **name**. Get names from `omni_list_models…

ParameterTypeDescription
params *

omni_delete_model_view

Delete or ignore a view in a model, choosing the layer it disappears from. Calls `DELETE /v1/models/{modelId}/view/{viewName}`. Unlike `omni_delete_model_yaml_file`, which always removes a file, this endpoint's `mode` decides whether the view is hard-deleted or merely marked ignored in the layer that overrides its parent — the usual way to hide an inherited view from an extension model without touching the shared model. When to Use: - To hide a view inherited from a parent model (`mode="COMBINED"` or `"MERGED"`). - To hard-delete a view that exists only in an extension layer (`mode="EX…

ParameterTypeDescription
params *

omni_get_model_ai_agent_actions

List a model's configured AI agent actions — sample queries and skills. Calls `GET /v1/models/{modelId}/ai-agent-actions`. Sample queries come from the model's `sample_queries` and from each topic's; skills come from the model's `skills` and each topic's, deduplicated by ID with topic skills overriding model skills. Each action carries a ready-made `prompt` that can be submitted to the AI job endpoint. When to Use: - To surface suggested prompts for a model in an AI interface. - To discover which curated questions and skills a model already ships. When NOT to Use: - To run one of the prom…

ParameterTypeDescription
params *

omni_get_topic

Retrieve one topic's resolved views, fields and joins. Calls `GET /v1/models/{modelId}/topic/{topicName}`. The response mirrors the topic's IDE parameters: base view, default and always-where filters, the join path map, relationships, and every view with its dimensions and measures. It is the fastest way to learn what a topic can be queried on without reading the whole model's YAML. When to Use: - To find the field names available before building a query. - To understand how views are joined inside a topic (join type, direction, join path). - To check the effect of a YAML edit on the resol…

ParameterTypeDescription
params *

omni_run_query

Run a query against an Omni model and return the resulting rows. Calls `POST /v1/query/run`. The API answers with a base64-encoded Apache Arrow table — as one JSON object or as newline-delimited JSON, both of which this tool decodes into rows and renders as a markdown table (or JSON) alongside the generated SQL and execution metadata. Supply the query either field-by-field (`model_id` + `table` + `fields` + …) or as a raw `query` object copied from a workbook's Inspector panel — the raw object wins whenever it is present. When to Use: - To answer a data question with real numbers from…

omni_wait_for_query_results

Poll query jobs that outlived their request and return their results. Calls `GET /v1/query/wait` with the job IDs (sent as a JSON array, exactly as the API expects, and reading back either one JSON object or the newline-delimited JSON the endpoint streams) and keeps polling every `poll_interval_seconds` until the response reports `timed_out: false` or `max_wait_seconds` of **wall clock** time has passed. Each request is a server-side long poll, so its timeout is clamped to whatever is left of that budget — the tool cannot outstay it. Results are decoded from base64 Apache Arrow and rendered…

ParameterTypeDescription
params *

omni_get_job_status

Get the status of an asynchronous job, such as a schema refresh. Calls `GET /v1/jobs/{jobId}/status` and reports whether the job is `RUNNING`, `COMPLETED` or `FAILED`. Only schema-refresh jobs are supported today; other job types answer 403. Poll no more than once every 2-5 seconds. When to Use: - After starting a schema refresh, to find out when it finished. - To confirm a long-running job failed rather than still running. When NOT to Use: - For query jobs — poll those with `omni_wait_for_query_results`, which also returns the rows. - To start a job; this tool only reads status. Retur…

ParameterTypeDescription
params *

omni_list_schedules

List scheduled dashboard deliveries and alerts, with filtering and sorting. Calls `GET /v1/schedules`. Each record carries the schedule's cadence, timezone, dashboard, owner, destination type, format, recipient count, paused state and the outcome of the last run. Pagination is offset-based: `cursor` is a page number and the next one is printed with the results. When to Use: - To find a schedule's ID before getting, updating, pausing or deleting it. - To audit which dashboards deliver where (`destination`), or which schedules are failing (`status: error`). - To list one person's schedules (…

ParameterTypeDescription
params *

omni_get_schedule

Retrieve one schedule's full configuration, destinations and current status. Calls `GET /v1/schedules/{scheduleId}`. Returns the cadence and timezone, the owner, filter configuration, alert condition, paused/system-disabled state and every delivery destination with its last status. When to Use: - Before updating a schedule, to see what it currently sends and to whom. - To debug a failing delivery (last status, system-disabled reason). - To confirm an alert's condition type and trigger query. When NOT to Use: - To search across schedules — use `omni_list_schedules`. - To read just the reci…

ParameterTypeDescription
params *

omni_create_schedule

Create a scheduled delivery or alert for a dashboard. Calls `POST /v1/schedules`. Supports email, Slack, SFTP, webhook and Amazon S3 destinations, dashboard filters, format options, alert conditions, and an immediate test delivery via `test_now`. Slack destinations need a Slack workspace connected to Omni first. When to Use: - To schedule a recurring dashboard delivery (`cron` + `timezone`). - To create an alert: set `condition_type` and `condition_query_map_key`. - To send a one-off test of a configuration with `test_now: true`. When NOT to Use: - To change an existing schedule — use `om…

omni_update_schedule

Update an existing schedule; omitted properties keep their current values. Calls `PUT /v1/schedules/{scheduleId}` with the same body vocabulary as `omni_create_schedule`, every field optional. Changes apply to future runs — a job already running is unaffected. When to Use: - To change a schedule's cadence, timezone, format or print options. - To repoint a delivery at a different destination or recipient list. - To add, change or remove an alert condition. When NOT to Use: - To only add or remove email recipients — `omni_add_schedule_recipients` and `omni_remove_schedule_recipients` ar…

omni_delete_schedule

Permanently delete a schedule and stop all of its future deliveries. Calls `DELETE /v1/schedules/{scheduleId}`. This cannot be undone — the schedule, its destinations and its recipient list are gone. When to Use: - To retire a delivery nobody needs any more. - To clean up a schedule created by mistake. When NOT to Use: - To stop deliveries temporarily — `omni_pause_schedule` is reversible. - To drop a few recipients — use `omni_remove_schedule_recipients`. Returns: A short confirmation naming the deleted schedule id, or an `Error ...` string. Examples: - `{"params": {"schedule_id":…

ParameterTypeDescription
params *

omni_pause_schedule

Pause a schedule so it stops running until it is resumed. Calls `PUT /v1/schedules/{scheduleId}/pause`, which sets the schedule's `disabledAt`. The configuration and recipients are preserved. When to Use: - To stop deliveries during a data migration, freeze or holiday. - To silence a noisy alert without losing its configuration. When NOT to Use: - To remove a delivery for good — use `omni_delete_schedule`. - On a schedule the system disabled — pausing that returns 400; fix the underlying problem (missing query, lost access, orphaned filter keys) first. Returns: A short confirmation n…

ParameterTypeDescription
params *

omni_resume_schedule

Resume a paused schedule so it runs on its cadence again. Calls `PUT /v1/schedules/{scheduleId}/resume`, clearing the schedule's `disabledAt`. The next delivery happens at the next cron occurrence, not immediately. When to Use: - To restart deliveries after a pause. - After fixing whatever caused a delivery to be paused. When NOT to Use: - To send a delivery right now — use `omni_trigger_schedule`. - On a system-disabled schedule — that returns 400 until the underlying problem is fixed. Returns: A short confirmation naming the resumed schedule id, or an `Error ...` string. Examples:…

ParameterTypeDescription
params *

omni_trigger_schedule

Run a schedule immediately — this sends a real delivery to real recipients. Calls `POST /v1/schedules/{scheduleId}/trigger`. The delivery goes out at once, outside the normal cadence, to every configured recipient (email inboxes, the Slack channel, the SFTP server, the webhook or the S3 bucket). It cannot be recalled, so confirm with the user before triggering a schedule with an external audience. When to Use: - To verify a schedule end to end after changing it. - To re-send a delivery that failed or was missed. - To publish an off-cycle run on request. When NOT to Use: - As a way to fetc…

ParameterTypeDescription
params *

omni_transfer_schedule_ownership

Transfer a schedule to a new owner in the same organization (irreversible here). Calls `PUT /v1/schedules/{scheduleId}/transfer-ownership`. Ownership changes immediately and this endpoint cannot reverse it — transferring back requires a second transfer. For Slack, SFTP and webhook destinations (and email without personalization) future jobs run with the new owner's permissions, data access and user attributes; with personalized email deliveries each recipient's own access is used instead. When to Use: - When a schedule's owner leaves the team or changes role. - To move a delivery onto an a…

ParameterTypeDescription
params *

omni_list_schedule_recipients

List who or what a schedule delivers to, with destination-specific detail. Calls `GET /v1/schedules/{scheduleId}/recipients`. The response shape depends on the destination: email returns the recipients (including whether each is an email-only user), Slack returns channel/user IDs, SFTP returns address, port and username, webhook returns the URL, and S3 returns the bucket, region, role ARN, external ID, key prefix and filename template. When to Use: - Before adding or removing recipients, to see the current list. - To audit who receives a dashboard's data. - To read an S3 destination's extern…

ParameterTypeDescription
params *

omni_add_schedule_recipients

Add recipients to an existing scheduled email delivery. Calls `PUT /v1/schedules/{scheduleId}/add-recipients` with email addresses, user IDs, or both. Email destinations only — every other destination type is rejected with a 400. When to Use: - To add people to an existing email delivery without touching the rest of its configuration. - To subscribe a new team member to a report. When NOT to Use: - On Slack, SFTP, webhook or S3 schedules — change `recipients` (or the destination fields) with `omni_update_schedule` instead. - To replace the whole recipient list — remove the old one…

ParameterTypeDescription
params *

omni_remove_schedule_recipients

Remove recipients from an existing scheduled email delivery. Calls `PUT /v1/schedules/{scheduleId}/remove-recipients` with email addresses, user IDs, or both. Email destinations only. The removed people stop receiving the delivery immediately; re-adding them takes another call. When to Use: - To unsubscribe someone who left the team or asked to be removed. - To trim a delivery list before triggering a run. When NOT to Use: - On Slack, SFTP, webhook or S3 schedules — the API rejects those. - To stop the delivery for everyone — pause or delete the schedule instead. Returns: A confirmatio…

ParameterTypeDescription
params *

omni_manage_email_only_user

Create or update an email-only delivery recipient (no Omni account needed). Calls `POST /v1/users/email-only`. An email-only user receives deliveries without having an Omni account; matching an existing email updates that user's attributes instead of creating a duplicate. **Organization API keys only** — Personal Access Tokens are not accepted. When to Use: - To give an external stakeholder a personalized delivery. - To set or change the user attributes (row-level filters, timezone) applied when a personalized delivery is rendered for that address. When NOT to Use: - For more than one p…

ParameterTypeDescription
params *

omni_bulk_manage_email_only_users

Create or update up to 20 email-only delivery recipients in one call. Calls `POST /v1/users/email-only/bulk`. Each entry is an email plus optional user attributes; existing emails are updated rather than duplicated. **Organization API keys only** — Personal Access Tokens are not accepted. When to Use: - To onboard a whole distribution list before creating an email schedule. - To re-apply user attributes across many external recipients at once. When NOT to Use: - For a single recipient — `omni_manage_email_only_user` is simpler. - For more than 20 people in one call — split the list in…

ParameterTypeDescription
params *

omni_list_uploads

List CSV and spreadsheet uploads (data input tables) in the organization. Calls `GET /v1/uploads` with metadata and optional filtering. This endpoint requires **Organization Admin** permissions. When to Use: - To find the upload ID behind a data input table before replacing or deleting it. - To audit which CSV/spreadsheet files are attached to a connection or model. - To search uploads by file name, or page through all of them. When NOT to Use: - To read the data *inside* an upload — query the model view the upload created instead. - To find the underlying rows without an id — this only…

ParameterTypeDescription
params *

omni_upload_csv

Upload a CSV file to create a new data input table and view. Calls `POST /v1/uploads`. The file is parsed, converted to Arrow format, uploaded to storage, written to the connection's table upload (scratch) schema, and a view is created in the specified model. Requires the **Upload data** setting (Settings > Content permissions) to be enabled by an Organization Admin, and the caller must have **Restricted Querier** permissions or higher on the target model. The file must have a `.csv` extension and is capped at 500,000 rows — larger files are truncated (see the `truncated` flag in the result…

ParameterTypeDescription
params *

omni_replace_upload_data

Replace the data in an existing CSV upload, keeping its id and view name. Calls `PUT /v1/uploads/{uploadId}`. Requires **Organization Admin** permissions. This FULLY REPLACES the upload's existing data with the new file: the view's `uploaded_table_name` and every reference to it (returned as `refreshedModelIds`) are automatically re-pointed at the new data, but the upload id and view name never change. The previous data's artifacts are left untouched but are no longer reachable through this upload — there is no undo. When to Use: - To refresh a data input table with a new export while keep…

ParameterTypeDescription
params *

omni_delete_upload

Delete a CSV upload, removing its file from storage. Calls `DELETE /v1/uploads/{uploadId}`, which removes the file from storage and marks the upload record as deleted. Requires **Organization Admin** permissions. There is no undo — the file and its data are gone once deleted. When to Use: - To remove an upload that is no longer needed, after confirming with `omni_list_uploads` that nothing important still depends on it. When NOT to Use: - To update the data in place while keeping documents/queries pointed at the same id — use `omni_replace_upload_data` instead. Returns: A short con…

ParameterTypeDescription
params *

omni_list_user_groups

List user groups, sorted by creation time. Calls `GET /scim/v2/groups`. Pagination is SCIM-style (`startIndex`/`count`), not cursor-based: the response reports `totalResults` and `itemsPerPage`, and this tool prints the next `start_index` to pass when more groups remain. When to Use: - To browse or search for a group by paging through the whole list. - To get the total count of user groups in the organization. When NOT to Use: - To fetch one group you already have the id for (use `omni_get_user_group`). Returns: A markdown table of `id`, `displayName`, member count, `created`, and `lastMod…

ParameterTypeDescription
params *

omni_get_user_group

Retrieve a user group using its unique ID. Calls `GET /scim/v2/groups/{userGroupId}`. When to Use: - To look up a group's current name and membership before editing it. When NOT to Use: - To browse all groups (use `omni_list_user_groups`). Returns: A markdown summary of the group (id, resource type, created/last-modified timestamps, and a member table), or the raw SCIM group resource when `response_format` is `json`. On failure, an `Error ...` string. Examples: - `{"params": {"user_group_id": "mEhXj6ZI"}}` Error Handling: Requires an Organization API key — Personal Access Tokens are no…

ParameterTypeDescription
params *

omni_create_user_group

Create a user group. Calls `POST /scim/v2/groups`. To manage model and connection role assignments for the new group, use `omni_assign_user_group_model_role`. When to Use: - To create a new group of users that should share model/connection roles. When NOT to Use: - To add or remove members on an existing group (use `omni_update_user_group`). - To assign model roles (use `omni_assign_user_group_model_role`). Returns: A short confirmation string with the new group's name, id, and member count. On failure, an `Error ...` string. Examples: - `{"params": {"display_name": "Blob Sales"}}` - `{"p…

ParameterTypeDescription
params *

omni_replace_user_group

Replace the specified user group, including its membership. Calls `PUT /scim/v2/groups/{userGroupId}`. Per the SCIM 2.0 specification, `PUT` replaces the entire group resource — `member_ids` overwrites the existing membership list entirely. To add or remove individual members without replacing the full list, use `omni_update_user_group` instead. When to Use: - To rename a group and/or set its complete membership list in one call. When NOT to Use: - To add/remove a handful of members without touching the rest (use `omni_update_user_group`'s `add_member_ids`/`remove_member_ids`). Returns…

ParameterTypeDescription
params *

omni_update_user_group

Update a user group by applying SCIM 2.0 patch operations. Calls `PATCH /scim/v2/groups/{userGroupId}`. Use this to add or remove individual members, or to rename the group, without affecting other attributes. To replace the entire group resource (including the full membership list) in one request, use `omni_replace_user_group` instead. When to Use: - To add or remove a few members from an existing group. - To rename a group without touching its membership. When NOT to Use: - To set the complete membership list in one call (use `omni_replace_user_group`). Returns: A short confirmation stri…

ParameterTypeDescription
params *

omni_delete_user_group

Delete the specified user group. Calls `DELETE /scim/v2/groups/{userGroupId}`. This does not delete the group's member users, only the group itself and its role assignments. When to Use: - To permanently remove a group that is no longer needed. When NOT to Use: - To remove members while keeping the group (use `omni_update_user_group`). Returns: A short confirmation string with the deleted group's id. On failure, an `Error ...` string. Examples: - `{"params": {"user_group_id": "mEhXj6ZI"}}` Error Handling: Requires an Organization API key — Personal Access Tokens are not accepted on thi…

ParameterTypeDescription
params *

omni_get_user_group_model_roles

Retrieve the model role assignments for a user group. Calls `GET /v1/user-groups/{userGroupId}/model-roles`. All members of the group inherit these roles. Only `shared` and `shared_extension` models can have model roles assigned. When to Use: - To audit or confirm what a group's members can do on a given model or connection before granting or changing access. When NOT to Use: - To check a specific user's *effective* (resolved) roles, including ones inherited from other groups (use `omni_get_user_model_roles`). Returns: A markdown table of `modelId`, `connectionId`, `roleName`, and `bas…

ParameterTypeDescription
params *

omni_assign_user_group_model_role

Assign or update a model role for a user group. Calls `POST /v1/user-groups/{userGroupId}/model-roles`. If the group already has a role for the specified model, this updates it to the new role. All members of the group inherit this role. Only `shared` and `shared_extension` models can be assigned model roles. When to Use: - To grant (or change) a group's access level to a model or connection. When NOT to Use: - To assign a role to a single user directly (use `omni_assign_user_model_role`). - To manage group membership itself (use `omni_update_user_group`). Returns: A short confirmation str…

ParameterTypeDescription
params *

omni_get_user_model_roles

Retrieve the model role assignments for a user. Calls `GET /v1/users/{userId}/model-roles`. This includes both direct role assignments and roles inherited from user group memberships, so a user can have several rows for the same model — the row with `resolved: true` is the one that determines their effective permissions. When to Use: - To debug why a user does or doesn't have access to a model, including whether the role came from a direct grant, a group, or a connection's base role. When NOT to Use: - To see only a group's own assignments, not what an individual user resolves to (u…

ParameterTypeDescription
params *

omni_assign_user_model_role

Assign or update a model role for a user. Calls `POST /v1/users/{userId}/model-roles`. If the user already has a role for the specified model, this updates it to the new role. Only `shared` and `shared_extension` models can be assigned model roles. When to Use: - To grant (or change) one user's direct access level to a model or connection, independent of their group memberships. When NOT to Use: - To grant access to everyone in a group at once (use `omni_assign_user_group_model_role`). Returns: A short confirmation string with the user id, model/connection id, and assigned role name. O…

ParameterTypeDescription
params *

omni_list_email_only_users

List email-only users and their user attributes. Email-only users are lightweight identities (e.g. schedule/routine recipients) that never log in to Omni and have no SCIM membership record — this is a different population from the SCIM users listed by `omni_list_users`. When to Use: - To find the membership ID behind an email-only recipient's address. - To audit which custom user attributes are set on email-only identities. When NOT to Use: - To list users who can log in — use `omni_list_users`. - To page through more than 20 records at once — this endpoint caps `page_size` at 20; c…

ParameterTypeDescription
params *

omni_create_user

Create a standard SCIM user. Builds the SCIM 2.0 request body (`userName`, `displayName`, and the `urn:omni:params:1.0:UserAttribute` extension) from the first-class fields, or sends `scim_body` verbatim when provided. To manage model/connection role assignments for the new user, use the user model role tools instead. When to Use: - To provision a new user account ahead of an SSO or manual invite. - To set initial custom user attributes at creation time. When NOT to Use: - To create an embed user — embed users are provisioned through embed SSO/JWT, not this endpoint. - To change an exis…

ParameterTypeDescription
params *

omni_list_users

List standard users in the organization, sorted by creation time. Uses SCIM `startIndex`/`count` pagination, not the cursor pagination used elsewhere in this server. Use `omni_list_embed_users` to retrieve embed users instead. When to Use: - To find a user's `id` before calling `omni_get_user`/`omni_update_user`. - To search for a user by exact or partial `userName` with `filter`. When NOT to Use: - To list embed users — use `omni_list_embed_users`. - To list users who have never logged in and have no SCIM record — use `omni_list_email_only_users`. Returns: A markdown summary (record…

ParameterTypeDescription
params *

omni_get_user

Retrieve a standard user using their unique ID. When to Use: - To inspect a single user's `active` state, emails, groups, and custom user attributes before updating or deleting them. When NOT to Use: - To retrieve an embed user — use `omni_get_embed_user`. - To look up many users at once — use `omni_list_users` with `filter`. Returns: A markdown detail view (id, userName, displayName, active, emails, groups, timestamps, user attributes, last login) or, with `response_format="json"`, the raw SCIM resource. Examples: - `{"params": {"user_id": "9e8719d9-276a-4964-9395-a493189a247c"}}`…

ParameterTypeDescription
params *

omni_replace_user

Replace the specified user's entire SCIM resource. Per the SCIM 2.0 specification, `PUT` replaces the whole resource: any optional attribute omitted from the request (`display_name`, `active`, `user_attributes`) is reset to its default rather than left unchanged. To update individual attributes without affecting others, use `omni_update_user` instead. When to Use: - To fully overwrite a user's profile in one call, when you intend to set every attribute explicitly. When NOT to Use: - To change just one or two fields — use `omni_update_user`, or this call will silently clear the fields…

ParameterTypeDescription
params *

omni_update_user

Partially update the specified user via SCIM PATCH operations. Unlike `omni_replace_user`, attributes not referenced by an operation are left unchanged. Builds the SCIM `Operations` list from `active`, `display_name`, `user_name`, and `user_attributes` (as `replace` operations), or sends `operations` verbatim when provided — `operations` is a raw override and cannot be combined with those fields. Omni does not have a reversible "deactivated" state: setting `active` to `false` revokes the user's membership permanently — their schedules are deleted (unless transferred first) and their Pers…

ParameterTypeDescription
params *

omni_delete_user

Delete the specified standard user. Deleting a user revokes their membership, which is **not reversible**: their schedules are deleted (unless transferred first) and their Personal Access Tokens are disabled. Use `omni_delete_embed_user` to delete embed users instead. When to Use: - To permanently remove a user's membership from the organization, after confirming any owned schedules have been transferred. When NOT to Use: - To temporarily suspend a user — Omni has no reversible deactivated state; think carefully before calling this or `omni_update_user` with `active=false`. - To del…

ParameterTypeDescription
params *

omni_list_embed_users

List embed users in the organization, sorted by creation time. Uses SCIM `startIndex`/`count` pagination. Use `omni_list_users` to retrieve standard users instead. When to Use: - To find an embed user's `id` by their `embedExternalId` before calling `omni_get_embed_user`/`omni_delete_embed_user`. When NOT to Use: - To list standard (non-embed) users — use `omni_list_users`. Returns: A markdown summary (record count, next `start_index` hint, one line per embed user with `id`/`embedExternalId`/`embedEntity`/`active`) or, with `response_format="json"`, the raw SCIM `Resources` array plus…

ParameterTypeDescription
params *

omni_get_embed_user

Retrieve an embed user using their unique ID. Use `omni_get_user` to retrieve standard (non-embed) users instead. When to Use: - To inspect a single embed user's `embedExternalId`, `embedEntity`, and group memberships before deleting them. When NOT to Use: - To retrieve a standard user — use `omni_get_user`. Returns: A markdown detail view (id, userName, displayName, active, emails, groups, timestamps, plus `embedEntity`/`embedExternalId`/`embedEmail`) or, with `response_format="json"`, the raw SCIM resource. Examples: - `{"params": {"user_id": "2212aecf-a2ba-4d99-b23b-f615bc4c6522"}}…

ParameterTypeDescription
params *

omni_delete_embed_user

Delete the specified embed user. Use `omni_delete_user` to delete standard (non-embed) users instead. When to Use: - To permanently remove an embed user's identity, e.g. after the external end-user it represents is deprovisioned. When NOT to Use: - To delete a standard user — use `omni_delete_user`. Returns: A confirmation string with the deleted embed user's `id`, or an `Error ...` string on failure. Examples: - `{"params": {"user_id": "2212aecf-a2ba-4d99-b23b-f615bc4c6522"}}` Error Handling: 429 means the 60 requests/minute rate limit was hit. Requires an Organization API key; Pers…

ParameterTypeDescription
params *