Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Custom Button or Link

sf_create_custom_button
Idempotent

Create a custom button or link on any Salesforce object. Specify placement (list, detail, or mass action), content source (URL, JavaScript, or Visualforce), and target opening behavior.

Instructions

Creates a custom button or link on a Salesforce object via the Metadata API (WebLink). Supports list buttons, detail page buttons, and mass action buttons. Content can be a URL, JavaScript, or a Visualforce page reference. Specify how the target opens (sidebar, new window, replace current page, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesDisplay label
contentYesURL, JavaScript code, or Visualforce page name
openTypeYesHow to open the button target
buttonNameYesButton API name
buttonTypeYesButton placement type
objectNameYesObject API name, e.g. 'Account'
contentSourceYesContent source type
Behavior4/5

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

Annotations already indicate this is a mutating, idempotent operation. The description adds context about the Metadata API mechanism and configurable target behaviors (sidebar, new window, etc.), which goes beyond what annotations convey, though it does not describe deployment side effects or return values.

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 three sentences long, front-loaded with the core action and resource, and each sentence adds distinct supporting detail with no repetition or filler.

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

Completeness3/5

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

The description plus the rich schema provide a good baseline, but it omits potentially important operational nuances such as whether the button must be manually added to a page layout and how deployment outcomes are reported. Given the tool's complexity and lack of an output schema, this leaves some gaps.

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 covers all 7 parameters with descriptions and enums, so the description adds little new semantic detail. It only loosely restates the meaning of contentSource and openType, aligning with the baseline expected when schema coverage is 100%.

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 states a specific verb ('Creates') and a specific resource ('custom button or link on a Salesforce object via the Metadata API (WebLink)'), and it enumerates supported button types and content sources, making it clearly distinct from sibling creation tools.

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 conveys when to use the tool by listing supported button types (list, detail, mass action) and content sources (URL, JavaScript, Visualforce), but it does not explicitly mention alternatives or situations where another tool should be preferred.

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