Skip to main content
Glama
aaronsb

Salesforce MCP Server

by aaronsb

download_file

Downloads a file from Salesforce using its ContentVersion or ContentDocument ID, saving it to a secure workspace. Returns file content for text formats or the saved path for binary files.

Instructions

Download a file from Salesforce. Accepts a ContentVersionId (068...) or ContentDocumentId (069...). Saves to a sandboxed workspace directory (default: ~/.local/share/salesforce-cloud-mcp/workspace/, configurable via SF_WORKSPACE_DIR). Text files (CSV, JSON, XML, TXT, etc.) also return content inline. Binary files return the saved path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentIdYesContentVersionId (068...) or ContentDocumentId (069...). Find these by querying ContentDocumentLink: SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<recordId>'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.2
  2. Removedv0.7.2
  3. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

The description discloses the side effect of saving to a workspace directory and the differing return behavior (inline content vs. saved path). With no annotations provided, this transparency is valuable, though it does not mention potential errors 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 two concise sentences with no redundant wording or fluff. Every sentence contributes useful information.

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?

For a simple single-parameter tool, the description covers the essential aspects: what it does, where it saves, and how it returns results. It does not mention file size limits or error handling, but these are not critical for basic usage.

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 a thorough description for the single parameter (including ID types and a query example), so the tool description adds little new meaning. Baseline of 3 is appropriate given high schema description coverage.

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 action (download) and resource (a file from Salesforce), and is distinct from all sibling tools which focus on records, SOQL, or analysis. It is immediately obvious when this tool is the right choice.

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 explains the ID types accepted and provides a query example to find them, which guides the user on how to obtain the necessary input. It also notes the behavioral difference between text and binary files, but does not explicitly contrast with alternatives (although no alternative download tool exists).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.