Back to cookbook

AI Prompt to Audit a Notion Database for Data Quality Issues via Notion's MCP Server

1 views Published

Make this prompt yours

Share

This Notion MCP prompt is for operations, data, and RevOps teams who keep a working database in Notion (a CRM tracker, inventory log, project pipeline, or content calendar) and want an AI model to check it for data quality problems before the data feeds a report or an automation. Once an AI assistant like Claude or ChatGPT is connected to Notion through its MCP server, it can pull real rows and properties from a live database instead of working from a pasted screenshot or a stale export, which matters because messy Notion databases accumulate blank fields, inconsistent select options, and duplicate entries that quietly break filtered views and rollups.

The prompt asks the model to scan a specified database for concrete issues: missing required properties, duplicate records that should be merged, inconsistent formatting in text or select fields (like "In Progress" vs "in progress" vs "WIP"), broken relations, and date fields that are empty or clearly wrong. It returns a structured findings list grouped by issue type and severity, with the exact page titles or row identifiers so a human can go fix them directly in Notion rather than hunting through hundreds of rows manually.

Because this audit depends on inspecting a large number of live records rather than a single document, it's worth running the draft through the Context Extractor first if the database export is large, since pulling only the relevant fields and rows reduces the chance the model skims past genuine errors buried deep in the data.

Prompt template

Make this prompt yours

prompt-template
278 tokens
You are a data quality analyst reviewing a live database retrieved via an MCP connection to Notion. Context: - Database name: [DATABASE_NAME] - Approximate number of records: [RECORD_COUNT] - Required properties that must always be filled in: [REQUIRED_PROPERTIES] - Properties with a fixed set of intended values (e.g. Status should only be one of a known list): [CONTROLLED_PROPERTIES_AND_VALUES] Task: Retrieve the records in this database and check them for the following issues: 1. Missing values in required properties 2. Duplicate records (same entity represented more than once) 3. Inconsistent formatting or casing in controlled properties 4. Broken or empty relation fields 5. Date fields that are empty, in the past when they shouldn't be, or otherwise clearly incorrect Constraints: - Only flag issues you can verify from the retrieved data; do not guess at values you cannot see - Group findings by issue type, then by severity (Blocking, Needs Review, Cosmetic) - Include the page title or unique identifier for every flagged record so it can be located in Notion Output format: Return a structured report with one section per issue type. Each section should list affected records as a short table: [Record Name | Issue Description | Suggested Fix]. End with a one-paragraph summary of total issues found and the top priority to address first.

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
58 tokens
Database name: Vendor Contracts Tracker Approximate number of records: 140 Required properties that must always be filled in: Vendor Name, Contract Status, Renewal Date, Owner Controlled properties and values: Contract Status should be one of: Active, Pending Renewal, Expired, Cancelled

When to use it

  • Before connecting a Notion database to an automation (Zapier, a dashboard, or a reporting tool) that assumes clean, consistent values
  • After several team members have been entering data manually over weeks or months without a shared format
  • When a filtered view or rollup property in Notion is returning unexpected or incomplete results
  • Ahead of a quarterly review or handoff where someone else will rely on the database being accurate

Best practices

  • Name the exact database and the properties that matter most (status, owner, due date) so the model doesn't flag irrelevant formatting choices
  • Ask for findings grouped by severity (blocking vs cosmetic) so the team fixes what actually breaks automations first
  • Give the model your team's intended values for select/status fields so it can flag drift accurately instead of guessing at a standard
  • Request output as a simple table or checklist with page links or titles included, not just a general summary, so fixes are easy to action

Common mistakes

  • Asking for a general "clean this up" audit without specifying which properties or views actually matter to the team
  • Not telling the model how many records exist, which leads to an audit that only samples a handful of visible rows
  • Treating the audit output as something to auto-apply instead of a list for a human to confirm and fix in Notion
  • Forgetting to re-run the audit after a bulk cleanup to confirm the fixes didn't introduce new inconsistencies

FAQs

Can ChatGPT or Claude actually read my Notion database directly?

Only if it's connected through an MCP server (or a similar connector) that has permission to query that specific database. Without that connection, you'd need to paste or export the data manually, which limits the audit to whatever you include.

What's the difference between this and just using Notion's built-in filters?

Notion's filters find records matching known criteria you set up in advance. This prompt asks the model to actively look for inconsistencies and errors you haven't specifically filtered for, like duplicate entries or drifted formatting across hundreds of rows.

Will the AI fix the data automatically?

Not with this prompt as written — it's designed to return a findings report for a human to review and apply in Notion. Some MCP setups support write-back actions, but mixing automatic edits into an audit prompt raises the risk of incorrect changes going live unreviewed.

