Salesforce + Claude · Metric layer · Walkthrough + playbook

One Shared Metric Definition for Claude and Salesforce: Interactive Walkthrough & Playbook

Put one MCP tool in front of every pipeline and win-rate question, so reps, managers and execs all get the same “Stage 2+ pipeline” number from Claude. Definitions live in Salesforce, changes go through approval, and Claude stops rebuilding the logic on every ask. Click through the build, then take the operator playbook.

ClaudeSalesforceModel Context Protocol

Walkthrough screens are an illustrative JayOh recreation with fictional data (Brightline Software), not the live products.

01

Why one metric gets four answers and the four definition choices that cause it.

02

Where the definition should live: a governed Metric Definitions object in Salesforce with approval history.

03

The single get_metric tool that answers reps, managers and execs from the same code path.

04

How JayOh rolls it out in 30 days and the benchmarks we use to call it working.

Interactive walkthrough · 11 steps · ~6 min

Watch one definition answer every pipeline question

Use Next / Back or your arrow keys. Orange boxes point to what matters on each screen. Salesforce and Claude screens are recreated with fictional data.

The JayOh playbook

The play: one governed metric tool in front of Claude

Give Claude a single, read-only MCP tool, get_metric, that answers every pipeline, win-rate, bookings and sales-cycle question from definitions RevOps owns in Salesforce. Claude stops writing its own SOQL for those numbers, so a rep’s answer, a manager’s rollup and the board number come from the same filter, the same currency rules and the same version. The outcome: one number per metric, answers in seconds, and a change process instead of a Slack argument. It pairs with the stage definitions in our sales stage architecture work.

Who owns it

RevOps owns the definitions and the approval queue. The CRO approves changes. One engineer (or JayOh) owns the MCP server. Sales leaders own adoption: “ask Claude” becomes the default for metric questions.

Systems involved

Salesforce (opportunities, a Metric Definitions custom object, an approval process, field history), a remote MCP server exposing get_metric, Claude with an organization connector and org instructions.

Prerequisites

Stage definitions with exit criteria, record types that separate new business from renewals, multi-currency set up with corporate rates, and sharing rules you trust, because the tool runs as the person asking.

Step-by-step setup

  1. Inventory the live variants. Pull every report, dashboard, deck and saved Claude prompt that shows your top five metrics. Write down each filter. Expect three to five versions of pipeline alone.
  2. Agree on v1 of each definition. Object, measure, filter, date field, currency rule, allowed group-bys. Get the CRO to sign off. Disagreements become documented options, not new numbers.
  3. Build the Metric Definitions object. One record per metric with version, status, owner and the exact SOQL filter. Turn on field history and an approval process so every change has a reason and an approver.
  4. Stand up the MCP server. Expose get_metric (key, period, group_by), list_metrics and explain_metric. Read-only. It reads the definition, runs the query as the signed-in user and returns the number with its version.
  5. Connect it to Claude for the organization. Add it as a custom connector, set the tools to Always allow, and add an org instruction: for these metrics, call get_metric and don’t write SOQL.
  6. Test by role. Ask the same question as a rep, a manager and an exec. Rep and team numbers must add up to the company number, and the company number must match the RevOps report to the dollar.
  7. Roll out and route changes. Announce it in the forecast call, retire the conflicting reports, and send every “can we count X?” request through a version change with an impact preview.

How JayOh runs it

We start with an audit of the metrics leadership argues about most, because that’s where the drift is. Then a growth pod builds the definitions object, the approval flow and the MCP server in your org, tests it against your existing reports, and hands RevOps a change process they can run without us. If your revenue dashboards are already ignored because nobody trusts the numbers, this is usually the first fix. It’s also a guardrail for any agent work, the same idea as our AI agent governance playbook.

What good looks like

MetricWeakAcceptableStrong
Live versions of each leadership metric3+21
Metric questions answered through get_metric<50%50–80%>80%
“Which number is right?” threads per month5+1–40
Runtime per pass vs. ad-hoc SOQL<30% faster30–70% faster~80% faster
Time to approve a definition change>2 weeks1–2 weeks<3 business days
Rep + team totals reconcile to company totalOff by more than 1%Within 1%To the dollar

Common mistakes

Where teams get the metric layer wrong

Mistake: Putting the definition in a prompt or a Notion page and hoping Claude follows it.

Instead: Put it in a tool. Claude can’t drift from logic it doesn’t have to write.

Mistake: Giving the tool a free-form query parameter “for flexibility.”

Instead: Key, period, group-by. New questions become new definitions, through approval.

Mistake: Running the server as an admin integration user.

Instead: Run as the person asking, so sharing rules decide what a rep can see.

Mistake: Changing a definition without telling anyone.

Instead: Version every change, preview the impact, and stamp the version on every answer.

Mistake: Defining 40 metrics on day one.

Instead: Start with the five leadership argues about. Add more once the pattern sticks.

Mistake: Leaving the old conflicting reports live.

Instead: Retire them or rebuild them on the same definitions, or the argument moves back to Slack.

FAQ

Shared metric definitions for Claude: common questions

What is a shared metric definition for Claude?

It's one governed definition of a business metric, such as Stage 2+ pipeline or win rate, that Claude reads through a tool instead of rebuilding the logic itself. The definition sets the object, filter, date field and currency rule, and every answer quotes its version.

Why does Claude give different pipeline numbers to different people?

Because each person's prompt leads Claude to write its own query. One includes renewals, one skips currency conversion, one counts Closed Won. Each is reasonable, so the numbers drift. A single get_metric tool removes that choice.

Where should metric definitions live: Salesforce or the MCP server?

In Salesforce, as a Metric Definitions custom object or Custom Metadata, next to the data. That gives you field history, an approval process and admin visibility. The MCP server only reads the approved definition and runs it.

Does the metric tool respect Salesforce sharing rules?

It should. Run each query as the signed-in user through per-user OAuth, not an admin integration user. A rep then sees their own pipeline, a manager sees their team, and an exec sees the company, all from the same definition.

How much faster is Claude with a metric tool?

Teams report roughly 80% less runtime per pass, because Claude makes one tool call instead of describing objects, writing SOQL, retrying and reasoning about definitions. In our illustrative trace it drops from 42 seconds to 7.3 seconds.

How long does it take JayOh to set up?

A typical pilot is 30 days: audit and sign-off on five metrics in week one, the definitions object and MCP server in week two, role testing in week three, and rollout with a change-request flow in week four.

Want one pipeline number your whole team trusts?

JayOh audits your live metric variants, builds the definitions and the Claude tool in your Salesforce org, and hands RevOps the change process. See how this fits a wider Claude for GTM rollout.

Talk to JayOh