/sf-platform:platform-metadata-grounding-getfrom Salesforce — Platform & Apex
Searches a Salesforce org's metadata catalog by meaning to find objects, fields, flows, Apex classes, picklist values, permission sets, validation rules, record types, and sharing rules when the exact API name is unknown. Use before creating metadata or writing Apex, LWC, SOQL, or Flow logic to confirm existing names and configurations.
Ships in Salesforce — Platform & Apex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Metadata grounding searches the org's Salesforce Catalog, an index of the org's metadata with names, labels, descriptions, and configuration properties. It finds metadata by meaning, so "customer rewards status" can find a field labeled Loyalty Tier. It has three read-only operations: search, query, and describe.
Results are ranked and capped. They are never a complete list, and grounding never returns source.
sf org list metadata.platform-metadata-retrieve.platform-metadata-discovery-get picks the right tool for each of these.
Two servers reach the same catalog and return the same results. Use one server per request, never both for the same lookup.
The Salesforce MCP is shown in Setup today as the Headless360 (H360) MCP Server. On that server, searchMetadata, queryMetadata, and describeMetadata are operation ids that you pass to describe and dispatch. They are not tool names. The tools search_metadata, query_metadata, and describe_metadata exist only on the Metadata Grounding MCP.
| Order | Server | How to call |
|---|---|---|
| 1 | Metadata Grounding MCP | Call search_metadata, query_metadata, or describe_metadata with the inputs below. |
| 2 | Salesforce MCP, when the Metadata Grounding MCP is not connected or keeps failing | Call describe on the operation id searchMetadata, queryMetadata, or describeMetadata. Do not use discover, and do not describe the grounding recipe, which is too large to read. Then call the path describe returns with the same inputs. Use dispatch_readonly for searchMetadata and pass query and the required metadataType as query parameters. Use dispatch for queryMetadata and describeMetadata, which are POST calls but only read, and pass the inputs as the JSON body. Do not use other metadata search operations. |
| Neither connected | Grounding is not available. Use the name and label fallback in platform-metadata-discovery-get. |
| What happens | What to do |
|---|---|
| The error says Salesforce Catalog is not enabled, or the user lacks the Customize Application permission | Stop using grounding on both servers for the rest of the session. Use the fallback and tell the user why, once. |
| Any other error or a timeout | Retry once. If it fails again, use the next server for this request. After failures on two requests, use the next server for the rest of the session. |
| The tool or server is not present | Start with the next server. |
A missing tool, an access error, or a 404 is not proof that the metadata does not exist.
| Call | Metadata Grounding MCP | Salesforce MCP |
|---|---|---|
| Search | Wrapped as {defaultExc: "<json string>", responseCode}. Parse defaultExc to read {results, totalCount}. | Payload in the response body, not wrapped |
| Describe and query | Wrapped as {defaultExc: "<json string>", responseCode}. Parse the defaultExc string to read types, typeDetails, or records. | Payload in the response body, not wrapped |
| Error | An array of {errorCode, message} | Same array in the response body |
Handle both shapes. If the response has a defaultExc string, parse it. Otherwise read the payload directly.
Type names are case-sensitive, and some differ from Metadata API names.
| Metadata API name | Catalog type |
|---|---|
| CustomObject | SObject (subtypes CustomObject, StandardData) |
| CustomField | SObjectField (subtypes CustomField, StandardField, CustomPersonAccountField) |
| GlobalValueSet, StandardValueSet | PicklistValueSet (subtypes Global, Standard, Local) |
| FlexiPage | Flexipage |
| CustomTab | Tab |
| CustomApplication | TabSet |
| QuickAction | QuickActionDefinition |
| Queue | Group with subtype Queue |
| Role | UserRole |
Most other types use the Metadata API name, for example ApexClass, ApexTrigger, Flow, PermissionSet, PermissionSetGroup, Profile, ValidationRule, RecordType, SharingRule, FieldPermissions, PicklistValue, and CustomPermission.
Always call describe_metadata before searching. If you do not know the relevant catalog type, call it without a metadataType and read only the returned type names; the full response is about 29K characters. If you have a likely type, call describe with that metadataType to validate it and learn its properties and subtypes.
Inputs:
query: required plain-language phrase. An empty query returns ILLEGAL_QUERY_PARAMETER_VALUE.metadataType: required catalog type name returned by describe_metadata. Search does not support an unfiltered cross-type call.metadataSubTypes (Metadata Grounding MCP): array of subtype names returned by describe. Required and nonempty when the type defines subtypes; omit it for types without subtypes. Include all relevant subtypes in one call.parentIdentifier: optional, to search inside one object or permission container.limit: 1 to 100, default 50. Use 10 to 20.How to search well:
describe_metadata first, then pass a returned metadataType on every search. For broad questions, run a few typed searches on likely types, such as SObject, SObjectField, and Flow; include the relevant returned subtypes when the type defines them. Never make an unfiltered search.parentIdentifier. First search SObject for the exact object API name, or reuse a field result's parentIdentifier, then copy the identifier unchanged. Never pass the raw object API name. This finds fields related to a topic. It is not a full field list.Query returns full records with type-specific properties, such as a field's data type, required flag, length, formula, default, help text, and picklist value set.
Send exactly one of:
metadataIdentifiers: 1 to 50 identifiers, to read the records themselves.parentIdentifiers: 1 to 10 identifiers, to read their child records.Use parentIdentifiers for picklist values: search PicklistValueSet for the field, then pass the value set's identifier. Do not pass an object. That returns every field on it, which is very large (about 77KB for Contact). For a full field list, use scoped SOQL on EntityParticle.
Identifiers have three parts separated by ::: the 18-character org id, the name, and the type. Use only identifiers the tools returned. Never build, shorten, or edit one.
Is there a field for this already? Search SObjectField with the user's words and the object's parentIdentifier. Show the best matches with API name, label, and description.
How is this field configured? Search for the field, then query its identifier and read properties.
What values does this picklist have? Search PicklistValueSet for the field, then query the value set with parentIdentifiers.
Who can read or edit this field? Search FieldPermissions with the field's API name, such as Contact.Loyalty_Tier__c. Each result's parent is a profile or permission set. Query the results to read the read and edit flags. Results stop at 100, so for a complete list use scoped SOQL on FieldPermissions.
What does this validation rule enforce? Search ValidationRule, then query it for the formula, error message, and active flag.
Flexipage and QuickActionDefinition records are not children of their object. Searching with the object as parentIdentifier does not find them. Search by meaning instead.Operations this skill uses — routing and dependency reference.
| Operation | Purpose | Status | Call | Depends on |
|---|---|---|---|---|
describe-metadata | read | — | POST /metadata-grounding/schema | — |
search-metadata | read | — | GET /metadata-grounding/search | — |
query-metadata | read | — | POST /metadata-grounding/query | — |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
43 skills in this plugin
/crm-analytics-wave-generateUse to build a Wave Recipe, deploy a CRM Analytics dataset or dashboard, or author the full CRMA asset stack — apps, Wave Recipes (.wdpr), datasets, and dashboards — against a connected Salesforce org via REST and Metadata APIs, without CRM Analytics Studio or Dashboard Builder. TRIGGER when: user asks to build or create a Wave Recipe, generate a .wdpr or .wdpr-meta.xml, deploy a .wdash or .wapp, run a recipe or dataflowjob programmatically, upload CSV data via InsightsExternalData, validate a dataset schema with synthetic data, fetch dataset XMD, audit dashboard SAQL re-encoding, or find unused dataset fields. TRIGGER on keywords: Wave Recipe, CRMA, CRM Analytics, wdpr, wdash, wapp, WaveRecipe, Wave dataflow, dataflowjob, InsightsExternalData, SAQL, dataset XMD, Analytics Studio, R3 format, wave/recipes, wave/dashboards, or analytics on Salesforce objects (opportunities, leads, cases, accounts, sales). DO NOT TRIGGER for standard Salesforce reports or LWC components unrelated to CRM Analytics./design-systems-slds2-migrateMigrate Lightning Web Components from SLDS 1 to SLDS 2 by running the SLDS linter and fixing violations. Use this skill whenever users mention SLDS 2, SLDS uplift, linter violations, LWC token migration, class overrides, hardcoded CSS values that need SLDS hook replacement, or styling hook selection. Covers all styling hook categories — color, spacing, sizing, typography, borders, radius, and shadows. Also use when users mention no-hardcoded-values, no-slds-class-overrides, lwc-to-slds-hooks, no-deprecated-tokens-slds1, or ask about SLDS component migration — even if they don't explicitly say "uplift" or "migration".npx claudepluginhub reej-consulting/reej-sf-skills --plugin sf-platformOther plugins' skills for the same job