Salesforce + Claude · Metric layer · 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.
Walkthrough screens are an illustrative JayOh recreation with fictional data (Brightline Software), not the live products.
Why one metric gets four answers and the four definition choices that cause it.
Where the definition should live: a governed Metric Definitions object in Salesforce with approval history.
The single get_metric tool that answers reps, managers and execs from the same code path.
How JayOh rolls it out in 30 days and the benchmarks we use to call it working.
Interactive walkthrough · 11 steps · ~6 min
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
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.
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.
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.
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.
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.
| Metric | Weak | Acceptable | Strong |
|---|---|---|---|
| Live versions of each leadership metric | 3+ | 2 | 1 |
| Metric questions answered through get_metric | <50% | 50–80% | >80% |
| “Which number is right?” threads per month | 5+ | 1–4 | 0 |
| Runtime per pass vs. ad-hoc SOQL | <30% faster | 30–70% faster | ~80% faster |
| Time to approve a definition change | >2 weeks | 1–2 weeks | <3 business days |
| Rep + team totals reconcile to company total | Off by more than 1% | Within 1% | To the dollar |
Common mistakes
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
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.
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.
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.
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.
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.
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.
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.
We engineer growth systems. JayOh builds the RevOps architecture, GTM execution and data infrastructure that turn messy revenue operations into predictable pipeline for B2B SaaS and PE-backed teams.