> For the complete documentation index, see [llms.txt](https://docs.rootcause.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rootcause.ai/api-and-integrations/api-access/mcp-integration/mcp-capabilities.md).

# What You Can Do

A connected assistant works with the same objects the platform UI shows: sources, datasets, the [ontology](https://docs.rootcause.ai/user-guide/ontology-concepts.md), [Digital Twins](https://docs.rootcause.ai/user-guide/creating-digital-twin.md), simulations, reports, and [applications](https://docs.rootcause.ai/more-details/applications.md). Ask in plain language; tool names below are what the assistant reports while working, not something you type.

## Terminology

The same two words mean the same thing everywhere — the UI, the REST API, and these tools. A **Source** is raw ingested data (an uploaded file, a connector import, an extracted document), identified by `sourceId`. A **Dataset** is a derived, queryable table over one or more sources (filters, joins, aggregations, SQL), identified by `datasetId`.

Sources belong to the **organisation** and are linked into workspaces; the same source can appear in several. Everything else lives in a single **workspace**. A connection belongs to the organisation too, but a connector is mounted per workspace: the same connection can be mounted in several, each with its own scope, and its tables are readable only where it is mounted. If a source is not yet linked into the workspace, the assistant links it first (`link_source_to_workspace`) — except a connector's live table, which no link brings into a workspace whose own mount does not reach it; the assistant mounts the connector here instead.

## Explore what a workspace contains

* "What workspaces do we have?" (`list_workspaces`)
* "What is in this workspace?" for a one-call inventory of sources, datasets, ontology, and twins (`get_workspace_overview`)
* "What data exists in the org that is not linked here?" (`browse_sources` at `org:`)
* "Show me the schema of the shipments table" (`get_source_schema`)

## Ask questions of your data

* "Revenue by region last quarter" becomes an [Anchor SQL](https://docs.rootcause.ai/api-and-integrations/anchor-sql.md) query over ontology concepts — the ontology plans the joins and time alignment (`query_data`)
* Raw SQL against the underlying sources, for the queries Anchor SQL cannot express (`query_sql`)
* "Show me the first rows" (`browse_sources` with the source's key)
* "Chart churn by tenure" (`create_chart`)

For metric questions, the assistant reuses the workspace's defined metrics by name rather than re-deriving them, and states the definition it used.

## Bring new data in

Each route produces a new source. All three non-preview modes of `documents_to_source` run in the background and hand back a run id to poll with `check_background_runs`. `import_source` and `research_to_table` wait for the work and return the finished source directly, and so does each upload command `upload_files` hands out:

* Files from your computer: "upload these three spreadsheets" (`upload_files`, see [Uploading files](#uploading-files))
* Tables in connected databases and storage, read in place and never copied: the assistant finds them with `browse_sources`, and mounts the connector first (`mount_connector`) when its tables are not listed yet
* External APIs (`register_connector`, `import_source`). A URL that downloads a file, such as a spreadsheet or a zip, is refused here: upload the file instead.
* Structured data out of documents in the workspace (`documents_to_source`)
* Web pages or a research prompt into a table, on deployments with web research enabled (`research_to_table`)

### Uploading files

`upload_files` takes up to 50 files per call, in any format [Local Uploads](https://docs.rootcause.ai/data-sources-and-connectors/local-uploads.md#supported-formats) accepts, and can group them under a new folder source. Each file goes in one of two ways:

* **Through an upload link.** The assistant gets one link per file, with the exact command that sends it (`curl -T <file> <link>`). It runs the command on the machine holding the file, and the command answers with the source the file became. Each link works once and expires 30 minutes after it was issued; after that, the assistant asks for a new one. This route needs an assistant that can run commands, such as Claude Code or another agent with a terminal.
* **Inline.** A small text file the assistant already holds, such as a CSV it wrote, can travel inside the call itself: CSV, TSV, JSON, JSONL, Markdown or plain text, up to 5 MB. It is ingested at once. This is the only route for a chat assistant that cannot run commands.

A zip archive is refused: extract it and upload the files inside. An `.xlsx` file becomes a [workbook source](https://docs.rootcause.ai/data-sources-and-connectors/local-uploads/excel-workbooks.md), and the assistant then finds its tables with `detect_workbook_tables`. Uploading needs write access to Sources (see [Permissions and Safety](https://docs.rootcause.ai/api-and-integrations/api-access/mcp-integration/mcp-permissions-and-safety.md)).

## Shape data for analysis

The server distinguishes three ways of combining sources: joins (widening on a shared key), concatenation (stacking same-shaped files), and time alignment (bucketing or as-of matching). The assistant:

* Probes real values before trusting a join key (`probe_join_keys`)
* Builds and modifies datasets (`create_dataset`, `modify_dataset`)
* Maintains the ontology that makes columns joinable across sources (`query_ontology`, `modify_ontology`)

## Do causal work

* Run causal discovery on a dataset, stopping before training (`create_digital_twin`)
* Create and train Digital Twins (`create_digital_twin`, `train_digital_twin`)
* Inject domain knowledge by adding or removing edges, then retrain on the edited graph (`train_digital_twin`)
* Review a trained twin's quality before trusting it (`review_digital_twin`)

Discovery and training are background jobs: the assistant starts them and reports back when they finish.

## Simulate and predict

* "What if we raise price 10 percent?" (`query_digital_twin`)
* "What drives churn?" (`query_causal_graph`)
* Interventions, optimisations, forecasts, root cause analyses
* "Which of these customers is at risk?" predicts pasted rows, a dataset, or an earlier prediction run and ranks them by their chance of an outcome, lowest first (`predict_twin_rows`); "and what would keep them?" then searches the smallest change that moves the ones below the line (`score_twin_rows`)
* "Does marketing drive demand in every region?" across a multi-environment twin (`compare_environment_graphs`)

## Produce reports and applications

* Analytical reports from workspace evidence (`create_report`), revised in place (`edit_report`)
* Interactive Applications: runnable flows with dashboards, forms, and viewer-adjustable simulations (`create_application`, `publish_application`). See [Applications](https://docs.rootcause.ai/more-details/applications.md).

## Monitor usage

Ask usage questions directly: AI spend over time, top spenders by user or workspace, failure rates, security-relevant events (`query_usage_monitor`). Reads the same organisation audit log as the Usage Monitor page.

## Pacing

* **Search before import.** The assistant checks existing sources, datasets, and registered connectors before fetching anything external.
* **Background jobs return run ids, not results.** The assistant polls for completion before claiming the data or model exists.

For which actions need your confirmation, see [Permissions and Safety](https://docs.rootcause.ai/api-and-integrations/api-access/mcp-integration/mcp-permissions-and-safety.md). For the packaged procedures behind the involved flows, see [Guided Skills](https://docs.rootcause.ai/api-and-integrations/api-access/mcp-integration/mcp-skills.md).
