Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Create Content Security Policy (CSP) Trusted Site

sf_create_csp_setting
Idempotent

Create a Content Security Policy trusted site to let LWC and Visualforce load external resources, specifying allowed directives like script-src and img-src.

Instructions

Creates a Content Security Policy trusted site, allowing LWC components and Visualforce pages to load resources from external URLs. CSP settings are needed when your LWC uses external JavaScript libraries, fonts, images, or APIs. Specify which directives (connect-src, script-src, style-src, img-src, etc.) the URL is trusted for.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
isActiveNoWhether this setting is active
descriptionNoDescription of why this URL is trusted
endpointUrlYesTrusted URL for CSP, e.g. 'https://cdn.example.com'
cspDirectivesYesCSP directives this URL is trusted for
Behavior2/5

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

Annotations indicate readOnly=false, idempotent=true, and openWorld=true, but the description does not explain idempotency behavior (e.g., duplicate handling) or permission requirements. It only says 'Creates,' which is already implied by the annotations, adding little beyond them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences long, front-loaded with the main purpose, then adds usage context and parameter guidance. It is readable and without unnecessary filler, though it could be slightly more concise.

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 covers the what and when well, but it does not mention return values (no output schema present) or any prerequisites. For a moderate-complexity creation tool with full schema coverage, it is adequate but not fully 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 already provides 100% description coverage for all parameters. The description reiterates directive examples but does not add new semantic details beyond what the schema already contains.

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 that it creates a Content Security Policy trusted site, with a specific verb and resource. It also explains the purpose (allowing LWC/Visualforce to load external resources) and distinguishes it from other creation tools by its focus on CSP.

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 gives clear context for when to use this tool: when LWC uses external JavaScript libraries, fonts, images, or APIs. However, it does not explicitly mention alternative tools like Remote Site Settings, so it lacks an explicit exclusion.

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