Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Scratch Org

sf_create_scratch_org

Set up a temporary Salesforce scratch org for development and testing. Provide alias, duration, and Dev Hub to get an isolated environment.

Instructions

Creates a Salesforce scratch org using the SF CLI. Scratch orgs are temporary, configurable environments for development and testing. Requires a Dev Hub org to be authorized.

definitionFile: path to project-scratch-def.json (optional, defaults to CLI default) alias: alias for the scratch org duration: number of days before expiry (1–30) devHubAlias: Dev Hub org alias

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasNoAlias for the scratch org
durationNoScratch org duration in days (1-30)
devHubAliasNoDev Hub org alias
definitionFileNoPath to project-scratch-def.json (optional)
Behavior4/5

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

While annotations indicate this is a mutating operation (readOnlyHint false), the description adds valuable behavioral context beyond them: scratch orgs are temporary, configurable, and require an authorized Dev Hub. This discloses lifecycle and authorization needs not captured in 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 front-loaded with a clear purpose statement, followed by brief context and a compact parameter list. Every sentence earns its place—no fluff or redundancy—and the structure makes 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?

With no output schema and only four optional parameters, the description adequately covers prerequisites, purpose, and parameters. It doesn't mention what happens after creation (e.g., returned org ID) or how to use the alias later, but this is not required given the annotations and simplicity. Slightly more detail on post-creation behavior would make it complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already has 100% parameter descriptions, so the baseline is 3. The description adds an extra detail for definitionFile ('optional, defaults to CLI default'), which clarifies behavior beyond the schema. This bump merits a 4.

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 a Salesforce scratch org using the SF CLI' with a specific verb and resource. It also clarifies that scratch orgs are temporary, configurable environments for development and testing, distinguishing them from other Salesforce environment creation tools like sf_create_sandbox.

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 provides clear context on when to use this tool: for temporary development/testing environments, and it explicitly mentions a prerequisite: 'Requires a Dev Hub org to be authorized.' However, it does not name alternative tools or explicitly state when not to use it, so it falls short of a 5.

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