Newer Version Available
Quick Start: Metadata API Context MCP Tools
The Metadata API Context MCP tools provide contextual information about Salesforce
metadata types to help generate accurate Salesforce metadata files when working with the Metadata
API.
| Available in: Professional, Enterprise, Unlimited, Developer, sandbox, and scratch orgs that have API enabled. |
For a given metadata type, these tools give you:
- complete field definitions
- valid values
- constraints
- examples
They’re a useful resource for creating valid Salesforce metadata XML files when you need to generate them programmatically, or want to ensure accuracy.
| Server Name | Tool Name | Tool Description |
|---|---|---|
| platform/salesforce-api-context | get_metadata_type_sections | Returns valid context sections available for a metadata type. |
| platform/salesforce-api-context | get_metadata_type_context | Returns metadata context for the requested metadata type sections. |
| platform/salesforce-api-context | get_metadata_type_fields | Returns field names and field-column metadata for a metadata type. |
| platform/salesforce-api-context | get_metadata_type_fields_properties | Returns field properties for the specified field. |
| platform/salesforce-api-context | search_metadata_types | Searches metadata type names for a provided string and returns a list of matching metadata types. |
These MCP tools are part of the Salesforce API Context MCP Server, which is hosted in Salesforce.
With this feature, you might make API calls to your org. API usage counts against your org’s API quota.