Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create or Update Custom Label

sf_create_custom_label
Idempotent

Create or update Salesforce Custom Labels for internationalizable text strings, error messages, or UI labels, accessible across Apex, Visualforce, LWC, and Flows.

Instructions

Creates or updates a Salesforce Custom Label. Custom Labels are text values accessible in Apex, Visualforce, LWC, and Flows, with support for translation. Use for internationalizable text strings, error messages, or UI labels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesThe label text value
fullNameYesAPI name of the label, e.g. 'Welcome_Message'
languageNoLanguage code, e.g. 'en_US', 'fr', 'de'en_US
protectedNoProtected labels are only accessible by the package that created them
categoriesNoCategory for grouping labels
shortDescriptionNoShort description of the label's purpose
Behavior3/5

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

The description adds the upsert behavior ('Creates or updates') and notes that labels support translation, which is mildly informative. However, it doesn't disclose important behavioral details like name conflict resolution, permission requirements, or the fact that updates are based on fullName. Given the annotations already indicate idempotent write behavior, this is acceptable but not rich in additional context.

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?

The description is a compact, well-structured three sentences. It leads with the core action (create/update), then provides background on what Custom Labels are, and concludes with clear use cases. Every sentence adds value without redundancy or filler, making it easy to scan.

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?

For a relatively simple upsert tool with six parameters and full schema coverage, the description provides sufficient context to understand its purpose and typical usage. It lacks explicit mention of how updates are triggered (e.g., by fullName) or potential side effects, but the annotations cover the safety profile. Overall, it is complete enough for an agent to select and invoke the tool correctly.

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?

The input schema already provides complete descriptions for all six parameters (100% coverage), so the description adds little beyond the schema. It mentions translation support, which implicitly relates to the 'language' parameter, but doesn't elaborate on any specific parameter semantics. Thus the description does not significantly enhance understanding beyond the structured 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?

The description clearly states 'Creates or updates a Salesforce Custom Label' with a specific verb and resource. It further explains what Custom Labels are and provides concrete use cases ('internationalizable text strings, error messages, or UI labels'), distinguishing it from sibling tools like sf_create_custom_field or sf_create_custom_object.

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?

The description explicitly states when to use the tool ('Use for internationalizable text strings, error messages, or UI labels'), providing clear context for appropriate usage. However, it doesn't mention alternatives or exclusions, such as using sf_translate_custom_label for translation tasks, which would have strengthened the guidance.

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