> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/mcp/use-cases.md). Agents can also search and read this documentation through its [MCP server](https://developer.celigo.com/~gitbook/mcp).

# What you can do

You drive Celigo Platform MCP in plain language. You describe what you want, and the agent picks the tools, chains them, and reports back. You never call a tool by hand.

This page collects worked examples: the prompt to ask, what the agent does behind the scenes, and what you get back. They work in any connected client.

## Built-in guidance

The server ships more than tools. It serves Celigo's **skills**, step-by-step guides the agent reads with `get_skill` before it builds a flow, writes a mapping, or troubleshoots a failure. It also exposes **guided prompts** for multi-step work that your client can invoke directly: account health audits, flow troubleshooting, connection diagnosis, integration planning, flow-config review, and writing Handlebars or SQL. And the **`search_docs`** tool answers product questions straight from the Celigo Knowledge Base, so the agent can look something up mid-task instead of guessing.

## Examples

### Audit account health

> Audit my Celigo account and give me the top issues to fix.

The agent lists your integrations and flows, scans recent jobs for failures, checks for offline connections, and returns a prioritized list: which flows are erroring, which connections are down, and where to look first. Tools: `list_integrations`, `list_flows`, `list_connections`, `list_flow_errors`, `list_flow_runs`.

### Diagnose a failing flow

> Why did the "Shopify to NetSuite Orders" flow fail last night?

The agent finds the flow, pulls its most recent job, reads the per-step results, and inspects the open errors on the failing step. It comes back with the root cause in words ("42 records rejected: NetSuite customer not found"), not raw JSON. For an HTTP step, it can also read the request and response stored with an error, to see whether a timed-out call reached the destination or what a refused body held. Tools: `list_flows`, `list_flow_runs`, `list_flow_errors`, `get_flow_error_request`.

### Triage and retry errors

> Show me the open errors on that order import, then retry the ones caused by the timeout.

The agent lists the step's open errors, groups them by message, and after you confirm, retries the ones you picked. It can also resolve, tag, or assign errors to a teammate. Writes to your destination systems, so the agent confirms first. If you don't know where the errors are yet, ask "where are my errors?" — `list_flow_errors` with no arguments returns every flow that has open errors, with its count. To see what was already fixed, ask for the resolved errors on a flow. Tools: `list_flow_errors`, `triage_flow_errors`.

### Build a new integration

> Build a flow that syncs new Salesforce accounts into NetSuite customers daily.

The agent checks for existing Salesforce and NetSuite connections, fetches the right schemas with `get_schema` so it uses real field names, then creates the export, the import, and the flow, leaving it disabled until you verify it. Tools: `list_connections`, `get_schema`, `upsert_export`, `upsert_import`, `upsert_flow`.

### Inspect or fix a connection

> Is my NetSuite connection healthy, and what is it used by?

The agent reads the connection (credentials come back masked), reports its status, and traces what depends on it. If you ask it to change a setting, it edits only the field you name and leaves stored credentials untouched. Tools: `list_connections`, `upsert_connection`.

### Run a flow and check results

> Run the "Daily inventory sync" flow and tell me what happened.

The agent triggers the run, waits for the job, then reports successes and errors per step. For a backfill, say the window: "re-run yesterday 6am to noon for just the orders export" and the agent passes the date range and export subset as run overrides instead of running the whole flow. Tools: `run_flow`, `list_flow_runs`.

### Preview what an export returns

> Run the "Shopify orders" export and show me the first few records.

The agent runs the saved export as a preview and returns the records it read from the live source. Nothing is saved, no record is marked as exported, and no flow job is created, so it is a safe way to check an export before you enable its flow. Tool: `run_export`.

### Trace a record through a run

> Trace order PO-1042 through last night's inventory run and show me what NetSuite returned.

The agent pulls the run's execution-log index, finds the record, walks its step-by-step timeline, and fetches the actual request and response payloads at the stage you care about. Every logged run has these logs, but a run in basic log mode leaves out request headers and bodies, and only a debug run captures the mapping and hook stages. To trace a record in full, arm debug logging on the flow before the run. Tools: `list_flow_runs`, `list_execution_logs`.

### Start from a marketplace template

> Install the most popular Shopify to NetSuite template and wire it to my existing connections.

The agent browses the published marketplace, previews the template's blueprint so you can see every flow, export, and import it would create, then deploys it mapped to connections already in your account. The preview also makes a good reference: agents borrow working config from popular templates while building custom flows. Tools: `list_marketplace`, `install_template`, `list_connections`.

### Change an Integration App's settings

> On my Shopify - NetSuite Integration App, show the order settings, then turn on the fulfillment flow.

The agent lists the app's settings fields with their current values, saves the ones you change through the app's own save, and reads the integration back to report which fields were stored. It switches the app's flows on and off the same way. Tools: `list_integrations`, `list_integration_app_settings`, `save_integration_app_settings`.

### Monitor EDI with trading partners

> Did the 850s from Acme land yesterday? Flag any rejected acknowledgments.

The agent queries the B2B Manager transaction log for the document type, partner, and date window, checks functional-acknowledgment status on each, and can mark acknowledgments accepted or rejected after you confirm. Ask for a purchase order by number and it reads the X12 or EDIFACT document itself, segment by segment. Tools: `list_edi_transactions`, `update_edi_fa_status`.

### Ask a product question

> How do delta exports decide what is new since the last run?

The agent calls `search_docs` and returns an answer from Celigo's documentation, with links to the source articles. Tool: `search_docs`.

## Tips for better results

* **Name the resource.** "the Shopify to NetSuite Orders flow" beats "my flow." The agent matches faster and calls fewer tools.
* **Scope to an environment.** A session reaches one account and one environment. OAuth sign-in sets both; a bearer token is already bound to both. Confirm which account and environment the agent is in before asking for changes. To work in two environments side by side, connect each through [its own URL](https://developer.celigo.com/mcp/connect.md#connect-more-than-one-environment).
* **Let it read the schema before building.** Asking it to "check the schema first" avoids invalid fields and wasted attempts.
* **Confirm before writes.** For retries, deletes, and updates, ask the agent to show you the plan first. These actions change live data. The server itself holds only a few calls for your confirmation, such as a lookup-cache purge. See [Calls that wait for your confirmation](https://developer.celigo.com/mcp/tools.md#calls-that-wait-for-your-confirmation).
* **Work in steps for big jobs.** "List the flows with errors, then we will fix them one at a time" keeps the agent focused and the output readable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/mcp/use-cases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
