Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Connected App (OAuth)

sf_create_connected_app
Idempotent

Enable OAuth 2.0 authentication for external applications by creating a Salesforce Connected App. Specify callback URLs, OAuth scopes, and contact email to support web, mobile, or server-to-server integrations.

Instructions

Creates a Connected App in Salesforce to enable OAuth authentication for external applications. Connected Apps are required for any external system that wants to connect to Salesforce via OAuth 2.0. Specify callback URLs for the OAuth flow, OAuth scopes (api, web, full, offline_access, etc.), and contact email. Used for web apps, mobile apps, desktop apps, or server-to-server integrations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelYesDisplay label
scopesYesOAuth scopes to request. Use 'chatbot_api' (deploys as the metadata literal 'Chatbot', verified against a live org 2026-07-31) for any external client calling a Salesforce bot/Agentforce agent — without it, Agent API calls using this app's tokens are rejected regardless of the agent's own state.
fullNameYesConnected app API name, e.g. 'My_External_App'
startUrlNoDefault start URL after OAuth
consumerKeyNoCustom consumer key (auto-generated if not specified)
descriptionNoDescription
callbackUrlsYesOAuth callback URLs, e.g. ['https://myapp.com/oauth/callback']
contactEmailYesContact email for the app
accessTokenValidityNoAccess token validity in minutes
refreshTokenValidityNoRefresh token validity in minutes
enableClientCredentialsFlowNoSets isClientCredentialEnabled/isAdminApproved on the deployed ConnectedApp (verified accepted by Metadata API 2026-07-31). NOTE: Salesforce still requires an admin to open Setup → App Manager → Edit Policies and pick the 'Run As' user for Client Credentials Flow, and the Consumer Secret can only ever be viewed/copied from that same Setup UI — neither is exposed by any API. This flag alone does not make the flow usable. PREFER sf_create_external_client_app instead: on External Client Apps, Client Credentials Flow (including its 'Run As' user) IS fully settable via the Metadata API — only the Consumer Secret still requires a one-time Setup UI visit, for either app type.
Behavior3/5

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

Annotations already disclose that the tool is non-read-only and idempotent. The description adds no further behavioral traits such as requiring admin permissions, deployment via Metadata API, or generation of consumer keys and secrets. It does not contradict any 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 three concise sentences, front-loaded with the core purpose, and contains no unnecessary content. It is well-structured and easy to scan.

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 clearly explains the tool's purpose and typical use cases, but since there is no output schema, it does not explain what the tool returns. Important operational caveats (e.g., Client Credentials Flow needing Setup UI) exist only in parameter descriptions, leaving some ambiguity for the agent.

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 has 100% description coverage for all 11 parameters, so the description's mention of callback URLs and OAuth scopes adds little beyond the schema. It reinforces key parameters but does not provide deeper semantic meaning.

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 it creates a Connected App for OAuth authentication, using a specific verb and resource. It distinguishes this tool from siblings by explaining its role in enabling external system integrations via OAuth 2.0.

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 when-to-use context, stating that Connected Apps are required for any external system using OAuth 2.0 and listing common use cases (web, mobile, desktop, server-to-server). However, it does not explicitly mention when not to use it or point out the alternative sf_create_external_client_app.

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