Skip to main content
Glama
salesforce-mcp

salesforce-mcp

by uoparaji

salesforce_rest_api

Makes generic REST calls to Salesforce endpoints not covered by other tools, using a relative path and HTTP method to query or modify org data.

Instructions

Make a generic REST API call to Salesforce. Use this for any endpoint not covered by other tools. The path is relative to the instance URL (e.g. '/services/data/v60.0/sobjects/Account/describe/layouts').

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "salesforce_rest_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional JSON request body (as a string) for POST/PATCH/PUT requests
pathYesThe REST API path relative to the instance URL (e.g. /services/data/v60.0/sobjects/)
methodYesHTTP method

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it omits the most important traits: that DELETE/PATCH/PUT mutate or destroy data, what permissions or API version constraints apply, and what the response looks like. It only clarifies how the path is resolved against the instance URL.

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?

Three short sentences, front-loaded with purpose and routing guidance before the path detail. The closing example largely repeats the schema's path example, so it is slightly redundant but not wasteful.

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 tool is an unbounded write-capable escape hatch with no annotations and no output schema, so the description should say more about return values and mutation risk. What it does cover — scope and path resolution — is adequate minimum-viable context.

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 description coverage is 100%, so all three parameters (method, path, body) are already documented with an enum and examples. The description's path example duplicates the schema's own example, adding no new semantics such as body format requirements per method.

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?

States a specific verb and resource ('Make a generic REST API call to Salesforce') and immediately carves out its role as the escape hatch for endpoints the sibling tools don't cover. An agent can distinguish it from salesforce_query, salesforce_get_record, or salesforce_describe_object without opening any schema.

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?

Explicitly names the condition that selects this tool: 'any endpoint not covered by other tools.' That is clear positive routing guidance, but it stops short of naming any concrete alternative or stating when to prefer a dedicated sibling over the raw call.

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