Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Custom Setting

sf_create_custom_setting
Idempotent

Create Custom Setting objects (API name ending in __c) with Hierarchy or List type to store Apex-accessible data without SOQL queries. Use for feature flags, thresholds, or configurable constants.

Instructions

Creates a Custom Setting object (ending in __c) with Hierarchy or List type. Custom Settings store data accessible via Apex without SOQL queries. Hierarchy type supports org/profile/user level overrides. Use for feature flags, thresholds, or configurable constants.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesLabel for the custom setting object
fieldsNoCustom fields to add to this setting
fullNameYesAPI name of the custom setting, e.g. 'OrgPreferences__c'
visibilityNoPublic: accessible to all Apex/VF. Protected: only accessible within the namespace.Public
descriptionNoDescription of this custom setting
settingTypeNoHierarchy: overridable at org/profile/user level. List: simple key-value list.Hierarchy
Behavior4/5

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

The description adds value beyond annotations by explaining that Custom Settings are accessible via Apex without SOQL queries and that Hierarchy type supports overrides. It aligns with annotations (readOnlyHint=false, idempotentHint=true) and does not contradict them. It could mention permissions or idempotency impacts, but the annotations already cover the safety profile.

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 concise and front-loaded with the action ('Creates a Custom Setting object'). Four sentences deliver essential context without redundancy. Every sentence adds value, covering use cases and type behavior.

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 the schema richness (100% coverage) and annotations, the description provides sufficient context for a creation tool: what it creates, when to use it, and key type behaviors. It does not explain the return value or error cases, but with no output schema, that is a minor gap. The description is fairly complete for the tool's purpose.

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 coverage is 100%, so the baseline is 3. The description does not add specific parameter-level details beyond what the schema already provides (e.g., 'ending in __c' mirrors fullName pattern, 'Hierarchy or List type' mirrors settingType enum). It adds high-level context but does not strongly enhance schema semantics.

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

Purpose4/5

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

The description clearly states it creates a Custom Setting object with Hierarchy or List type, and explains the resource ('Custom Setting object ending in __c'). It also provides context about purpose, but it does not explicitly differentiate from similar tools like sf_create_custom_metadata_type or sf_create_custom_object, though the terminology 'Custom Setting' is distinct.

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 gives clear context on when to use it: 'Use for feature flags, thresholds, or configurable constants.' It also explains the behavior of hierarchy types. However, it does not mention alternatives or when not to use this tool, so it falls short of explicit when-not 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