• VALID
  • ERROR
  • FILTER
  • HUMAN

How to verify SQL metric logic with your agent

Connect Metabase to your agent to audit the raw SQL and filters behind your dashboard visualizations.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I check if my Metabase metrics are accurate?

Your agent pulls the underlying SQL and filter configurations directly from specific Metabase cards. It then compares that code against your expected business logic to find discrepancies. You get a clear breakdown of where the math or the filters might be wrong.

Audit outcomes.

Where your findings land.

Your agent processes your request and categorizes the results.

VALID

Confirmed logic

Your agent confirms the SQL matches your requirements. You get a summary of the verified filters and calculations.

ERROR

Logic mismatches

Your agent identifies where the SQL code deviates from your intent. It points out specific lines in the query that cause issues.

FILTER

Filter discrepancies

Your agent flags hidden or incorrect dashboard filters. It shows how these filters are modifying your raw data results.

HUMAN

Manual review needed

Your agent flags ambiguous queries that it cannot confidently interpret. You'll need to step in and check these manually.

The workflow

What your agent does when the request arrives.

Your agent moves from finding the data to analyzing the logic.

  1. Locate the card

    Your agent finds the specific dashboard element you want to check.

    list_cards
  2. Extract the code

    Your agent pulls the exact SQL query and filter settings used by that card.

    get_card
  3. Compare logic

    Your agent compares the extracted SQL against the business rules you provided in your prompt.

    get_card
  4. Report findings

    Your agent presents the discrepancies or confirms the code is correct.

    list_cardsget_card

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Metabase tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin your audit.

Starting points

Replace the card names and specific metric descriptions with your own details.

Metabase Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_81usxhuffmH5qVmHtpmbFZWoVXrKKHjT3u2k9g8R/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Metabase capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "metabase-business-intelligence-analytics-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_81usxhuffmH5qVmHtpmbFZWoVXrKKHjT3u2k9g8R/mcp"
    }
  }
}
Copy into chat04
  • 01

    Check the SQL for the 'Monthly Active Users' card to see if it's filtering out guest accounts.

  • 02

    List all cards in my 'Sales Dashboard' and tell me which ones use a hardcoded date filter.

  • 03

    Look at the 'Revenue by Region' card. Does the SQL correctly group by the 'country_code' column?

  • 04

    Verify the logic in the 'Churn Rate' card. I need to make sure it only counts users from the last 30 days.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Metabase once, then ask.

Link your Metabase instance. Your credentials stay encrypted, and you can immediately start asking questions about your cards.

Connect Metabase to your agent

FAQ

How this task behaves.

  • 01

    Can your agent change the SQL in my Metabase cards?

    No. Your agent can only read the code and filters. You must make any changes manually in Metabase.

  • 02

    Can your agent delete any of my dashboards?

    No. This MCP only has read access to your cards and their configurations.

  • 03

    How does your agent know if the SQL is 'wrong'?

    Your agent relies on the business logic you provide in your prompt. It compares what the SQL actually does against what you say it should do.

  • 04

    Does it work with GUI-based questions?

    Yes, if the question can be answered by inspecting the card's metadata and SQL, your agent can handle it.

  • 05

    Can I audit an entire dashboard at once?

    Yes. You can ask your agent to list the cards in a specific dashboard and then audit them one by one.

  • More questions about Metabase? See everything the Metabase Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Metabase to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Metabase plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Metabase to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.