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.

Metadata API Context MCP Tools are a beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this beta service is at the Customer's sole discretion.

Note

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.

Table 1. MCP Details
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.