---
title: "Profile a field's shape before you build on it - Atlan MCP Cookbook"
url: "https://atlan.com/mcp-cookbook/profile-a-field-before-you-build-on-it/"
description: "Get a quick profile of a field, its type, null rate, distinct count, and range, so you know what you're working with before you aggregate or join on it."
---

> Atlan is hosting Context Conference, bringing together the leaders and builders at the frontier of giving AI the context it needs to understand their business. It runs online on October 28, 2026, from 11:00 AM to 2:00 PM ET. Atlan co-founder Prukalpa Sankar opens and closes the day. Leaders from AstraZeneca, BNY and Verizon share why they invest in context and what they get from it. Registrants get early access to The AI Context Gap, a new study from MIT Technology Review Insights. Register: https://atlan.com/context-conference/

Recipe 27 in [The Atlan MCP Cookbook](https://atlan.com/mcp-cookbook/). Get a quick profile of a field, its type, null rate, distinct count, and range, so you know what you're working with before you aggregate or join on it.

Use case: Find & understand data / Action: Look up / Persona: Data/BI Analyst, AI Builder, Data Engineer / Effort: Quick / Runs in: any AI tool

Requires Atlan MCP connected to your AI tool: [set up Atlan MCP](https://docs.atlan.com/product/capabilities/atlan-ai/how-tos/remote-mcp-overview).

## 1. The task

**Scenario.** An analyst is about to aggregate on a field they've never used, an `amount` or `status` column, and needs a quick profile first: what type it really is, how many nulls, how many distinct values, and its range. Building on a field that's secretly 40% null, stored as text, or dominated by one value is how a report goes wrong before it starts.

The ask:
- The field's data type, null rate, distinct count, and range
- Whether its real shape matches what you were about to assume
- Anything about it that makes it risky to build on

Hero prompt:

> Give me a quick profile of the `amount` field on `[table]`: its data type, null rate, how many distinct values, and its range, before I build on it.

Step by step:

1. Find the field. Prompt: "Find the [amount] field on [table] and confirm it's the one I mean."
2. Quick-profile its shape. Prompt: "Profile it: data type, null count and rate, number of distinct values, and its min/max range."
3. Flag anything that makes it risky to build on. Prompt: "Tell me if anything here would break a report: a high null rate, a text type where I expected a number, or one value dominating the field."

## 2. What you'll give it

Required context:
- The table and field
- Read access to the connected source through Atlan, with query permission

Optional context:
- What you're about to build (a sum, an average, a join), so the profile can call out what specifically would break it
- The type or range you expect, so it can flag the gap

## 3. What Atlan creates

Outputs:
- The field's real data type, null count and rate, distinct-value count, and min/max range
- A plain read on whether it's safe to build on, with the specific risk called out

**Summary.** You know the shape of the field, not just its name, before you aggregate or join on it, so you don't discover a 40%-null column after the numbers look wrong.

**Read-only.** This profiles the field; nothing in Atlan or the source is written.

## 4. Follow-up prompts

- **Widen the check:** "Profile every field this report aggregates on, not just this one."
- **Compare over time:** "Compare this field's null rate to the last time I profiled it."
- **Find a better field:** "If the type isn't what I need, show me the closest field that is."

## 5. Tips & troubleshooting

**Cook's note.** A field's name tells you what it's called, not what it holds. A quick profile is five minutes; a wrong aggregate is a rebuilt report.

- Match the client to the work. Any client works; this is a fast lookup, not a multi-step reasoning job.
- Automate or chain it. Chain a profile across every field feeding a new dashboard before it ships, instead of profiling only the one that seems risky.
- Recheck on recurring reports. If a report runs on a schedule, the field underneath it can drift. Re-profile periodically instead of trusting the check from when you first built it.

## Related recipes

- [Check the master list before you add a new value](https://atlan.com/mcp-cookbook/check-value-against-master-list/): Before adding a new value to a field, pull the existing values so a new entry doesn't duplicate one under a different name and fragment the master list.
- [Write SQL that runs on the first try](https://atlan.com/mcp-cookbook/explore-schema-before-writing-sql/): Pull real column names and types from the source schema first, so the SQL you write runs on the first try instead of guessing at a field name that doesn't exist.
- [Triage a data-quality failure with full context](https://atlan.com/mcp-cookbook/triage-a-data-quality-failure-with-full-context/): Enrich quality failures with lineage, ownership, and downstream impact for faster triage.

[Browse all recipes](https://atlan.com/mcp-cookbook/) / [Set up Atlan MCP](https://docs.atlan.com/product/capabilities/atlan-ai/how-tos/remote-mcp-overview)