Tools reference
You never have to name a tool. You ask in plain words and your AI assistant picks one. This page lists them all so you can see what’s there, link to one, or check what an answer used.
The 16 tools your assistant sees first
Out of the box the server shows your assistant a short default list, so it reads less and picks faster. Every other tool is still reachable through sfi.run_analysis, and your assistant finds them with sfi.list_analyses. To show every tool directly, set SFI_TOOL_PROFILE=full (see Configuration).
- sfi.resolveWhich component do you mean?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.search_componentsFind a component by name or labelLexical (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.get_componentShow me this componentFetches 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.health_checkIs the snapshot healthy and current?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.list_analysesWhat other analyses are there?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_analysisHow do I call this analysis?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_analysisRun any analysis by nameRuns 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.live_consentTurn the live, read-only mode on or offReports, 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.find_component_usagesWhere is this used?Where is this component used: everything that points to one canonical component (`componentId` of any type).
- sfi.safe_to_delete_fieldCan I delete this field?Deletion verdict for one field, with the evidence.
- sfi.what_happens_on_saveWhat runs when a record is saved?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.find_dead_codeWhich code and automation is never used?Which Apex classes, triggers, flows and custom fields have no visible callers.
- sfi.why_cant_user_see_recordWhy can’t this user see it?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.effective_permissionsWhat does this profile and permission set mix allow?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.flow_graphShow me this flow’s steps and branchesThe 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.org_overviewGive me a tour of this orgOrg 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.
Everything else, by job
226 tools in all, 210 of them below. None of them writes to Salesforce; the annotation tools save your notes into the local snapshot folder and nowhere else.
Getting oriented 5
- sfi.capabilitiesWhat 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.route_questionAdvisory shortlist for a vague, broad or compound question. It does not answer the question.
- sfi.org_cardOrientation 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.guidanceGeneral 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_conceptsVocabulary + semantic-disambiguation tier - the 'is `Status` the same as `Stage` here?' surface.
Find & identify components 7
- sfi.list_componentsInventory: 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_graphADVANCED / 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_sourceSearch the vaulted Apex source for matches. Optional regex; returns path, line, and snippet.
- sfi.search_flow_metadataSearch the vaulted Flow metadata XML for matches. Optional regex; returns path, line, and snippet.
- sfi.lookup_recordGiven 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_anywhereUniversal-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_fieldSemantic-discovery surface - answers 'do we already have a field for X?'.
Understand what something does 14
- 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_fieldGiven 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_componentsCompare 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.explain_flowExplain 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_traceHonest PROJECTION of a Flow over a caller-supplied record state - the "what happens to THIS record" debugger.
- sfi.explain_apex_methodGiven an ApexClass or ApexTrigger canonical id (`ApexClass:{ClassName}` or `ApexTrigger:{TriggerName}`), return a structured narrative payload for the explainer.
- sfi.explain_formulaTokenize a Salesforce formula expression and return a structured narrative payload for the explainer.
- sfi.field_meaningVocabulary + semantic-disambiguation tier - the 'what does this field actually mean in our org?' surface.
- sfi.field_provenanceVocabulary + semantic-disambiguation tier - the 'is this field manually entered or automated?' surface.
- sfi.field_360A 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_errorDecode a PASTED Salesforce error string back to the org component that produced it - the support desk's first-line tool.
- sfi.explain_debug_logDecode 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_logREAD 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 23
- sfi.get_edgesRaw graph edges touching one node.
- sfi.get_subgraphBFS 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_impactAnswers 'what breaks if I change or delete this?' by walking incoming dependency edges from one component.
- sfi.find_formula_referencesList the incoming `references` edges to a field with the source nodes and edge-level metadata (e.g., formula tokenizer properties).
- sfi.find_code_usagesList the code source files (ApexClass, ApexTrigger, LightningComponentBundle, AuraDefinitionBundle, VisualforcePage, VisualforceComponent) that read, write, call, or reference a component.
- sfi.find_dependency_cyclesArchitect tool: find cyclic dependency clusters in the org's Apex.
- sfi.field_change_advisorDecision-support tool: before changing a field, see the whole blast radius in one briefing.
- sfi.what_if_change_field_valueValue-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_auditBatch 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_changedEach 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 `<deleteConstraint>` line.
- sfi.what_if_change_field_typeGiven 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_valueGiven 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_requiredGiven 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_flowGiven 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_triggerGiven an ApexTrigger canonical id (`ApexTrigger:{Name}`), enumerates the downstream impact of disabling the trigger by walking every outgoing edge.
- sfi.what_if_change_method_signatureGiven 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_profilesGiven 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_profileGiven 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_effectsGiven an `ApexClass:`, `ApexTrigger:`, OR `CustomObject:` id, surfaces what downstream automation and side effects are reachable.
- sfi.review_changeIs 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_impactManaged-package boundary surface - 'what does the {namespace} package touch, and what of MINE breaks if I uninstall/upgrade it?'.
- sfi.field_lineageTrace 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).
Structural reasoning & consequences 2
- sfi.synthesize_answerGrounding 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.interpretWHEN to reach for this: the user asks what a component structurally IMPLIES, or the CONSEQUENCES of a design.
Permissions, sharing & access 25
- sfi.permission_risk_reportRanked permission-risk report, leading with OVER-PRIVILEGE read straight from the extracted profile / permission-set metadata.
- sfi.permission_set_consolidationOffline, vault-only CONSOLIDATION candidates for permission sets, from DECLARED grants - 'which permission sets are redundant / duplicate / consolidatable'.
- sfi.who_can_runThe 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_objectReverse 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 `<site>`.
- sfi.layout_for_userWalk 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 `<SecuritySettings>`), which produces two org-level singletons.
- sfi.lightning_pagesLightning record pages (FlexiPage), both directions.
- sfi.list_view_sharing"Who is this list view shared with?" - a list view's `<sharedTo>` visibility scope (the groups/roles it shows up for in the list-view picker), now captured at extraction as `visibleTo` edges.
- sfi.app_accessGiven a `CustomApplication`, return what's IN the app and WHO can use it: `navType`, `tabs`, `canOpen`, and `defaultedBy`.
- sfi.tab_availabilityGiven 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_assignmentsThe 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_auditWho 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_auditGiven a CustomObject canonical id (`CustomObject:{ApiName}`), enumerate every Profile and PermissionSet that grants OBJECT-level access via incoming `grantedBy` edges.
- sfi.recordtype_availabilityGiven 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_grantsWhich object and field permissions does this kind of user have that nothing they can run uses?
- sfi.how_to_seeThe 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_setsList PermissionSets unassigned to users.
- sfi.crud_fls_auditCRUD/FLS enforcement audit.
- sfi.what_if_assign_permsetPermission-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_permsetPermission-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_summaryComposes 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 26
- sfi.automation_risk_reportRanked 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_coverageDeveloper 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_advisorDecision-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_collisionsField-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_advisorDecision-support tool: before a developer writes Apex, brief them on what the org's existing Apex teaches.
- sfi.order_of_executionFull 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_soqlFlag NON-SELECTIVE SOQL - a WHERE clause with a full-table-scan / timeout shape at large data volume.
- sfi.flow_bulkification_auditFlag 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_auditWhich Flows have a DML/action element with NO fault path - the flow error-handling hygiene sweep.
- sfi.apex_structureThe 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_candidatesList 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_auditGeneral-purpose code-quality entry point.
- sfi.governor_limit_risksApex-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_graphDeep 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_methodDeep 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_auditLists every ApexClass with `properties.isTest === true` with a heuristic assertion-meaningfulness score.
- sfi.method_reachabilityGiven an ApexClass / ApexTrigger, walks upstream USAGE-edge BFS and classifies the reachable upstream set against the entry-point taxonomy.
- sfi.tests_for_changeSmart 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_depthGiven an ApexClass canonical id (`ApexClass:{Name}`), walks the transitive async chain via outgoing `dispatchesAsync` edges, capped at 10 hops.
- sfi.scheduled_job_catalogReturns 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_anywhereCross-corpus hardcoded-value surface - extends `sfi.find_hardcoded_values` (Apex-only) with formula expressions (CustomField.formula), ValidationRule.errorConditionFormula, and WorkflowRule.formula.
- sfi.find_clone_patternsStructural clone-detection surface. TWO modes.
Integrations & external systems 6
- sfi.integration_mapReturn 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_subscribersDETAIL VIEW for ONE Platform Event.
- sfi.event_topologyThe 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_catalogReturns 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_catalogReturns 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_catalogAnswer "what packages are installed in this org?" from the `InstalledPackage` metadata the refresh extracts (`installedPackages/<namespace>.installedPackage-meta.xml`).
Generate documentation 10
- sfi.generate_fleet_reportThe "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_reportReturn 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_manifestGroup a set of canonical component ids into a well-formed `package.xml` snippet a human can hand to Gearset / Copado / `sf project deploy`.
- sfi.domain_clustersCluster the org's CustomObject + ApexClass + Flow nodes into SUGGESTED domain groupings using a greedy shared-edge-density algorithm.
- sfi.generate_data_dictionaryGiven 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_handbookComposes a structured markdown admin handbook covering the org's purpose, main objects, automation summary, permission structure, integration topology, and recent changes.
- sfi.generate_architecture_overviewComposes a 3-4 page architecture document chaining `sfi.org_overview` + `sfi.domain_clusters` + `sfi.integration_map`.
- sfi.generate_compliance_reportComposes 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_docORG-WIDE only - to document ONE object for a new hire use `sfi.object_360` with `format: "handbook"`.
- sfi.field_mapping_between_objectsMap 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 31
- sfi.org_pulseOrg 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_reportOffline, 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_reportOffline, 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_manifestReturn the current vault manifest (org-kb/meta/manifest.json) verbatim.
- sfi.coverage_reportReport 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_reportRetrieve 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.baseline_acknowledgeAcknowledge a heuristic finding so SAST tools suppress it across refreshes (stored in org-kb/meta/baseline.json).
- sfi.baseline_statusList suppressed finding fingerprints and per-tool counts from the vault baseline file.
- sfi.org_risk_reportDeterministic 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_componentsFind 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_reportAI-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_historyRefresh 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_snapshotsCompare 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.trendTimeline of persisted snapshot captures. Default (no `metric`): component/edge counts per label.
- sfi.pii_inventoryEnumerate 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_sinceEnumerate every vault node whose `lastModifiedDate` is at or after `since`.
- sfi.last_modifiedGiven 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_deepOptional `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_groupsList Queue and Group nodes with zero members, and say which of those zeros were actually MEASURED.
- sfi.tech_debt_scoreAggregate 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_scanOrg-wide picklist value-set integrity scan - the INVERSE of what_if_remove_picklist_value (which starts from one value).
- sfi.annotationsRead 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_annotationRecord 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 <id> <key>`); discard with `sfi.reject_annotation`.
- sfi.review_annotationsList UNCONFIRMED annotation proposals from `meta/annotations.jsonl` (AI proposals awaiting human sign-off). Optional `componentId` / `key` / `author` filters.
- sfi.confirm_annotationConfirm an AI-proposed annotation: re-writes the existing (componentId, key) value as `source: 'human', confirmed: true` - the same write as CLI `sfi annotate confirm <componentId> <key>`. Idempotent when already confirmed.
- sfi.reject_annotationReject (discard) an UNCONFIRMED annotation proposal by writing `op: 'unset'` for the (componentId, key) pair - dedicated reject verb wrapping CLI `sfi annotate <id> --key <k> --unset`. Refuses already-confirmed entries (those are curated facts; remove them via the CLI unset path).
- sfi.component_historyThe 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_attributionWho 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_ofThe component AS IT WAS at a git ref in the vault's own history: `git show <ref>:<sourcePath>` re-run through the SAME extractor the refresh uses for that type → declared properties-as-of (apiName/label/type + extractor properties).
- sfi.history_tracking_gapsCompliance audit: 'which sensitive fields have no field-history tracking enabled?'.
Live org data (opt-in) 37
- sfi.live_describeOpt-in live org: describe an sObject via Salesforce CLI. Disabled unless SFI_LIVE_PLANE_ENABLED=1 or liveEnabled=true.
- sfi.live_stale_checkOpt-in live org: "is the org AHEAD of the vault?".
- sfi.live_countOpt-in live org: count records. Pass `objectApiName` to count every row of an object, or `soql` for a custom count query.
- sfi.live_sampleOpt-in live org: run SOQL with a hard row cap (default + max 200). Read-only sample rows for runtime questions.
- sfi.live_field_populationOpt-in live org: population rate for one field (total vs null counts).
- sfi.live_group_countOpt-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_recordsOpt-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_activityOpt-in live org: records created or modified in the last N days on any object. Read-only; capped detail with true total.
- sfi.live_aggregateOpt-in live org: MIN/MAX/AVG/SUM on one numeric field for any object. Optional equality filter.
- sfi.live_duplicate_checkOpt-in live org: find duplicate values on one field (GROUP BY + HAVING COUNT > 1). Read-only; capped duplicate groups.
- sfi.live_owner_breakdownOpt-in live org: record counts by OwnerId with User/Queue names resolved. Read-only; top owners by volume.
- sfi.live_record_accessOpt-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_oracleOpt-in live org: PARITY ORACLE for the offline permission engine.
- sfi.live_scheduled_jobsOpt-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_historyOpt-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_objectOpt-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_limitsOpt-in live org: current org governor limits via REST. Read-only.
- sfi.live_data_skewOpt-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_exposureOpt-in live org: the RUNTIME security-exposure snapshot, via resilient SOQL COUNT over PermissionSet / PermissionSetAssignment.
- sfi.live_inactive_usersOpt-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_holdersOpt-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_accountsOpt-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_membersOpt-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_permsetsOpt-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_trailOpt-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_usageOpt-in live org: license / cost optimization.
- sfi.live_report_usageOpt-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_accessOpt-in live org: folder inventory and access types (Report/Dashboard/Email/Document). Read-only; flags publicly accessible folders.
- sfi.live_email_template_usageOpt-in live org: email template usage, Classic vs Lightning classification, and migration candidates. Read-only.
- sfi.live_org_healthOpt-in live org: operational health snapshot - failed/pending async jobs, paused flow interviews, governor limits at risk. Read-only.
- sfi.live_automation_firedDoes this record-triggered automation actually run in production?
- sfi.live_picklist_usageWhich picklist VALUES are actually used in production.
- sfi.live_budgetDisclose this session's live-query budget and result-cache state.
- sfi.blast_radius_liveFuse the static impact graph with LIVE record magnitude - "what breaks if I change/remove X, and how much is at stake?".
- sfi.live_drift_checkOffline↔live contradiction detection (requires the opt-in live plane).
- sfi.live_verifyConfirm 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_chainGiven 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_breakdownGiven 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_mapWalks 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_mapGiven 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_browseGiven 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_chainGiven 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_flowGiven 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_breakdownGiven 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_modelThe 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_referencesDoes 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_diffWhat 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_auditAudit 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_auditDoes "Complete" mean "saved"?
- sfi.omni_form_specThe 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_simulatorGiven 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_sinceWhat 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_traceFor every answer an OmniScript screen saves: does the saved value come BACK when the screen reopens?
- sfi.omni_save_traceFor 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_findCross-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_rankingFleet ops: of every REGISTERED vault, which is most behind its live org - i.e. which to /sfi-refresh first.
- sfi.compare_vaultsGiven 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_readinessPromotion readiness: a focused lens on compare_vaults(sandbox → prod).
- sfi.compare_object_across_vaultsGiven 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_vaultsGiven 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`.