Connect your data to Claude in 1 minute. No code needed Try it now

Generate dataset context AI agent skill

Scan your connected dataset and document its structure before running any analysis. Every analytics skill you run after this knows what each field and metric actually means — which is what keeps the numbers accurate.

Works with:
Claude Claude
ChatGPT ChatGPT
Gemini Gemini
Cursor Cursor
Perplexity Perplexity

Why use the generate dataset context AI agent skill

One scan before analysis is the difference between metrics you trust and figures you have to go verify.
Stops the AI from guessing what your columns mean icon

Stops the AI from guessing what your columns mean

Every dataset has ambiguous field names. Without context, the model fills in the gaps — and that's where wrong answers come from. The skill documents definitions once so it stops guessing and starts reading.
Run it once, benefit on every question after icon

Run it once, benefit on every question after

The context document is reused automatically by every analytics skill in your workflow. Scan your dataset once and every question after draws from the same definitions.
Works across any dataset you connect icon

Works across any dataset you connect

CRM, ad platform, accounting tool, or a spreadsheet with custom column names — the skill reads the structure and adapts. It maps what it finds; your data doesn't need to follow a standard format first.

What can you generate?

Management

You'll get a structured context layer your AI can actually use — so every analysis starts from an accurate picture of what data is available and what it means.

Start for free
roles/perfomance image
Start for free

Marketing

You'll be able to run analysis against your marketing data without the AI misreading field names, date ranges, or metric definitions.

Start for free
roles/campaign-performance image
Start for free

Sales

You'll get your CRM and pipeline data structured with the right context, so your AI doesn't confuse deal stages or conflate revenue metrics.

Start for free
roles/traffic-overview image
Start for free

Finance

You'll be able to give your AI a precise understanding of your financial dataset — so its answers are grounded in your actual structure, not a guess.

Start for free
roles/revenue image
Start for free

Three Steps to Your First Answer

Connect your data

Generate-data-set-context works best run immediately after create-dataflow. Your sources need to be connected and live in Coupler.io before the skill can scan them.

Tell the skill what to scan

Name the connected source or ask it to scan everything. The skill reads your dataset structure, maps field names, infers data types, and identifies the metrics most relevant to analysis.

Run your analytics

Every subsequent skill reads from the context document automatically. Your questions get accurate answers because the model knows what it's working with.

Inside the skill

Data Set Documentation

You are a data analyst with access to the Coupler.io MCP server. Your task is to explore a Coupler.io data flow and produce a complete dataset documentation file in markdown.

Inputs

Ask the user for:

  1. Data flow name — the name shown in Coupler.io (or a keyword to search for). If provided with a data flow ID directly, skip straight to exploring the schema.

Coupler MCP workflow

All data access goes through the Coupler.io MCP server. The tool sequence is:

  1. search-datasets (or list-datasets) — find the dataflow by name or keyword
  2. get-dataflow — fetch the dataflow’s current state (sources, destinations, last run)
  3. get-schema — inspect column definitions for the target dataset
  4. get-data — query the data with SQL against the data table
  5. update-dataset — persist aiContext on the dataset after generation

SQL basics

  • The table is always called data. Columns are named col_0, col_1, …
  • Metric columns can be NULL. Use COALESCE(col_X, 0) as needed.

The profiling steps below will detect which additional conventions (string quoting, missing-value sentinels, fractional metrics, sign conventions) apply to this specific dataset.

Step-by-step procedure

1. Explore the data flow

Use the Coupler MCP to find the data flow, fetch its schema, and sample the data. Do not include execution IDs in the output — they change every run.

2. Profile the data

2a. Sample

SELECT * FROM data LIMIT 5

2b. Detect conventions

  • String quoting: inspect a text column value — are strings wrapped in embedded double quotes ("India") or stored plain (India)?
  • Missing values: check whether missing values appear as SQL NULLs or as a literal sentinel string (e.g. "N/A" or N/A).

2c. Detect grain and duplication

SELECT COUNT(*) AS rows, COUNT(DISTINCT {pk_col}) AS distinct_keys FROM data If rows » distinct_keys, the dataset has row duplication (e.g. multi-value columns flattened into separate rows). Document how to deduplicate.

2d. Profile categorical / dimensional columns

For each categorical column, decide based on the sample whether querying it will reveal something new:

  • Skip if the column is a high-cardinality identifier or free-text field (the GROUP BY would return near-unique rows).
  • Skip if the sample already shows all plausible values (the full value set is evident).
  • Skip date/timestamp columns entirely.
  • Query everything else: SELECT {col_N}, COUNT(*) AS cnt FROM data GROUP BY {col_N} ORDER BY cnt DESC LIMIT 15

2e. Profile numeric / metric columns

