Skip to main content
Preview In this tutorial you start from the SQL your team already runs. Your own coding agent reads it, proposes metrics and saved queries, and writes them to a workspace once you approve. You then check one metric in Metrics Studio, release it, and watch an agent read it before answering a question. You don’t type any definitions yourself. To write a metric by hand instead, see Write or edit a metric.

What you’ll end with

  • A few metrics and saved queries in one workspace, proposed by your agent from your query history and approved by you.
  • At least one metric showing Live in Studio, which is the version agents get.
  • An agent answer that used that released metric.

Before you begin

  • Metrics Studio app: An administrator has installed it for your organization. See Install and manage apps.
  • Workspace role: Builder or Admin in the workspace you’ll use. Without it, Build metrics isn’t available. Releasing needs Admin, or Builder on a metric you own.
  • An agent: Atlan Trident Desktop, or Claude Code, Codex, or Cursor CLI on your computer.
  • A warehouse connection in your agent: Your agent reads query history from Snowflake or Databricks through its own connection, such as a warehouse MCP connector you’ve already signed in to. An exported history file isn’t enough. Metrics Studio itself never connects to your warehouse.

Part 1: Start in Metrics Studio

1

Open empty workspace

Open Metrics Studio and choose Metrics. Pick a workspace with no metrics yet.The page shows Build your first metrics and “Turn your questions, queries, or BI models into metrics your team can review and reuse.” It offers three starting points:If the workspace already has metrics, choose Build metrics at the top of the list instead.If the workspace shows a suggested metric instead of this page, an agent has already proposed one there. To follow this part as written, pick a workspace with no metrics and no proposals.
2

Choose query history

Choose Query history, then Build metrics. The page asks Where should your metrics come from?, with Query history selected.
3

Say what to measure

Under What do you want to measure?, replace the example request with your own business area. For example:
Be specific. The agent uses this to pick tables and queries from your history.

Part 2: Hand request to your agent

Choose Get started. Atlan Trident Desktop opens Ask AI with the prompt already filled in. Read it, then send it.If you see “Couldn’t open this prompt in Ask AI.”, Studio shows the setup instructions for another agent instead. Follow one of the other tabs.
The prompt names your request, the starting point, and the workspace, so the agent writes to the right place.

Part 3: Review what agent proposes

The agent works through your request one question at a time. Nothing is written to Atlan Trident until you approve it.
1

Answer its questions

The agent confirms the workspace, then asks only for what it can’t work out: the business area, where the history lives, the SQL dialect, and which tables matter. It also reads any metrics and saved queries already in the workspace, so it reuses them instead of making duplicates.
2

Look at sample cards

When it’s ready, the agent summarizes what it would write and offers three choices:
  • Publish N metrics, E links and Q saved queries (Recommended)
  • Show me 5 sample cards first
  • Not yet
Choose Show me 5 sample cards first. Check each card’s formula, source table, and filters. Ratio metrics, joins, and grain are the parts most likely to need a correction, so ask the agent to fix anything that looks wrong.This is your review step. The agent asks to release what it writes, so approved metrics usually reach agents as soon as they’re written.
3

Approve write

When the cards look right, choose to publish. The agent writes the metrics, saved queries, and the links between them to your workspace.At the end it reports which items were released and which were left unreleased, and gives you a link to Studio. Anything it couldn’t release, for example because of your workspace’s release policy, waits for you in Studio.

Part 4: Check metric and release it

1

Find new metrics

Back in Studio, open Metrics. Your new metrics appear in the list. The Release column shows Live and a version for released ones, and Not released for the rest.
2

Read one metric

Open a metric. Overview explains it in plain words: what it measures, how it’s calculated, and how it can be split. Compare this with what you know about the number. If Studio found a problem in the SQL, it says so on the metric, with the reason.Open Dependencies to see the saved queries linked to it, and Examples for the example questions and SQL on the metric itself.
3

Release it

If the metric shows Not released, choose Release. The dialog shows what changes and who gets it. Choose Release revision 1 as 0.1.0.The dialog shows Released, and “Agents and tools get revision 1.”

Verify in Studio

Go back to Metrics. The metric’s row shows Live 0.1.0, or a later version if the agent released it already. Open it, then open History: the live revision is tagged Live.

Part 5: See agent use it

1

Ask question

In an MCP client connected to Atlan Trident, ask a question the metric answers, for example:
2

Check what it read

The agent searches the workspace with extension__metric__search_metrics, then reads the released metric with registry__get_artifact on the latest channel. It writes and runs the SQL with its own warehouse access.In the read result, release.version_label matches the Live label you saw in Studio. If they differ, see An agent reads an old version.

What you did

You turned your team’s existing SQL into metrics and saved queries, reviewed them before they were written, released one, and saw an agent read the released version instead of inventing its own calculation.

Next steps