Skip to main content
Glama

salesforce_get_record

Read-onlyIdempotent

Fetch a Salesforce record by object type and ID to inspect its fields; use search first when you only have a name. Requires user approval.

Instructions

Fetch a Salesforce record by object type and id. Returns {object_type, id, fields}, where fields maps every field name the object returns to its value. Use salesforce_search instead when you only have a name and need the id. Requires user approval.

Input Schema

NameRequiredDescriptionDefault
reasonYesOne sentence: why are you calling this tool right now?
record_idYesThe record's 15- or 18-character Salesforce id, e.g. '0015g00000XyZabAAB', from salesforce_search (its id field).
object_typeYesAPI name of the Salesforce object, e.g. 'Account', 'Contact', 'Opportunity' or a custom object like 'Invoice__c'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / object_type / description
      Previous value: -"e.g. Account, Contact, Opportunity"New value: +"API name of the Salesforce object, e.g. 'Account', 'Contact', 'Opportunity' or a custom object like 'Invoice__c'."
    • addedInput schema / properties / record_id / description
      Added value: +"The record's 15- or 18-character Salesforce id, e.g. '0015g00000XyZabAAB', from salesforce_search (its id field)."
  2. First observedv5.3.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds the genuinely new fact that user approval is required, plus the exact return shape. It stops short of noting rate limits or failure modes, but what it adds is real and not restated annotation material.

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?

Three short sentences, front-loaded with the action, then the alternate-tool routing, then the approval gate. No sentence is filler and nothing important is buried.

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?

With no output schema, the description carries the return-shape burden and does so explicitly ({object_type, id, fields}). Combined with the approval requirement and full schema coverage, an agent has what it needs; only error handling is unaddressed.

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 object_type, record_id, and reason are already fully documented, including the id format and that it comes from salesforce_search. The description merely restates that a record is fetched 'by object type and id' and adds no format or syntax detail beyond the schema. Baseline 3.

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 ('Fetch') and resource ('a Salesforce record by object type and id'), which cleanly separates it from salesforce_search, salesforce_run_report, and salesforce_list_reports. An agent can identify the right tool 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 Guidelines5/5

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

Explicitly names the alternative and the condition that selects it: use salesforce_search when you only have a name and need the id. It also flags the 'Requires user approval' prerequisite, so the agent knows the invocation has a gate.

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

Deploy Server

Other Tools