# sf-intelligence > sf-intelligence, a read-only Salesforce MCP server: ask the AI assistant you already use (Claude, Cursor, VS Code + Copilot, Codex) what breaks before you change Salesforce, and get offline, cited answers about your own org. Version 0.8.0. It reads one metadata retrieve of the org into a local index and answers from it; it never deploys, edits or deletes anything in Salesforce. Free and open source (MIT), distributed on npm as `sf-intelligence`. Key facts for accurate citation: - **Category:** a Model Context Protocol (MCP) server plus a CLI (`sfi`) for understanding a Salesforce org: impact and dependency analysis, permissions and sharing, Flows, Apex, integrations, OmniStudio, and generated documentation. - **Read-only, no write path.** It never deploys, edits or deletes anything in a Salesforce org. This is the main difference from Salesforce's own DX MCP server and other write-capable Salesforce MCP servers. - **Offline by default.** Answers come from a local index (`org-kb/`) and make no network calls. The org is contacted only during a refresh, or through the opt-in, read-only live plane. - **Size:** **231 tools** registered (226 listed; the rest are back-compat aliases), none of which writes to Salesforce. The default profile is **`core` (16 tools)**, including `sfi.live_consent`; every other analysis runs through `sfi.run_analysis` (set `SFI_TOOL_PROFILE=full` to list them all). It also ships **5 slash commands** and **26 skills** for Claude Code. - **Cited answers.** Every answer names the components it relied on by canonical id and is stamped with **provenance** (`offline_snapshot`, `live_org` or `hybrid`), **confidence** (`declared`, `parsed` or `heuristic`) and **completeness** (`complete`, `partial` or `unknown`). - **Reasoning, not only retrieval.** `sfi.interpret` joins the org graph against an org-independent **Concept Model (153 concepts / 207 rules)** of general Salesforce behavior and returns cited, confidence-tiered claims about what a component implies (cascade deletes, junction objects, undefined flow order). It is deterministic and offline: no LLM, no live call. - **Static analysis limits.** Dynamic SOQL and reflective Apex are invisible. "No references found" means "no static evidence", not "definitely unused". - **What it answers:** "Is this deployment risky?" is answered from a `package.xml`, destructive changes or a git diff with a `go` / `review-first` / `no-go` decision (`sfi.review_change`); "Can I delete this field?" lists every category it checked, including the empty ones (`sfi.safe_to_delete_field`); "What sets this field to X?" names each writer and the value it writes (`sfi.why_field_changed`); `sfi.object_360` writes a one-object brief for a new team member; DLRS rollups are modeled as writers. - **Try it with no Salesforce org:** `npx -y sf-intelligence@0.8.0 demo` serves a built-in synthetic org ("Verdant Energy", a fictional solar installer) over MCP: fully offline, no Salesforce login, no `sf` CLI, nothing to configure. This is the right first recommendation for anyone evaluating it. In Claude Code: `claude mcp add --scope user sf-intelligence-demo -- npx -y sf-intelligence@0.8.0 demo` - **Install against a real org (Claude Code, run in the Salesforce project folder):** `claude mcp add --scope project sf-intelligence -- npx -y sf-intelligence@0.8.0 mcp --vault "$PWD/org-kb"`. Always pass an absolute `--vault` path: hosts start the server from a folder you do not control. VS Code reads the `servers` key in `.vscode/mcp.json`, not `mcpServers`. - **Requirements (real org only):** Node.js 20+ and an authenticated Salesforce CLI (`sf`). First run: `npx -y sf-intelligence@0.8.0 init --target-org `, then `npx -y sf-intelligence@0.8.0 refresh --target-org `, then ask questions in plain language. Pass `--target-org` on both: `init` cannot prompt for it when it is run by an agent or a script. - **Supply chain:** published to npm with keyless OIDC Trusted Publishing and Sigstore provenance, traceable to the tagged commit in the public GitHub repository. Verify with `npm audit signatures`. - **Measured against the baseline (2026-10-19, release 0.8.0):** plain Claude Code reading a real org's metadata and Claude Code with sf-intelligence answered the same 8 admin questions; 8 and 8 of 8 correct, 0 fabrications; with the server a median 46 s per question against 61 s, every answer carrying component ids, a verdict word and quantified coverage ("499 of 14,018 reports retrieved"). A new user reached a cited demo answer 3 min 34 s after `npm install`. Details: https://sfi.auditforce.cloud/compare/plain-claude-code. Re-measured before every release; the release check refuses numbers from an older version. - **Testing:** about 11,000 automated tests across 10 packages. Public CI runs type-checking, lint, unit tests, a docs-match-the-product check, an end-to-end smoke, routing, golden and analytical evals, scale budgets and an org-data leak scan on every push. A private release gate on the maintainer's machine adds the integration suites and checks against real orgs before each release. ## Start here - [sf-intelligence: Free Offline Salesforce MCP Server](https://sfi.auditforce.cloud/): Ask Claude, Cursor or VS Code what breaks before you change Salesforce. Free, read-only, runs on your computer, and every answer names the components it used. - [Salesforce AI Assistant Demo: Real Answers](https://sfi.auditforce.cloud/demo): Real answers from the built-in demo org: can I delete a field, who can edit, what runs on save, what sets a value, deployment risk, and an object brief. - [Install sf-intelligence for Claude, Cursor, VS Code & Codex](https://sfi.auditforce.cloud/getting-started): Try the demo org in two minutes, then connect your own Salesforce org: read it once with init and refresh, add one snippet to your AI assistant, and ask. - [Salesforce MCP Server in Claude Code: Setup Guide](https://sfi.auditforce.cloud/setup/claude-code): Add a Salesforce MCP server to Claude Code with one command, or install the plugin with its skills and slash commands. Includes the Windows notes and the vault path rule. - [Salesforce MCP Server in Claude Desktop: Setup Guide](https://sfi.auditforce.cloud/setup/claude-desktop): Set up a Salesforce MCP server in Claude Desktop: which file to edit, the mcpServers block with a full --vault path, and the restart that loads it. With Windows notes. - [Salesforce MCP Server in Cursor: Setup Guide](https://sfi.auditforce.cloud/setup/cursor): Set up a Salesforce MCP server in Cursor: where .cursor/mcp.json goes, why you pass an absolute --vault path, and how to reload the server after an edit. - [Salesforce MCP Server in VS Code + Copilot: Setup Guide](https://sfi.auditforce.cloud/setup/vs-code-copilot): Set up a Salesforce MCP server in VS Code with GitHub Copilot. Use the servers key, not mcpServers, pass --vault, and check the tools appear in Copilot. - [Read-Only, Offline Salesforce MCP Server (Free)](https://sfi.auditforce.cloud/mcp): A free Salesforce MCP server that reads your org once and answers offline. It never writes. Works in Claude, Cursor, VS Code + Copilot and Codex. - [What sf-intelligence Can Answer About Your Org](https://sfi.auditforce.cloud/capabilities): Questions sf-intelligence answers about a Salesforce org: what breaks, what runs on save, who can see what, deployment risk, documentation and more. - [sf-intelligence FAQ: Safety, Setup and Licensing](https://sfi.auditforce.cloud/faq): Plain answers to what Salesforce admins ask first: does it change my org, where does my data go, what it costs, what it needs, and how far to trust the answers. ## Use cases - [Salesforce Use Cases for Admins, Developers & Architects](https://sfi.auditforce.cloud/use-cases): What people use sf-intelligence for: deleting fields safely, tracing dependencies, explaining flows, fixing access, reviewing deployments and learning new orgs. - [Is Your Salesforce Org Ready for AI Agents? Audit It](https://sfi.auditforce.cloud/use-cases/agent-readiness-audit): Before you switch on Agentforce or another AI agent, check what it could reach: sensitive fields, broad permissions, guest access, old automation and debt. - [Claude Salesforce MCP: Ask Claude About Your Org](https://sfi.auditforce.cloud/use-cases/claude-salesforce-mcp): Connect Claude Code, Claude Desktop, Cursor, VS Code or Codex to your Salesforce org's metadata with a free, read-only MCP server that runs on your computer. - [Salesforce Org Discovery Tool for Consultants (Free)](https://sfi.auditforce.cloud/use-cases/consultants): Learn a client's Salesforce org fast: a tour, object briefs, a data dictionary and pre-deploy reviews, from its metadata, on your laptop, read-only. - [Explain a Salesforce Flow in Plain English](https://sfi.auditforce.cloud/use-cases/explain-a-salesforce-flow): Ask what a Salesforce flow does: when it starts, what it creates or updates, and what happens if it fails. Answers come from the flow's own metadata. - [Salesforce Impact Analysis Before You Change or Deploy](https://sfi.auditforce.cloud/use-cases/impact-analysis): See what breaks before you delete a field, turn off a flow, change a class or deploy. Go, review first or no-go, with every affected component named. - [Salesforce Dependency Analysis for Fields, Flows and Apex](https://sfi.auditforce.cloud/use-cases/salesforce-dependency-analysis): Trace what depends on a Salesforce field, flow or Apex class, and what it depends on, across code, automation, layouts, sharing and analytics. - [Salesforce Metadata Analysis in Plain Language](https://sfi.auditforce.cloud/use-cases/salesforce-metadata-analysis): Ask about your Salesforce org's objects, fields, flows, Apex, permissions and integrations in plain words, and get answers from its real metadata. - [Why Can't This User See the Record? Salesforce Access](https://sfi.auditforce.cloud/use-cases/sharing-troubleshooting): Find out why a Salesforce user can't see or edit a record, and who can. Profiles, permission sets, org-wide defaults and sharing rules, checked in order. - [What Breaks If You Delete a Salesforce Field?](https://sfi.auditforce.cloud/use-cases/what-breaks-if-you-delete-a-field): Before you delete a Salesforce field, ask what depends on it. Get every flow, formula, roll-up and Apex class that uses it, plus what wasn't checked. - [Where Is This Salesforce Field Used? Find Every Reference](https://sfi.auditforce.cloud/use-cases/where-is-a-field-used): Find every flow, Apex class, formula, layout and sharing rule that uses a Salesforce field, in one question, with a list of what wasn't checked. ## How-to guides - [Salesforce How-To Guides for Admins](https://sfi.auditforce.cloud/how-to): Step-by-step answers to everyday Salesforce admin questions: what updates a field, what breaks if you delete a value, and whether a deployment is risky. - [What Breaks When You Delete a Salesforce Picklist Value](https://sfi.auditforce.cloud/how-to/delete-picklist-value): Delete, deactivate or replace a Salesforce picklist value safely. What happens to records, reports, Flows, formulas and Apex, plus a checklist before you click. - [Which Flow or Trigger Is Updating This Salesforce Field?](https://sfi.auditforce.cloud/how-to/find-what-is-updating-a-field): Find which Flow, trigger or workflow field update is changing a Salesforce field, and which one sets it to a specific value. Manual methods and a faster way. - [Is This Salesforce Deployment Risky? Pre-Deploy Review](https://sfi.auditforce.cloud/how-to/pre-deployment-impact-review): Review a Salesforce deployment before you run it: deletions, changed Apex and flows, automation on touched objects and tests to run, from package.xml or git. - [Where Is This Standard Field Used in Salesforce?](https://sfi.auditforce.cloud/how-to/standard-field-where-used): Salesforce's Where is this used? button only covers custom fields. How to find where a standard field like Opportunity Amount is used across Flows and code. - [Where Is This Apex Class Used? Find Unused Apex Classes](https://sfi.auditforce.cloud/how-to/where-is-apex-class-used): Find where a Salesforce Apex class is called from Apex, Flows, LWC, Aura and Visualforce, tell dead code from scheduled jobs, and delete unused classes safely. ## Error guides - [Salesforce Error Messages Explained](https://sfi.auditforce.cloud/errors): What common Salesforce errors mean, why they happen, and how to find the Flow, trigger or rule behind them, with the exact error text in every title. - [Maximum Trigger Depth Exceeded in Salesforce: Find the Loop](https://sfi.auditforce.cloud/errors/maximum-trigger-depth-exceeded): What 'maximum trigger depth exceeded' means, which saves Salesforce runs again, and how to find the trigger, flow or field update writing back to the record. ## Compare - [Compare sf-intelligence with Salesforce Tools](https://sfi.auditforce.cloud/compare): How free, local sf-intelligence compares with Salesforce's MCP servers, Elements.cloud, Clientell, dx0, Hubbl, Metazoa and Sweep, and when to pick each one. - [sf-intelligence vs Clientell MCP: Price and Data](https://sfi.auditforce.cloud/compare/clientell): Clientell's hosted Salesforce MCP starts at $249 a month. sf-intelligence is free and keeps your metadata on your laptop. What each does and who it suits. - [sf-intelligence vs dx0: Salesforce Org Intelligence](https://sfi.auditforce.cloud/compare/dx0): dx0 is a hosted, per-seat tool for understanding inherited business systems, from €85 a user a month. sf-intelligence is free, local and read-only. - [sf-intelligence vs Elements.cloud: MCP, Price, Data](https://sfi.auditforce.cloud/compare/elements-cloud): Elements.cloud now ships a metadata MCP server. Compare it with free, local sf-intelligence on price, where your metadata lives, and who each one is for. - [sf-intelligence vs Hubbl: Org Audits Compared](https://sfi.auditforce.cloud/compare/hubbl): Hubbl scores and benchmarks your Salesforce org as a hosted service. sf-intelligence answers one question at a time, free and on your laptop. Compare them. - [sf-intelligence vs Metazoa Snapshot Compared](https://sfi.auditforce.cloud/compare/metazoa): Metazoa Snapshot is a paid desktop suite that changes orgs: deploys, data moves, profile cleanups. sf-intelligence is free and only reads. Compare the two. - [Claude Code Alone vs With sf-intelligence, Measured](https://sfi.auditforce.cloud/compare/plain-claude-code): The same 8 admin questions about a real org, with and without the server: 8/8 and 8/8 correct, 46 s against 61 s, citations and quantified coverage on one side. - [sf-intelligence vs Salesforce DX MCP and Hosted MCP](https://sfi.auditforce.cloud/compare/salesforce-dx-mcp): Salesforce's MCP servers act on your org: records, deploys, tests. sf-intelligence explains it offline. What each does, DX MCP's end of life, when to use both. - [Salesforce MCP Servers Compared (2026): Which to Use](https://sfi.auditforce.cloud/compare/salesforce-mcp-servers): A fair 2026 comparison of Salesforce MCP servers: DX MCP, Salesforce hosted MCP, Elements.cloud, Clientell, salesforce-metadata-mcp and sf-intelligence. - [sf-intelligence vs Sweep: Salesforce Metadata Tools](https://sfi.auditforce.cloud/compare/sweep): Sweep is a paid agentic platform for RevOps and Salesforce teams, from $2.5K a month. sf-intelligence is a free, local, read-only MCP server for org questions. ## Blog - [Salesforce Admin & Architect Guides](https://sfi.auditforce.cloud/blog): Plain-English Salesforce guides for admins, developers and architects: field changes, save order, deployments and errors. Plus sf-intelligence release notes. - [Can I Delete This Salesforce Field? A Cleanup Method](https://sfi.auditforce.cloud/blog/delete-unused-salesforce-fields): Field population never tells you what depends on a field. The dependency-first method for deciding if a Salesforce custom field is safe to delete. - [How sf-intelligence Reasons About Your Salesforce Org](https://sfi.auditforce.cloud/blog/deterministic-reasoning-model): sf-intelligence's deterministic, offline reasoning: joins your org vault against an org-independent Concept Model to turn metadata into cited structural claims, no LLM. - [How to Create a Salesforce Data Dictionary from Metadata](https://sfi.auditforce.cloud/blog/salesforce-data-dictionary): Document every Salesforce object and field (API name, type, help text, picklists, usage) and auto-generate a living data dictionary from your org's metadata, offline. - [Salesforce Order of Execution: What Runs on Save](https://sfi.auditforce.cloud/blog/salesforce-order-of-execution): Salesforce order of execution in plain English: the save-order sequence, where flows, validation rules, triggers and workflow fire, and the bugs it causes. - [sf-intelligence 0.3.0: core tools and scoped consent](https://sfi.auditforce.cloud/blog/sf-intelligence-0-3-0): What shipped in sf-intelligence 0.3.0: a 19-tool core profile, live consent as an expiring scoped grant, egress off by default, and every breaking change to plan for. - [sf-intelligence 0.3.1: a correctness pass over 39 defects](https://sfi.auditforce.cloud/blog/sf-intelligence-0-3-1): What shipped in sf-intelligence 0.3.1: 39 verified defects fixed in already-shipped tools, the 18 regressions the fixes introduced, and the gates that now catch both. - [sf-intelligence 0.4.0: Is This Salesforce Deployment Risky?](https://sfi.auditforce.cloud/blog/sf-intelligence-0-4-0): sf-intelligence 0.4.0 answers four new questions: is this deployment risky, what sets a field to X, why a flow runs twice, and how to explain an object. - [sf-intelligence 0.5.0: Sixteen Tools, Shorter Answers, MIT](https://sfi.auditforce.cloud/blog/sf-intelligence-0-5-0): sf-intelligence 0.5.0: 16 default tools instead of 25, far less fixed text in every answer, two wrong verdicts fixed on a real org, and a plain MIT license. - [sf-intelligence 0.6.0: More Right, Not More](https://sfi.auditforce.cloud/blog/sf-intelligence-0-6-0): sf-intelligence 0.6.0 adds no tools. Flow screens, non-Apex flow actions, component markup and related-list columns now count as use; a build scorecard stops regressions. - [sf-intelligence 0.7.0: Finish the Review](https://sfi.auditforce.cloud/blog/sf-intelligence-0-7-0): sf-intelligence 0.7.0 adds no tools: OmniScript save patterns count as field writes, Flow screen components link to real components, and the demo org shows its work. - [sf-intelligence 0.8.0: Trust the Verdict](https://sfi.auditforce.cloud/blog/sf-intelligence-0-8-0): sf-intelligence 0.8.0 adds no tools: save-order answers are right on framework orgs, dead-code verdicts stop inventing confidence, and the regex router is gone. - [What Does This Salesforce Flow Do? How to Read Any Flow](https://sfi.auditforce.cloud/blog/what-does-this-salesforce-flow-do): How to read a Salesforce Flow you did not build: active version, trigger type, entry conditions, decisions, writes, and the limits of static reading. ## Reference - [sf-intelligence Tools Reference (Salesforce MCP)](https://sfi.auditforce.cloud/tools): Every read-only tool in sf-intelligence, the default set your AI assistant sees first, and the rest grouped by job, each with a link you can share or cite. - [sf-intelligence Configuration Reference](https://sfi.auditforce.cloud/configuration): Settings for sf-intelligence: choosing the vault, the default tool set, the optional live mode, network and update checks, HTTP serving and large orgs. - [Glossary: Salesforce MCP and Org Analysis Terms](https://sfi.auditforce.cloud/glossary): Plain definitions of the terms used on this site: MCP server, snapshot, refresh, dependency, impact analysis, confidence labels, live mode and more. - [Agent Skills and MCP Tools for Salesforce](https://sfi.auditforce.cloud/agent-skills): How Agent Skills and the sf-intelligence MCP tools split the work: a skill decides what to ask, the read-only tools answer from your org's real metadata. - [Is AI Safe on Your Salesforce Org?](https://sfi.auditforce.cloud/ai-safety): The two real risks of connecting AI to Salesforce are write access and your data leaving. How to judge any tool on both, and how sf-intelligence handles them. - [Is sf-intelligence Safe for Production Orgs?](https://sfi.auditforce.cloud/trust): Why sf-intelligence is safe on a production Salesforce org: it can't write, works offline, labels every answer, refuses to guess and is tested on every change. ## Machine-readable - [Tool catalog as JSON](https://sfi.auditforce.cloud/tools.json): every tool with its group, summary, core flag, read-only flag and the release version. - [MCP Registry manifest](https://sfi.auditforce.cloud/.well-known/mcp/server.json): a copy of the server.json published to the official MCP Registry. - [Full context file](https://sfi.auditforce.cloud/llms-full.txt): this file plus the complete tool catalog. - [Sitemap](https://sfi.auditforce.cloud/sitemap-index.xml) ## Source - [npm package: sf-intelligence](https://www.npmjs.com/package/sf-intelligence) - [GitHub repository](https://github.com/PranavNagrecha/Salesforce-Intelligence) ## Optional - [sf-intelligence License: What You Can Do](https://sfi.auditforce.cloud/licensing): sf-intelligence is open source under the MIT license. Use it at work, on client orgs, in products and services. The terms, quoted. ## All tools (226 listed, 231 registered) Every read-only tool in sf-intelligence 0.8.0, grouped by the product's own capability categories. You never call these by name: your AI assistant picks from the short default list, and reaches everything else by name through `sfi.run_analysis`. Tools marked (core) are in the default `core` profile and listed directly by the server; the others run through `sfi.run_analysis`. 231 tools are registered in this build; 5 back-compat aliases fold into their canonical tool and are not listed separately. ### Getting oriented (8) - `sfi.capabilities`: What this server can answer: a capability map with example questions, persona question-paths (admin, developer, architect, release manager, support) naming the tools for each, the trust-tag glossary (confidence, provenance, completeness), and the recommended conversation pattern. No args. - `sfi.list_analyses` (core): Catalog of every analysis on this server, including the ones not in tools/list: name, one-line summary and category. Use it to find a tool that is not listed, then sfi.describe_analysis for its args and sfi.run_analysis to run it. - `sfi.describe_analysis` (core): Summary, arg signature and JSON input schema for one analysis, by `name` (with or without the `sfi.` prefix). Call it before sfi.run_analysis when a tool's args are unclear. - `sfi.run_analysis` (core): Runs any analysis by `name` with `args` (an object; a JSON string of one is also accepted). Output is identical to calling the tool directly. - `sfi.route_question`: Advisory shortlist for a vague, broad or compound question. It does not answer the question. - `sfi.org_card`: Orientation snapshot of the org, precomputed at refresh (16KB max, one file read): name, edition, sandbox or production, org id, admin contact, last refresh time, coverage and blind spots, scale by type, top objects, automation density, permission posture, integration surface and naming conventions. - `sfi.guidance`: General Salesforce best-practice guidance that is NOT about this org: Flow vs Apex, order of execution, governor limits, async Apex, trigger frameworks, bulkification, testing, OWD and sharing, profiles vs permission sets, packaging, sandboxes. Returns a curated summary with links to official docs. - `sfi.disambiguate_concepts`: Vocabulary + semantic-disambiguation tier - the 'is `Status` the same as `Stage` here?' surface. ### Find & identify components (10) - `sfi.search_components` (core): Lexical (substring) search over component api names, labels and stored properties, including formula text such as ValidationRule errorConditionFormula. Use it when you know a word or snippet to look for. - `sfi.resolve` (core): Turns an informal or misspelled name into canonical-id candidates with a disposition: exact | ambiguous | none. Call it FIRST whenever the user names a component loosely ('the SSN field', 'something like Intake'), then pass the id on. - `sfi.get_component` (core): Fetches one component's definition by canonical id. Pass `id` (or `componentId`) in Type:ApiName form: CustomObject:Account, CustomField:Account.Industry__c, ApexClass:OrderService, Flow:Lead_Intake. - `sfi.list_components`: Inventory: lists components of one `type` (see enum), paged in id order. Narrow to one object with `objectApiName` (for example "Contact"; aliases object/objectId) or to any parent with `parentId` (for example "CustomObject:Contact"); the narrow applied is echoed in `appliedScope`. - `sfi.query_graph`: ADVANCED / power-user: a read-only, guard-railed STRUCTURED query over the vault's dependency graph, for ad-hoc questions the purpose-built tools don't cover (e.g. "every ApexClass whose api name starts with Billing", "all grantedBy edges of heuristic confidence", "nodes with no lastModifiedBy"). - `sfi.search_apex_source`: Search the vaulted Apex source for matches. Optional regex; returns path, line, and snippet. - `sfi.search_flow_metadata`: Search the vaulted Flow metadata XML for matches. Optional regex; returns path, line, and snippet. - `sfi.lookup_record`: Given a CustomMetadataRecord or CustomSettingRecord canonical id (e.g., `CustomMetadataRecord:Marketo_Api_Setting__mdt.Default`), return the record's label, protected flag, parent type ApiName, and the full per-field value list. - `sfi.find_field_anywhere`: Universal-search surface - answers 'where is this field used anywhere in the org?' for one CustomField id, passed as `targetId` or its alias `fieldId` (field-tool-family parity). - `sfi.find_semantic_field`: Semantic-discovery surface - answers 'do we already have a field for X?'. ### Understand what something does (16) - `sfi.lifecycle_process`: "What happens when {Object}.{field} becomes {value}?" - the existing process for a specific value or stage transition (which automations already run when a record moves into a given state, e.g. an Opportunity going to Closed Won or a Case status flip). - `sfi.explain_field`: Given a CustomField canonical id, return the field's label, description, type, required flag, and, `picklistValues`: the DECLARED value set from the field's inline value-set definition. - `sfi.compare_components`: Compare two live-graph components by canonical id, returning the structural diff. - `sfi.object_360`: "Tell me EVERYTHING about this OBJECT" - the object-tier counterpart to `field_360`, and the tool for "what is {Object} and what is attached to it", "what would I be touching if I changed/retired this object", "which profiles can create or edit it", "what reports and record pages use it". - `sfi.what_happens_on_save` (core): What runs when a record of one object is saved, in Salesforce order of execution for one DML event: flows, validation and duplicate rules, triggers, workflow, assignment, auto-response and escalation rules, approvals, roll-ups and async Apex, by phase. - `sfi.explain_flow`: Explain what a Flow does in plain business terms - what it is FOR, when it runs, and what it changes. The go-to answer for "what does this flow do", "what is this automation for", "walk me through this process", or "explain the {Name} flow". - `sfi.flow_graph` (core): The structural graph of one Flow: every element with its real name, label and the author's own description, the element-to-element connectors, decision rules, assignments, record-op filters, screen fields, action parameters, formulas, variables, subflows and the start element. - `sfi.flow_trace`: Honest PROJECTION of a Flow over a caller-supplied record state - the "what happens to THIS record" debugger. - `sfi.explain_apex_method`: Given an ApexClass or ApexTrigger canonical id (`ApexClass:{ClassName}` or `ApexTrigger:{TriggerName}`), return a structured narrative payload for the explainer. - `sfi.explain_formula`: Tokenize a Salesforce formula expression and return a structured narrative payload for the explainer. - `sfi.field_meaning`: Vocabulary + semantic-disambiguation tier - the 'what does this field actually mean in our org?' surface. - `sfi.field_provenance`: Vocabulary + semantic-disambiguation tier - the 'is this field manually entered or automated?' surface. - `sfi.field_360`: A complete 360 profile of a single FIELD - everything that touches that field across validation, formulas, automation, code, UI, integrations, and emails, in one place. - `sfi.explain_error`: Decode a PASTED Salesforce error string back to the org component that produced it - the support desk's first-line tool. - `sfi.explain_debug_log`: Decode a PASTED Apex DEBUG LOG, flow fault text, or governor-limit exception back to the org component that ran - the developer/support runtime-triage wedge, ZERO org access. - `sfi.trace_debug_log`: READ a pasted Apex DEBUG LOG as the EVENT STREAM it is, and answer the four questions a log is actually opened for: the execution TIMELINE, WHERE THE TIME WENT, WHICH AUTOMATION FIRED IN WHAT ORDER, and CONSUMPTION BY PHASE + the platform's own limit table. 100% OFFLINE. ### Impact & dependencies (25) - `sfi.get_edges`: Raw graph edges touching one node. - `sfi.get_subgraph`: BFS from a root component, up to `hops` (max 3). Returns the connected node and edge slice, capped at 200 nodes / 400 edges and bounded again by a response-byte budget. - `sfi.get_impact`: Answers 'what breaks if I change or delete this?' by walking incoming dependency edges from one component. - `sfi.find_formula_references`: List the incoming `references` edges to a field with the source nodes and edge-level metadata (e.g., formula tokenizer properties). - `sfi.find_code_usages`: List the code source files (ApexClass, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle, VisualforcePage, VisualforceComponent) that read, write, call, or reference a component. - `sfi.safe_to_delete_field` (core): Deletion verdict for one field, with the evidence. - `sfi.find_dependency_cycles`: Architect tool: find cyclic dependency clusters in the org's Apex. - `sfi.field_change_advisor`: Decision-support tool: before changing a field, see the whole blast radius in one briefing. - `sfi.what_if_change_field_value`: Value-change impact (Data Steward / Identity & Integration lens): given a CustomField `fieldId`, what breaks if its stored VALUE changes - NOT its schema (use what_if_change_field_type for type/required/delete). - `sfi.value_change_audit`: Batch value-change audit (Data Steward lens): given an `object` and optionally a list of `fields`, risk-ranks the impact of changing each field's stored VALUE - the portfolio version of what_if_change_field_value. - `sfi.why_field_changed`: Each writer carries the literal it sets or its source and `operation`; pass `value` to ask what sets the field to X: picklist values are checked against the value set, checkboxes take true/false, and `valueFilter` groups every writer into `definitelySets`, `maySet`, and `cannotSet`. - `sfi.record_delete_impact`: "If a record of this object is deleted, what happens to its children, and what stops it?" For an object: `children[]`, citing the field file and the `` line. - `sfi.what_if_change_field_type`: Given a CustomField canonical id (`CustomField:{Object}.{Field}`) and a proposed new field type, returns the structured impact across every incoming dependency edge. - `sfi.what_if_remove_picklist_value`: Given a Picklist or MultiselectPicklist CustomField id and a value to remove, lists the components it can see using the value. - `sfi.what_if_make_field_required`: Given a CustomField id (`CustomField:{Object}.{Field}`), walks the parent object's write paths and flags incomplete writes that would fail at runtime once the field is required. - `sfi.what_if_deactivate_flow`: Given a Flow canonical id, bare API name, or flow label / partial name, enumerates the downstream impact of deactivating the Flow by walking every outgoing edge. - `sfi.what_if_disable_trigger`: Given an ApexTrigger canonical id (`ApexTrigger:{Name}`), enumerates the downstream impact of disabling the trigger by walking every outgoing edge. - `sfi.what_if_change_method_signature`: Given an ApexClass, a method name, and an optional new signature string, enumerates every direct caller of the named method plus every test class exercising the target class. - `sfi.what_if_merge_profiles`: Given two Profile canonical ids, walks both profiles' grants and visibility settings, groups them by `(settingType, settingId)`, and surfaces every pairwise disagreement as a `MergeConflict` carrying `profileAValue`, `profileBValue`, and a `recommendedPolicy`. - `sfi.what_if_split_profile`: Given a Profile id (`Profile:{Name}`) and an ordered array of target PermissionSet ids (`PermissionSet:{Name}`), proposes a per-grant assignment via a greedy keyword-match heuristic. - `sfi.downstream_effects`: Given an `ApexClass:`, `ApexTrigger:`, OR `CustomObject:` id, surfaces what downstream automation and side effects are reachable. - `sfi.review_change`: Is this deployment risky? Pre-deploy review of a change set - answers 'what could go wrong if I deploy this', 'what should I test before deploying', 'review my package.xml / PR / changeset'. - `sfi.package_impact`: Managed-package boundary surface - 'what does the {namespace} package touch, and what of MINE breaks if I uninstall/upgrade it?'. - `sfi.field_lineage`: Trace where a field's value comes from and what it feeds - its data provenance upstream (which automations, formulas, code, or integrations set it) and its downstream effects (what reads it, what fires because of it). - `sfi.find_component_usages` (core): Where is this component used: everything that points to one canonical component (`componentId` of any type). ### Structural reasoning & consequences (2) - `sfi.synthesize_answer`: Grounding check before you answer. `input` is REQUIRED: the JSON output of earlier sfi.* calls (any JSON; combine several results in one array or object). - `sfi.interpret`: WHEN to reach for this: the user asks what a component structurally IMPLIES, or the CONSEQUENCES of a design. ### Permissions, sharing & access (27) - `sfi.permission_risk_report`: Ranked permission-risk report, leading with OVER-PRIVILEGE read straight from the extracted profile / permission-set metadata. - `sfi.permission_set_consolidation`: Offline, vault-only CONSOLIDATION candidates for permission sets, from DECLARED grants - 'which permission sets are redundant / duplicate / consolidatable'. - `sfi.effective_permissions` (core): What a profile plus permission sets actually grant, unioned (most permissive wins), each grant attributed to the container that gives it: object CRUD and View/Modify All, field security, system and custom permissions, Apex class access, record-type visibility, Visualforce pages and tabs. - `sfi.who_can_run`: The REVERSE of `sfi.user_ability`: given a `Flow:X` (`componentId`), which Profiles / PermissionSets grant RUN access to it (from the `flowAccess` `grantedBy` edges). - `sfi.who_can_access_object`: Reverse access lookup: which profiles, permission sets, roles and groups can reach records of one object, and how. - `sfi.guest_exposure_report`: "What can UNAUTHENTICATED GUEST users see in my Experience Cloud / Site communities?" - the audit for one of the most notorious real-world Salesforce leaks (over-permissioned site guest profiles exposing PII to the open internet). - `sfi.community_catalog`: "What Experience Cloud communities does this org have, and WHO CAN LOG INTO them?" - the OFFLINE metadata answer, one row per community, joining the `Network` (community definition) to the `CustomSite` (site container) it names through ``. - `sfi.why_cant_user_see_record` (core): Whether a user can see, edit, delete or create records of an object, and why not. Walks the access cascade (object CRUD, View/Modify All, org-wide defaults, role hierarchy, sharing, restriction and scoping rules) into a step-by-step chain with a verdict: visible | restricted | unknown. - `sfi.layout_for_user`: Walk the Salesforce layout-routing cascade for a given object, optional record type, and profile. - `sfi.user_ability`: "What can this Profile / PermissionSet RUN or DO?" - beyond record CRUD (which `object_access_audit` / `why_cant_user_see_record` cover). - `sfi.profile_security`: "What are this profile's login & session security policies?" - a focused security-audit surface separate from `user_ability` (which is "what can it RUN or DO"). - `sfi.security_settings`: "What are my ORG-WIDE security settings - and what can this product NOT see?" One call over `settings/Security.settings-meta.xml` (root ``), which produces two org-level singletons. - `sfi.lightning_pages`: Lightning record pages (FlexiPage), both directions. - `sfi.list_view_sharing`: "Who is this list view shared with?" - a list view's `` visibility scope (the groups/roles it shows up for in the list-view picker), now captured at extraction as `visibleTo` edges. - `sfi.app_access`: Given a `CustomApplication`, return what's IN the app and WHO can use it: `navType`, `tabs`, `canOpen`, and `defaultedBy`. - `sfi.tab_availability`: Given a `Profile:X` or `PermissionSet:X`, list the tabs it can see: each row carries the `tab`, the verbatim `visibility` enum, and an `available` flag normalising 'the user can reach this tab'. - `sfi.layout_assignments`: The REVERSE of `sfi.layout_for_user`: enumerate every (Profile × RecordType) assignment that targets a page layout - the question an admin asks before editing or deleting a layout. - `sfi.field_access_audit`: Who can read or edit one FIELD: every Profile and PermissionSet that grants field-level security on it, plus Apex classes that read or write it (an indirect path). - `sfi.object_access_audit`: Given a CustomObject canonical id (`CustomObject:{ApiName}`), enumerate every Profile and PermissionSet that grants OBJECT-level access via incoming `grantedBy` edges. - `sfi.recordtype_availability`: Given a Profile or PermissionSet canonical id, report which record types the user can CREATE / see, grouped by object, from the granter's `recordTypeVisibilities`. - `sfi.persona_unused_grants`: Which object and field permissions does this kind of user have that nothing they can run uses? - `sfi.how_to_see`: The exact click path a reviewer follows to open a component - the "How to see it" steps of a finding, worded with the vault's labels. - `sfi.unassigned_permission_sets`: List PermissionSets unassigned to users. - `sfi.crud_fls_audit`: CRUD/FLS enforcement audit. - `sfi.what_if_assign_permset`: Permission-set what-if tool: given a target permission set and a `baseline` container set, returns the NET access the user would GAIN by assigning the target. - `sfi.what_if_revoke_permset`: Permission-set what-if tool: given a target permission set and a `baseline` container set, returns the NET access the user would LOSE by revoking the target. - `sfi.generate_sharing_summary`: Composes a structured markdown sharing summary covering every CustomObject's OWD, the SharingRules that apply, the Profile / PermissionSet grants tallied from incoming `grantedBy` edges on the object, and the Role Hierarchy. ### Automation & code behavior (27) - `sfi.automation_risk_report`: Ranked automation risks: Process Builder migration candidates and governor-limit findings. - `sfi.action_chain`: "What actually happens when I convert this Lead / submit this record for approval?" - a record ACTION composed as a CHAIN, the way `order_of_execution` composes a record SAVE. - `sfi.apex_test_coverage`: Developer tool: map test-class references to the Apex they exercise. With `classApiName`, returns the test classes that reach it (`target.coveringTests`; `coveringTestDetail` gives depth and `via`: direct / transitive / via-trigger) and a `status` of has-test-references / no-test-references-found. - `sfi.automation_build_advisor`: Decision-support tool: before an admin/architect builds automation on an object, brief them on what already runs there and the org-specific risks of adding more. - `sfi.automation_collisions`: Field-level write-collision + save-recursion cycle detector for ONE object - 'is my org fighting itself on this object?'. Where automation_build_advisor flags OBJECT-level hazards (multiple flows, mixed paradigms), this tool looks at what those automations actually WRITE. - `sfi.apex_build_advisor`: Decision-support tool: before a developer writes Apex, brief them on what the org's existing Apex teaches. - `sfi.order_of_execution`: Full order-of-execution map for one object across every DML event (insert, update, delete, undelete): the same per-phase steps as sfi.what_happens_on_save, keyed by event in `byEvent`. - `sfi.record_creation_paths`: "How do records of this object get created?" - the record-provenance trace an admin needs to answer "how did this record get here?". - `sfi.nonselective_soql`: Flag NON-SELECTIVE SOQL - a WHERE clause with a full-table-scan / timeout shape at large data volume. - `sfi.flow_bulkification_audit`: Flag Flows that perform a record Create / Update / Delete or a Get Records lookup INSIDE a Loop body, plus filterless Get Records anywhere - the Flow-side complement of `sfi.governor_limit_risks`, which scans only ApexClass / ApexTrigger source and never sees Flows. - `sfi.flow_fault_audit`: Which Flows have a DML/action element with NO fault path - the flow error-handling hygiene sweep. - `sfi.apex_structure`: The PARSED anatomy of ONE Apex class or trigger, plus the review a senior reviewer would give it - the Apex counterpart of `sfi.flow_graph(walkthrough)`. - `sfi.process_builder_migration_candidates`: List active Process Builder (Flow with `processType: 'Workflow'`), WorkflowRule, and ApprovalProcess nodes as migration candidates with per-rule complexity ('simple' / 'moderate' / 'complex') and a migration-notes paragraph. - `sfi.code_quality_audit`: General-purpose code-quality entry point. - `sfi.governor_limit_risks`: Apex-specific narrowing for governor-limit-relevant patterns - the performance/scale subset of the quality catalog. - `sfi.find_hardcoded_values`: 'find me hardcoded IDs / emails / usernames / endpoint URLs / sandbox-test-data' surface. - `sfi.test_coverage_gaps`: `properties.isTest === true` identifies test classes, BFS over incoming callsApex / dispatchesAsync / inheritsFrom / references edges from Apex, plus a trigger hop for a test whose DML fires a trigger that reaches the class. - `sfi.call_graph`: Deep code tool: given a root `ApexClass:` or `ApexTrigger:` id and an optional `direction` (`'downstream' | 'upstream' | 'both'`; defaults to `'both'`), BFS over `callsApex` edges up to `maxDepth` hops (default 3, max 5). - `sfi.test_coverage_for_method`: Deep code tool: given an `ApexClass:` or `ApexTrigger:` id and an optional `methodName`, walks upstream `callsApex` + `dispatchesAsync` BFS and surfaces every test class that reaches the target. - `sfi.meaningful_test_audit`: Lists every ApexClass with `properties.isTest === true` with a heuristic assertion-meaningfulness score. - `sfi.method_reachability`: Given an ApexClass / ApexTrigger, walks upstream USAGE-edge BFS and classifies the reachable upstream set against the entry-point taxonomy. - `sfi.tests_for_change`: Smart test selection: given `changedComponents`, returns the MINIMAL set of test classes to run plus the inverse risk signal - changed components no test reaches. - `sfi.async_chain_depth`: Given an ApexClass canonical id (`ApexClass:{Name}`), walks the transitive async chain via outgoing `dispatchesAsync` edges, capped at 10 hops. - `sfi.scheduled_job_catalog`: Returns one entry per ApexClass with `properties.isSchedulable === true`, with the per-class `scheduledByCalls` array surfaced from inbound `dispatchesAsync` edges whose `properties.dispatchMechanism === 'schedule'`. - `sfi.find_hardcoded_values_anywhere`: Cross-corpus hardcoded-value surface - extends `sfi.find_hardcoded_values` (Apex-only) with formula expressions (CustomField.formula), ValidationRule.errorConditionFormula, and WorkflowRule.formula. - `sfi.find_clone_patterns`: Structural clone-detection surface. TWO modes. - `sfi.find_dead_code` (core): Which Apex classes, triggers, flows and custom fields have no visible callers. ### Integrations & external systems (6) - `sfi.integration_map`: Return a structured topology of the org's integration surfaces: AuthProviders, NamedCredentials, RemoteSiteSettings, CspTrustedSites, ExternalDataSources, ExternalServices, ConnectedApps, NetworkAccess entries, plus the cross-type `references` edges connecting them. - `sfi.event_subscribers`: DETAIL VIEW for ONE Platform Event. - `sfi.event_topology`: The org's EVENT PLANE in one call - Platform Events, Change Data Capture, and the channels that carry both, with inventory AND where-used. - `sfi.outbound_message_catalog`: Returns one entry per OutboundMessage node with the endpoint URL, payload shape, integration user, the includeSessionId / useDeadLetterQueue flags, and the WorkflowRules that invoke it via incoming `references` edges. - `sfi.endpoint_catalog`: Returns every URL / endpoint participating in an integration in one structured response, split four ways - `inboundApis`, `apexCallouts`, `outboundMessages`, `externalDataSources`, and `namedCredentials`, plus `storedEndpoints`. - `sfi.installed_package_catalog`: Answer "what packages are installed in this org?" from the `InstalledPackage` metadata the refresh extracts (`installedPackages/.installedPackage-meta.xml`). ### Generate documentation (11) - `sfi.generate_fleet_report`: The "state of my orgs" digest: ONE GeneratedDocument composed across EVERY vault in the multi-vault registry, so you get a single artifact instead of running sfi.org_pulse / sfi.fleet_find / sfi.fleet_drift_ranking once per org by hand. - `sfi.get_naming_convention_report`: Return the naming-convention pattern observations, optionally scoped to one object (`scope: 'CustomField:{Object}'` or `'CustomField:{Object}.*'`; omit or pass `'all'` for org-wide). - `sfi.export_manifest`: Group a set of canonical component ids into a well-formed `package.xml` snippet a human can hand to Gearset / Copado / `sf project deploy`. - `sfi.org_overview` (core): Org tour computed from the graph: counts per component type, top 10 objects by inbound dependencies, top Apex classes by callers, broadest profiles, integration surface, automation summary with active ratio, front-end mix, legacy-debt indicators, largest classes and naming conventions. - `sfi.domain_clusters`: Cluster the org's CustomObject + ApexClass + Flow nodes into SUGGESTED domain groupings using a greedy shared-edge-density algorithm. - `sfi.generate_data_dictionary`: Given a CustomObject, composes a structured markdown document covering the object's Overview, Fields, Relationships, Validation Rules, Page Layouts, and Related Triggers/Flows. - `sfi.generate_admin_handbook`: Composes a structured markdown admin handbook covering the org's purpose, main objects, automation summary, permission structure, integration topology, and recent changes. - `sfi.generate_architecture_overview`: Composes a 3-4 page architecture document chaining `sfi.org_overview` + `sfi.domain_clusters` + `sfi.integration_map`. - `sfi.generate_compliance_report`: Composes a structured markdown compliance report chaining `sfi.pii_inventory` + `sfi.field_access_audit` (per regulated field on the current PAGE - default 25, adjustable via limit/offset/cursor) + per-object `sharingModel` lookup. - `sfi.generate_onboarding_doc`: ORG-WIDE only - to document ONE object for a new hire use `sfi.object_360` with `format: "handbook"`. - `sfi.field_mapping_between_objects`: Map the fields of one object onto another for a conversion or migration - which field on object A corresponds to which field on object B, and which fields have no match and would lose data. ### Health, freshness & audit (32) - `sfi.org_pulse`: Org pulse for the current vault: freshness coverage (how many components carry a known lastModifiedDate, the coverage %, and the oldest/newest components) plus the top contributors by lastModifiedBy. Answers "how fresh is what I know about this org?" and "who shaped this org?". - `sfi.doc_coverage_report`: Offline, vault-only documentation-GAP meter - the documentation axis `sfi.tech_debt_score` lacks. MEASURES where the org's metadata is undocumented (it does NOT PRODUCE docs like `sfi.generate_data_dictionary` / `sfi.generate_admin_handbook`). - `sfi.limit_headroom_report`: Offline, vault-only limit-headroom report - the replacement for the retiring Salesforce Optimizer's limit report. Counts the org's METADATA against per-object and per-org CONFIGURATION ceilings and ranks the rows WORST-FIRST by remaining headroom% so an admin acts before a deploy hits a wall. - `sfi.get_manifest`: Return the current vault manifest (org-kb/meta/manifest.json) verbatim. - `sfi.coverage_report`: Report the vault's self-assessed metadata coverage: covered, partial, not-modeled, and - during a staged refresh - pending families (queued by the in-progress tiered build, with `stagedBuild` tier progress; pending types count as missing coverage, so absence answers about them must stay qualified). - `sfi.retrieve_blindspot_report`: Retrieve blind spots: components REFERENCED by retrieved automation / code / config but ABSENT from the vault (their edge targets resolve to no node). The honest backing for absence answers: an 'X is unused / nothing references X / X is safe to delete' answer about a listed target is unreliable. - `sfi.health_check` (core): Vault health: status, coverage completeness by type, freshness (vault age, stale flag, changes in the last refresh), staged-refresh progress and vault-history status. No args. - `sfi.baseline_acknowledge`: Acknowledge a heuristic finding so SAST tools suppress it across refreshes (stored in org-kb/meta/baseline.json). - `sfi.baseline_status`: List suppressed finding fingerprints and per-tool counts from the vault baseline file. - `sfi.org_risk_report`: Deterministic org risk synthesis: health, tech debt, over-privilege (standard profiles ranked below custom grantors), guest-user exposure, PII and coverage gaps ranked with trust metadata. - `sfi.unused_components`: Find UNUSED / DEAD components - Apex classes that are never called, flows that are deployed but never run, permission sets nobody uses, email templates nobody sends, fields nothing reads. - `sfi.ai_exposure_report`: AI-exposure audit (the flagship): 'what data can my org's own AI see?'. - `sfi.what_changed_since_refresh`: 'since my last refresh, which component TYPES changed?'. Reads the continuous-learning store's MOST RECENT refresh entry and returns the non-zero per-type `changedTypes` (signed: + added / − removed), `changedTypeCount`, `changedEdges`, `lastRefreshedAt`, and a plain-language `interpretation`. - `sfi.org_history`: Refresh timeline of this vault: per-refresh component and edge changes by type, most recent first, plus refreshCount, first and last refresh time and net component change. Use it for 'how has the org changed over time'. - `sfi.diff_snapshots`: Compare two captured vault snapshots and report the structural diff. `fromLabel` and `toLabel` name persisted snapshots under `{vaultRoot}/snapshots/`; the special value `'current'` for `toLabel` triggers a transient capture of the live graph (no persisted artefact). - `sfi.trend`: Timeline of persisted snapshot captures. Default (no `metric`): component/edge counts per label. - `sfi.pii_inventory`: Enumerate every CustomField in the vault, classify each with the `pii-detection` recognizer (which inspects API name, declared data type, and description text), then emit a structured inventory. - `sfi.changed_since`: Enumerate every vault node whose `lastModifiedDate` is at or after `since`. - `sfi.last_modified`: Given a canonical componentId (e.g., `ApexClass:AccountController`, `CustomField:Account.Industry`, `Flow:Lead_Nurture`), return the component's freshness fields: `lastModifiedDate` (ISO 8601 or null), `lastModifiedBy: { id, name }` (or null), and `apiVersion` (number or null). - `sfi.unused_fields_deep`: Optional `objectId` narrows the scan to one CustomObject - accepts the canonical id (`CustomObject:Account`) or a bare api name (`Account`), matched case-insensitively against the vault and echoed back as `appliedScope`; without it the scan is org-wide. - `sfi.empty_queues_and_groups`: List Queue and Group nodes with zero members, and say which of those zeros were actually MEASURED. - `sfi.tech_debt_score`: Aggregate the unused_components, unused_fields_deep / process_builder_migration_candidates / unassigned_permission_sets / empty_queues_and_groups, qualityIssues data, freshness data, and the Apex API-version distribution into one weighted 0-100 score plus a category breakdown. - `sfi.picklist_integrity_scan`: Org-wide picklist value-set integrity scan - the INVERSE of what_if_remove_picklist_value (which starts from one value). - `sfi.annotations`: Read the curated annotations overlay (`meta/annotations.jsonl`): ownership, lifecycle status (e.g. deprecated), glossary synonyms, domain grouping, and notes that humans stated - or AI proposed and a human confirmed - about org components. - `sfi.propose_annotation`: Record an AI-PROPOSED annotation (owner / status / glossary / domain / note) for a component. Written ALWAYS as `source: 'ai', confirmed: false` - confirmation is a human act via `sfi.confirm_annotation` (or CLI `sfi annotate confirm `); discard with `sfi.reject_annotation`. - `sfi.review_annotations`: List UNCONFIRMED annotation proposals from `meta/annotations.jsonl` (AI proposals awaiting human sign-off). Optional `componentId` / `key` / `author` filters. - `sfi.confirm_annotation`: Confirm an AI-proposed annotation: re-writes the existing (componentId, key) value as `source: 'human', confirmed: true` - the same write as CLI `sfi annotate confirm `. Idempotent when already confirmed. - `sfi.reject_annotation`: Reject (discard) an UNCONFIRMED annotation proposal by writing `op: 'unset'` for the (componentId, key) pair - dedicated reject verb wrapping CLI `sfi annotate --key --unset`. Refuses already-confirmed entries (those are curated facts; remove them via the CLI unset path). - `sfi.component_history`: The component's change timeline from the vault's OWN git history: `git log --follow` over its source file, merged with the org-declared metadata lastModified stamps; optional capped unified diff of the most recent change. - `sfi.component_change_attribution`: Who changed this component in Setup, and when - OFFLINE, from persisted SetupAuditTrail rows (`meta/setup-audit-trail.jsonl` written by `sfi refresh --with-audit-trail`). - `sfi.component_as_of`: The component AS IT WAS at a git ref in the vault's own history: `git show :` re-run through the SAME extractor the refresh uses for that type → declared properties-as-of (apiName/label/type + extractor properties). - `sfi.history_tracking_gaps`: Compliance audit: 'which sensitive fields have no field-history tracking enabled?'. ### Live org data (opt-in) (38) - `sfi.live_describe`: Opt-in live org: describe an sObject via Salesforce CLI. Disabled unless SFI_LIVE_PLANE_ENABLED=1 or liveEnabled=true. - `sfi.live_stale_check`: Opt-in live org: "is the org AHEAD of the vault?". - `sfi.live_count`: Opt-in live org: count records. Pass `objectApiName` to count every row of an object, or `soql` for a custom count query. - `sfi.live_sample`: Opt-in live org: run SOQL with a hard row cap (default + max 200). Read-only sample rows for runtime questions. - `sfi.live_field_population`: Opt-in live org: population rate for one field (total vs null counts). - `sfi.live_group_count`: Opt-in live org: value distribution - COUNT grouped by one field on any object (e.g. Cases by Status, Accounts by Industry). Optional equality filter. - `sfi.live_stale_records`: Opt-in live org: records on any object not touched in N days (default LastModifiedDate). Answers "which X are stale/unused?" without arbitrary SOQL. - `sfi.live_recent_activity`: Opt-in live org: records created or modified in the last N days on any object. Read-only; capped detail with true total. - `sfi.live_aggregate`: Opt-in live org: MIN/MAX/AVG/SUM on one numeric field for any object. Optional equality filter. - `sfi.live_duplicate_check`: Opt-in live org: find duplicate values on one field (GROUP BY + HAVING COUNT > 1). Read-only; capped duplicate groups. - `sfi.live_owner_breakdown`: Opt-in live org: record counts by OwnerId with User/Queue names resolved. Read-only; top owners by volume. - `sfi.live_record_access`: Opt-in live org: a specific user's EFFECTIVE access to ONE record right now - Read / Edit / Delete / Transfer / Full (All) - from the org's live sharing calculation (UserRecordAccess). - `sfi.live_access_oracle`: Opt-in live org: PARITY ORACLE for the offline permission engine. - `sfi.live_record_shares`: Opt-in live org: the explicit sharing rows on ONE record - WHO it is shared with and WHY - from the runtime `{Object}Share` table (each row is a UserOrGroupId + AccessLevel + RowCause: Owner / Manual / a sharing Rule / a Team / Apex managed sharing). - `sfi.live_scheduled_jobs`: Opt-in live org: the RUNTIME schedule registry - what is ACTUALLY scheduled right now - from CronTrigger (+ CronJobDetail.Name / JobType, State, CronExpression, NextFireTime, TimesTriggered), plus an optional recent AsyncApexJob status summary. - `sfi.live_field_history`: Opt-in live org: WHO changed a field on a record and to what - from the `{Object}History` table (Field, OldValue, NewValue, CreatedBy.Name, CreatedDate). Filter by `fieldApiName`, `recordId`, and/or `days`. - `sfi.live_storage_by_object`: Opt-in live org: record counts across objects via the Salesforce recordCount REST API - top N by volume, optional objectApiNames filter. Read-only. - `sfi.live_org_limits`: Opt-in live org: current org governor limits via REST. Read-only. - `sfi.live_data_skew`: Opt-in live org: ownership / data-skew concentration - which `ownerField` value (default `OwnerId`) holds MORE than `threshold` records (default 10,000) of `objectApiName`, via a single `GROUP BY ... HAVING COUNT(Id) > threshold` SOQL aggregate, worst-concentration first. - `sfi.live_security_exposure`: Opt-in live org: the RUNTIME security-exposure snapshot, via resilient SOQL COUNT over PermissionSet / PermissionSetAssignment. - `sfi.live_inactive_users`: Opt-in live org: active users who haven't logged in within N days (default 30) or never have - the license-reclamation / dormant-account question. Standard (human) users by default; reports the true total (`totalInactive`) plus a capped detail page, oldest-dormant first. - `sfi.live_permset_holders`: Opt-in live org: WHO HOLDS a permission set, permission set group, or profile - the name-by-name assignment roster (PermissionSetAssignment / User rows are runtime state, never in the vault; vault sfi.effective_permissions describes what a grantor GRANTS, not who holds it). - `sfi.live_zombie_accounts`: Opt-in live org: ZOMBIE accounts - active users with login access but ZERO permission-set/PSG assignments, via a single SOQL anti-join. - `sfi.live_group_members`: Opt-in live org: WHO IS IN a queue or public group - the runtime GroupMember roster (metadata XML only carries DECLARED members, so the vault's member counts routinely say 0 while Setup-managed membership is live-only; vault sfi.empty_queues_and_groups reads the declared counts). - `sfi.live_user_permsets`: Opt-in live org: WHAT does USER X hold - the reverse of sfi.live_permset_holders (input = a user, output = the grantors they hold: profile + direct permission sets + permission set groups, with expirations). - `sfi.live_setup_audit_trail`: Opt-in live org: WHO CHANGED WHAT in Setup - the SetupAuditTrail roster (profile/permission-set edits, field changes, org-wide-default flips, and every other tracked configuration change), the runtime "who touched this" question the vault's declared metadata cannot answer. - `sfi.live_license_usage`: Opt-in live org: license / cost optimization. - `sfi.live_consent` (core): Reports, grants or revokes the per-org live-plane grant. The live plane runs read-only queries against the real org for record counts, samples and field population. - `sfi.live_report_usage`: Opt-in live org: stale/unused reports via Report.LastRunDate - total vs not-run-in-N-days. Read-only; resilient when Report is unavailable. - `sfi.live_folder_access`: Opt-in live org: folder inventory and access types (Report/Dashboard/Email/Document). Read-only; flags publicly accessible folders. - `sfi.live_email_template_usage`: Opt-in live org: email template usage, Classic vs Lightning classification, and migration candidates. Read-only. - `sfi.live_org_health`: Opt-in live org: operational health snapshot - failed/pending async jobs, paused flow interviews, governor limits at risk. Read-only. - `sfi.live_automation_fired`: Does this record-triggered automation actually run in production? - `sfi.live_picklist_usage`: Which picklist VALUES are actually used in production. - `sfi.live_budget`: Disclose this session's live-query budget and result-cache state. - `sfi.blast_radius_live`: Fuse the static impact graph with LIVE record magnitude - "what breaks if I change/remove X, and how much is at stake?". - `sfi.live_drift_check`: Offline↔live contradiction detection (requires the opt-in live plane). - `sfi.live_verify`: Confirm ONE claim against the live org now, with the smallest read-only query that can, so a finding never rests on a stale snapshot. ### Industries: OmniStudio & CPQ (18) - `sfi.cpq_rule_chain`: Given a CpqProductRule or CpqPriceRule canonical id, returns the chain of rules of the same type sharing the same parent CustomObject (the SBQQ__ rule object definition), sorted by `(active DESC, evaluationOrder ASC, id ASC)`. - `sfi.cpq_quote_template_breakdown`: Given a CpqQuoteTemplate canonical id, returns the template's top-level configuration plus a best-effort `sections` list derived from values whose `field` token begins with `SBQQ__Section__c`. - `sfi.cpq_dependency_map`: Walks the values mirror of every requested CPQ-typed node and surfaces every string-encoded `SBQQ__`-prefixed field reference as a heuristic dependency entry. - `sfi.datatransform_field_map`: Given an OmniDataTransform canonical id (`OmniDataTransform:{Name}_{VersionNumber}`), returns the DataRaptor's source-to-target field mapping plus the operation-type metadata (Extract / Load / Transform). - `sfi.decision_table_browse`: Given a DecisionTable canonical id, returns the table's parameter shape, and ALWAYS sets `rows: null`. will NOT enumerate row content; row data lives in the CSV uploaded to Salesforce Files, in the `sourceObject` SObject records, or in the OmniStudio designer's row-editor UI. - `sfi.integration_procedure_chain`: Given an OmniIntegrationProcedure canonical id, returns the IP's identity metadata and its steps, in runtime order, each with `name`, `type`, `description`, `sequenceNumber`, `isActive`, `executionConditionalFormula`, `path` / `depth`, and the element catalog's `canonicalType` and `role`. - `sfi.omniscript_flow`: Given an OmniScript canonical id, returns the parsed step sequence, the downstream IP / DataRaptor / sibling-OmniScript dispatches resolved through `dispatchesOmniAction` outgoing edges, and the OmniScript's identity metadata sourced from the R2 extractor's node properties. - `sfi.omniuicard_widget_breakdown`: Given an OmniUiCard canonical id, returns the FlexCard's identity metadata, the parsed `states[]` array each carrying `name`, `stateIndex`, recursive `widgetCount`, and the full recursive `widgets[]` tree, the declared `dataSource`. - `sfi.omni_model`: The inside of ONE OmniStudio component as nodes and edges: an OmniScript's elements, the data keys they produce and read, the server calls they make and the Integration Procedure input keys those fill, Edit Block delete paths; an Integration Procedure's steps in execution order. - `sfi.omni_dead_references`: Does every show rule, merge field and payload key in an OmniScript / Integration Procedure point at something that exists in the version that RUNS? - `sfi.omni_version_diff`: What changed between two versions of one OmniScript or Integration Procedure: elements added, removed and RENAMED, plus changes to behaviour-relevant settings. - `sfi.omni_edit_block_audit`: Audit every Edit Block of an OmniScript's active version - or of every active OmniScript: which server delete is wired, whether each delete IP is in the vault, where the deleted record's id comes from, and whether an edited card keeps its record. - `sfi.omni_completion_audit`: Does "Complete" mean "saved"? - `sfi.omni_form_spec`: The form a browser test runner fills, from metadata: for an OmniScript's active version, every step and its inputs, and a `sampleValue` that satisfies them. - `sfi.omni_path_simulator`: Given answers (a data JSON or flat name → value pairs), which steps and inputs of an OmniScript's active version are shown? Show rules are evaluated three-valued - a rule over an answer you did not supply is `unknown` and named in `unknownBecause`, never guessed. - `sfi.omni_changed_since`: What changed in OmniStudio since a previous refresh - semantically, so a finding whose evidence changed can be re-checked before it goes out. Compares a refresh snapshot (`snapshot` label from `sfi snapshot list`; default: the previous refresh) with the current vault. - `sfi.omni_prefill_trace`: For every answer an OmniScript screen saves: does the saved value come BACK when the screen reopens? - `sfi.omni_save_trace`: For every answer on an OmniScript screen: is it SAVED to the database, and if not, where exactly is it dropped? Judges the ACTIVE version (an inactive version or a `Type/SubType/Language` / unique-name selector is redirected to the active one and echoed in `appliedScope`). ### Cross-org & fleet (6) - `sfi.fleet_find`: Cross-vault resolve: which of your REGISTERED orgs contains the thing you mean. Runs the typo-tolerant resolver across every vault in the multi-vault registry, read-only, and reports per-vault dispositions (exact|ambiguous|none|unavailable) + which vaults it was found in. - `sfi.fleet_drift_ranking`: Fleet ops: of every REGISTERED vault, which is most behind its live org - i.e. which to /sfi-refresh first. - `sfi.compare_vaults`: Given two registered vault aliases, returns a structured diff identifying `added` (in B only), `removed` (in A only), and `shapeModified` (in both with at least one non-volatile property differing) components. - `sfi.promotion_readiness`: Promotion readiness: a focused lens on compare_vaults(sandbox → prod). - `sfi.compare_object_across_vaults`: Given a CustomObject api-name and two registered vault aliases, returns the field-by-field diff, plus `objectLevelDrift` for CustomObject-level property differences. - `sfi.compare_profile_across_vaults`: Given a Profile name and two registered vault aliases, returns per-grant-category drift - `grantDiffs.objectPermissions`, `.fieldPermissions`, `.tabVisibilities`, `.apexClassAccesses`, `.userPermissions`. Each `GrantDiff` carries `targetId`, `side` (`'A' | 'B' | 'both'`), `valueA`, `valueB`.