How do I know if this prompt is specific enough before I run it?

Run your filled-in version through the Intelligence Score tool first — it grades clarity and specificity and flags vague constraints, which is useful before pointing a model at a large live database where ambiguity gets expensive.

Found this prompt useful? Share it.

Share

More in Data Analysis

Data Analysis

AI Prompt to Perform Root Cause Analysis on a Sudden Metric Drop

This root cause analysis prompt helps analysts, product managers, and founders figure out why a key metric — signups, conversion rate, reven…

ROLE: You are a data analyst helping investigate a sudden change in a business metric.

CONTEXT:
- Metric: [METRIC NAME, e.g. "trial-to-paid conversion rate"]
- Normal value: [BASELINE VALUE OR RANGE]
- New value: [CURRENT VALUE]
- Time window of the drop: [START DATE] to [END DATE]
- Relevant data available: [PASTE NUMBERS, A TABLE, OR DESCRIBE THE CHARTS YOU HAVE]
- Known changes around this time: [LIST ANY DEPLOYS, CAMPAIGNS, PRICING CHANGES, OR "none known"]
- Audience for this analysis: [e.g. "engineering team", "founder", "board update"]

TASK:
1. List the most plausible causes for this drop, ordered from most to least likely given the data provided.
2. For each cause, state what evidence in the data supports or weakens it.
3. For each cause, specify the exact additional data or check that would confirm or rule it out.
4. Flag if the drop could simply be normal variance, and explain what would show that.
5. End with a short, plain-language summary suitable for the stated audience.

CONSTRAINTS:
- Do not state a cause as confirmed unless the provided data directly supports it — use "likely," "possible," or "unconfirmed" language for anything else.
- Do not invent data points that were not provided.
- Keep the hypothesis list to a maximum of 5 items.

OUTPUT FORMAT:
A numbered list of hypotheses (most to least likely), each with: supporting/weakening evidence, and the next check to run. Followed by a short summary paragraph.

Make this prompt yours

Data Analysis

AI Prompt to Build a Data Dictionary From a Spreadsheet or Database Table

This data dictionary prompt asks ChatGPT, Claude, or Gemini to turn a raw spreadsheet or database table into a clear reference document: eve…

You are a data analyst creating a data dictionary for a dataset so other people can understand and use it correctly.

Context:
- Source: [e.g., spreadsheet export, PostgreSQL table, CSV file]
- Table or sheet name: [NAME]
- Audience: [e.g., BI analysts, a new engineer, external partner]

Data sample (paste column headers plus 10-20 real rows below):
[PASTE SAMPLE DATA HERE]

Task:
For each column in the sample, produce:
1. Column name as it appears in the source.
2. Inferred data type (string, integer, decimal, date, boolean, categorical, etc.).
3. A one-sentence description of what the column represents, based only on the sample data.
4. Notes on anything unusual: nulls, mixed formats, inconsistent units, likely key or foreign key, or values that look like placeholders.
5. A confidence level (High, Medium, Low) for how certain you are about the description.

Constraints:
- Do not state a description as certain if the sample doesn't clearly support it; use Medium or Low confidence instead.
- Call out any columns that look like duplicates of each other or likely primary/foreign keys in a separate summary section.
- Keep descriptions to one sentence each.

Output format:
A single Markdown table with columns: Column Name | Data Type | Description | Notes | Confidence, followed by a short 'Keys and Relationships' summary section.

Make this prompt yours

Data Analysis

AI Prompt to Query and Analyze Supabase Data via Supabase's MCP Server

This prompt is for teams running Claude or ChatGPT with Supabase's MCP server connected, so the model can read a live Postgres database dire…

You are a data analyst with read-only access to a Postgres database through an MCP database connection. Follow these rules for every request:

ROLE
- Act as a careful analyst who verifies before concluding.

CONTEXT
- Database: [DATABASE NAME]
- Relevant tables: [TABLE NAMES, e.g. users, subscriptions, events]
- Business question: [QUESTION, e.g. how many trial users converted to paid in the last 30 days]

CONSTRAINTS
- Only run read-only SELECT queries. Never run INSERT, UPDATE, DELETE, or DDL statements.
- Before answering, list the exact query or queries you plan to run and wait for confirmation if any query touches more than [ROW LIMIT] rows.
- If a referenced table or column does not exist, say so explicitly instead of guessing a substitute.
- Show a sample of up to 5 returned rows alongside any aggregate numbers.

OUTPUT FORMAT
1. Queries run (as SQL)
2. Row counts and sample data
3. Plain-language answer to the business question
4. Any caveats about data quality or missing values

Task: [SPECIFIC ANALYSIS REQUEST]

Make this prompt yours