For each numeric column, decide based on the sample whether querying it will reveal something new:

  • Skip if the column’s meaning, scale, and sign are already clear from the sample values.
  • For groups of closely related numeric columns, query one representative; skip the rest if it behaves as expected.
  • Query everything else. Combine multiple columns into a single query to reduce round-trips: SELECT COUNT(*) AS rows, SUM({col_A}) AS total_a, MIN({col_A}) AS min_a, MAX({col_A}) AS max_a, SUM({col_B}) AS total_b, MIN({col_B}) AS min_b, MAX({col_B}) AS max_b FROM data

Important: profiling numbers (row counts, totals, percentages, date ranges) are for your understanding only. Do not write them into the output — they go stale as the data changes.

3. Discover domain context

Profiling in step 2 exists to inform the domain context — NOT to produce a column listing. Do not replicate column names, types, or labels in the output. get-schema already exposes all of that to downstream consumers.

Investigate and document the following (where applicable):

  • Business process: what real-world process does this data represent?
  • Deduplication: are there multi-value or array columns that produce multiple rows per entity? What is the correct way to deduplicate?
  • Attribution: are values only populated on certain rows due to attribution logic? What determines which row gets credit?
  • Sentinel values: are there business-logic defaults that look like real data (e.g. a $150 placeholder value)?
  • Hidden columns: are there columns in the source query that are excluded from the Coupler export?
  • Scope / time window: does the pipeline apply filters that limit the data (e.g. rolling window, status filters)?
  • Sign conventions: are any numeric columns stored with inverted sign (e.g. churn as negative)?

If you cannot determine some of these from the data alone, mark them with {TODO: verify with team} so the user knows where to fill in.

4. Write the dataset documentation

Produce the markdown document following the Output structure below. Do not embed volatile numbers (row counts, totals, percentages, date ranges). Do not list columns, types, or schema — that information lives in get-schema and would duplicate it.


Output structure

The output document must follow this structure exactly.

# {Dataset title}

{One-paragraph description: what this dataset contains, its purpose, and scope.}

## Domain context

{Business knowledge that helps analysts interpret the data correctly.
Fill in what applies — remove bullet points that don't.}

- **Business process:** {What real-world process does this data represent?}
- **Grain:** {What does one row represent?}
- **Key caveats:**
  - {Deduplication rules, if applicable.}
  - {Attribution logic, if applicable.}
  - {Sentinel values, if applicable.}
  - {Hidden columns, if applicable.}
  - {Scope / time window, if applicable.}
  - {Sign conventions, if applicable.}

## SQL conventions

- {String quoting convention observed in this dataset.}
- {Missing-value handling observed in this dataset.}
- {Any other dataset-specific SQL quirks discovered during profiling.}

Other skills you might like

Browse all skills

Create dataflow

Tells your AI which sources you want to connect and sets up the data flow for you. No manual configuration required or coding agent required.

Marketing analytics

Analyzes paid media performance across Google Ads, Meta, LinkedIn, and TikTok. Surfaces ROAS, CPA, budget pacing issues, and attribution gaps. Handles each specific task so your AI doesn't hallucinate metrics from thin air.

Report generation

Turns raw analysis into a clean, decision-ready report. Runs validation on figures and claims before delivery so you can share it with stakeholders without a second pass. Outputs markdown, summarize-ready text, or formatted tables.

Revenue Operations Analyst
Enterprise SaaS Company
Our Salesforce data has field names that only make sense internally. Before we started using generate-data-set-context, the AI would interpret them differently each time. After one scan, every answer started referencing the right metrics.
Revenue Operations Analyst
Enterprise SaaS Company
Frequently asked questions
No. The skill reads your dataset structure as-is and maps what it finds. It handles custom column names, internal naming conventions, and inconsistent formatting. The point of the skill is precisely to make sense of data that doesn't follow a standard format — so the analytics skills that come after it can work accurately.
Run it once after your initial data connection, then again any time your dataset structure changes — new columns added, fields renamed, or a new source connected. For stable datasets with consistent schema, one scan can hold for weeks or months. The skill will flag if it detects fields in your data that don't match the existing context document.
Any dataset connected through Coupler.io — ad platforms, CRM tools, accounting software, ecommerce platforms, spreadsheets, or databases. The skill reads structure, not content, so it works regardless of industry or data type. The more fields your dataset contains, the more context it generates for analytics skills to use.
Yes. You can ask the skill to update specific field definitions, add business-specific context the scan couldn't infer, or remove fields that aren't relevant to analysis. The context document is editable through natural language — you don't need to edit a file directly.
Run it once per dataset, not once per question. Once the context document exists, every analytics skill in the workflow draws from it automatically. Other skills all reference the same definitions without you prompting them to.
Yes. Generate-data-set-context is available on Coupler.io's free tier. All capability skills are included across every paid plan with no tier-based gating.

Start Creating Efficient Dataflows Today

Add the skill, point it at your connected dataset, and get accurate context in minutes.
Looking for an AI agent skill tuned to your exact workflow?