platform-metadata-grounding-get
БесплатноБез исполняемых скриптовНе проверенFind Salesforce metadata by meaning and read how an org's fields, picklists, objects, permissions, or automation are configured. Use for Catalog-backed…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Salesforce Metadata Grounding
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.
When Not to Use Grounding
- Questions about standard Salesforce features or product behavior that do not depend on this org.
- For a name you know, prefer a scoped query when a confirmed, authenticated route is available. A same-org grounding query remains useful when CLI access is unavailable; do not require CLI login to use a working grounding connection.
- A complete list, a count, or proof that something does not exist. Use scoped SOQL or
sf org list metadata. - Source to edit or deploy. Retrieve it with
platform-metadata-retrieve. - Where something is used, or what breaks if it changes. Grounding has no reference data.
- Metadata already returned in this conversation that has not changed since.
platform-metadata-discovery-get picks the right tool for each of these.
Pick the Server
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. |
When a Call Fails
| 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.
Response Shapes
| 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.
Catalog Type Names
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, `Profil
Установить platform-metadata-grounding-get в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл platform-metadata-grounding-get?
Find Salesforce metadata by meaning and read how an org's fields, picklists, objects, permissions, or automation are configured. Use for Catalog-backed discovery and configuration inspection, including known API names. Read before using search_metadata, query_metadata, describe_metadata, or Salesforce MCP grounding operations. DO NOT TRIGGER for choosing between grounding, SOQL, and the CLI (use platform-metadata-discovery-get), retrieving source (platform-metadata-retrieve), or Data Cloud DLO and DMO schema (data360-code-extension-generate).
Как установить скилл platform-metadata-grounding-get?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл platform-metadata-grounding-get запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic