Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Deploy Flow from Raw XML

sf_create_flow_from_xml
Idempotent

Deploy complex Salesforce Flows directly from raw XML using the Metadata API. Paste complete Flow XML to deploy and optionally activate, bypassing parameter-based builder limitations.

Instructions

Deploys a Salesforce Flow directly from raw XML using the Metadata API zip deploy. Use this for complex flows that are too advanced for sf_create_flow's parameter-based builder — paste the full Flow XML and it deploys it directly. Optionally activates the flow after deployment. The flowXml must be a complete Flow metadata XML document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowXmlYesComplete Flow XML content (the full metadata file, starting with <?xml version...> or <Flow xmlns...>)
activateNoActivate the flow after deployment (default: true). Set to false to deploy as inactive draft.
flowApiNameYesAPI name of the flow to deploy, e.g. 'My_Flow'
Behavior3/5

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

Annotations already mark this as idempotent and non-read-only, so the description doesn't need to restate that. It adds useful context (Metadata API zip deploy, direct deployment) but omits potential side effects like overwriting an existing flow with the same API name or how deployment status is reported. This is acceptable but not rich.

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 with no fluff. The first sentence states the core action, the second gives usage guidance, and the third highlights a critical constraint. Each sentence earns its place.

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?

For a complex deployment tool with no output schema, the description covers the basic workflow but doesn't mention what happens after deployment (e.g., synchronous vs async, how to check status, or handling failures). Given the sibling tool sf_check_deploy_status exists, a pointer would have been helpful. Adequate but with 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 schema already provides 100% coverage with detailed descriptions for all three parameters. The description reinforces that flowXml must be a complete Flow metadata document, but adds little beyond the schema. Baseline 3 is appropriate given the schema's thoroughness.

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 uses a specific verb ('Deploys') and resource ('Salesforce Flow from raw XML via Metadata API zip deploy'), clearly distinguishing it from the sibling sf_create_flow. It immediately clarifies the tool's unique value proposition.

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

Usage Guidelines5/5

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

Explicitly states when to use: 'for complex flows that are too advanced for sf_create_flow's parameter-based builder.' It also names the alternative tool and explains the workflow (paste full XML, optionally activate). This provides clear decision 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