Skip to main content
Glama
semwalajay83-sem

salesforce-metadata-mcp

Retrieve Metadata

sf_retrieve_metadata
Read-onlyIdempotent

Retrieve Salesforce metadata components and view their actual file contents. Use it to read existing configuration, back up metadata, or verify deployed changes.

Instructions

Retrieves metadata components from the org and returns their actual file contents. Use this to read existing configuration before making changes, to back up metadata, or to check what is really deployed rather than what you think is deployed. Waits for the async retrieve to finish and unpacks the resulting zip, returning each file's path and source. Large files are truncated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentsNoMetadata components to retrieve
packageXmlNoRaw package.xml content for selective retrieve. If provided, components list is ignored.
metadataTypeNoSingle metadata type (alternative to components array)
componentNameNoSingle component name (used with metadataType)
Behavior4/5

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

The description adds behavioral context beyond the readOnly/idempotent annotations by explaining that it waits for the async retrieve, unpacks the zip, and truncates large files. This is valuable transparency, though it could mention error handling or permissions.

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 concise, front-loaded with the core purpose, and contains only useful information in three sentences. No wasted words.

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?

The description explains the async behavior, return format (file path and source), and truncation caveat, which is appropriate given no output schema. It could be more complete with error scenarios or limits, but overall is solid.

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?

Schema coverage is 100%, with all parameters described. The description does not need to add parameter details and adds minimal value beyond the schema, so the baseline of 3 is appropriate.

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 the tool retrieves metadata components and returns their file contents, with specific use cases like reading configuration, backing up, and verifying deployments. This distinguishes it from siblings by being a general-purpose metadata retrieval tool.

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?

Provides explicit use cases (read existing config, backup, check deployed state) and context for when to use. However, it does not explicitly state when not to use or name alternative tools, 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