Newer Version Available

This content describes an older version of this product. View Latest

Quick Start: Metadata API Context MCP Tool

The Metadata API Context MCP tool provides contextual information about Salesforce metadata types to help generate accurate Salesforce metadata files when working with the Metadata API.
Available in: Developer, sandbox, and scratch orgs that have API enabled.

For a given metadata type, this tool gives you:

  • complete field definitions
  • valid values
  • constraints
  • examples

It's 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_api_context Provides contextual information about Salesforce metadata types to help generate accurate Salesforce metadata files. This tool gives you complete field definitions, valid values, constraints, and examples for metadata types. It is a useful resource for creating valid Salesforce metadata files when you need to generate them programmatically, or want to ensure accuracy.

This MCP tool is 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.

Metadata API Context MCP Tool is 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.