Finds Salesforce metadata by meaning using the org's Catalog index. Searches, queries, and describes fields, picklists, objects, permissions, and automation by label or description.
Ships in sf-skills. 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.
Use the org bound to the connected tool or explicitly selected by the user. Do not infer that connection from an unrelated CLI default, and do not require local CLI authentication before using a working MCP. When combining tools, establish that they target the same org; otherwise ask before combining results.
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
/sf-skills:platform-metadata-grounding-getfrom sf-skills
sf-skills@sf-skills-plugin is listed by ccmalcom/sf-skills-plugin — review the source before installing
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skills266 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./agentforce-architecture-analyzeDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces).2 plugins in one repository ship this exact skill · first indexed Nov 29, 2026
Other plugins' skills for the same job