Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Field Dependency (Controlling/Dependent Picklist)

sf_create_field_dependency
Idempotent

Create a field dependency to control dependent picklist values based on the controlling field selection. Only show relevant options when the controlling field equals a specified value.

Instructions

Creates a field dependency between a controlling picklist and a dependent picklist on the same object. When a user selects a value in the controlling field, only the relevant dependent field values appear. Example: when Country = 'USA', State shows only US states.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectNameYesObject API name
valueSettingsYesValue dependency mappings
dependentFieldYesDependent picklist field API name
controllingFieldYesControlling picklist field API name
Behavior3/5

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

Annotations already indicate a write operation (readOnlyHint=false) and idempotency (idempotentHint=true). The description adds useful runtime behavior ('only the relevant dependent field values appear') and an example, but does not disclose potential edge cases like field validation, overwriting existing dependencies, or deployment implications. No contradiction with 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?

The description is two sentences long, front-loaded with the core action, and includes a concrete example that enhances understanding without unnecessary verbosity. Every word earns its place.

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 tool's moderate complexity and full parameter schema coverage, the description provides sufficient conceptual context through the example and the explanation of runtime behavior. It lacks some edge-case details, but the existing annotations and schema fill most gaps, making it largely complete.

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 schema provides 100% coverage of parameter descriptions, so the baseline is 3. The description reinforces the relationship between controlling and dependent fields but does not add additional details beyond what the schema already offers, such as syntax or format specifics.

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 the specific action: 'Creates a field dependency between a controlling picklist and a dependent picklist on the same object.' It uses a specific verb ('Creates') and resource ('field dependency'), and includes an illustrative example that distinguishes it from sibling tools like creating custom fields or picklist values.

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 implies usage context by specifying 'on the same object' and giving a concrete example, making it clear when this tool should be used. However, it does not explicitly mention when not to use it or name alternative tools for comparison, leaving some room for ambiguity.

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