Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Salesforce Custom Object

sf_create_custom_object
Idempotent

Creates a new Salesforce custom object (entity/table) using the Metadata API. Define API name, labels, and optional settings like search, reporting, and field history.

Instructions

Creates a new Salesforce Custom Object using the Metadata API. The object name must end with '__c'. Use this when a user asks to create a new object, entity, or table in Salesforce.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesSingular label shown in the UI, e.g. 'Invoice'
fullNameYesAPI name of the custom object, e.g. 'Invoice__c'
descriptionNoOptional description for the object
pluralLabelYesPlural label, e.g. 'Invoices'
enableSearchNoEnable search on this object
sharingModelNoOWD sharing model for the objectReadWrite
enableHistoryNoEnable field history tracking
enableReportsNoMake the object available for reports
nameFieldTypeNoType of Name field: 'Text' (free-form) or 'AutoNumber' (auto-increment)Text
nameFieldLabelNoLabel for the standard Name field, e.g. 'Invoice Name'Name
autoNumberFormatNoFormat for AutoNumber name field, e.g. 'INV-{0000}'. Required when nameFieldType is AutoNumber.
deploymentStatusNoDeployment status of the objectDeployed
enableActivitiesNoAllow activities (tasks/events) on this object
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate a write operation (readOnlyHint=false) and idempotent hint. The description adds that the operation uses the Metadata API and enforces the '__c' suffix rule, which are useful behavioral constraints not captured in annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the action, and no filler. The second sentence provides selection guidance and a naming constraint efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given full schema coverage and annotations that clarify safety, the description provides sufficient context for selection and invocation. It clearly states what it creates and when to use it, though it doesn't describe return values or deployment behavior—acceptable given no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 13 parameters. The description's naming rule is already embedded in the fullName pattern, so it adds no additional semantic value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specifically identifies the action ('Creates') and resource ('Salesforce Custom Object'), and distinguishes from siblings like sf_create_external_object by specifying the custom object type. The phrase 'using the Metadata API' adds technical context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger: 'Use this when a user asks to create a new object, entity, or table in Salesforce.' This clearly indicates when to select the tool, though it doesn't discuss exclusions or mention alternatives like external objects.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/semwalajay83-sem/salesforce-metadata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server