Skip to main content
Glama
salesforce-mcp

salesforce-mcp

by uoparaji

salesforce_get_record

Retrieve a single Salesforce record by its ID and optionally specify fields to return, enabling targeted data access for a given sObject.

Instructions

Get a single Salesforce record by its ID

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": {
      "objectName": "<objectName>",
      "recordId": "<recordId>"
    },
    "name": "salesforce_get_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional list of fields to retrieve
recordIdYesThe record ID
objectNameYesAPI name of the sObject

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does very little with it. It implies a read-only fetch but says nothing about permission requirements, what happens when the record is not found, or whether omitting the optional fields list returns all fields — meaningful gaps for a tool with zero annotation coverage.

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?

A single short sentence with no wasted words, and the core action is front-loaded. It is appropriately sized, though brevity here borders on under-specification rather than disciplined economy.

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?

For a simple single-record getter with a fully described input schema and no output schema, the essentials are present. However, an agent still lacks information about the return shape (which fields come back by default) and failure behavior, which the description could supply given no annotations exist.

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%, so all three parameters (objectName, recordId, fields) are already documented in the schema. The description only reinforces that recordId is the lookup key; it adds no format details, no naming conventions for objectName, and no guidance on when to use the fields list. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get a single Salesforce record') and the lookup key ('by its ID'), which clearly separates it from the bulk-oriented siblings like salesforce_query and the write siblings like salesforce_update_record. It stops short of naming any sibling explicitly, so it is clear but not maximally differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no reference to alternatives such as salesforce_query or salesforce_search. The only signal is the word 'single', which lets an agent infer that this is a direct ID lookup rather than a filtered query.

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