Skip to main content
Glama
salesforce-mcp

salesforce-mcp

by uoparaji

salesforce_delete_record

Delete a Salesforce record by ID to remove incorrect or obsolete data and keep your org accurate.

Instructions

Delete a Salesforce record by 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_delete_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordIdYesThe record ID to delete
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?

No annotations are supplied, so the description carries the full behavioral burden. 'Delete' implies a destructive and likely irreversible mutation, but the definition never confirms permanence, whether the record can be recovered from the recycle bin, what permissions are needed, or what happens when the ID is invalid. For a destructive operation with zero annotation coverage this is a significant gap.

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 front-loaded sentence with no filler or repetition. It is efficiently sized for a simple two-parameter tool, though the brevity is partly the source of the missing behavioral detail.

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 mechanically simple (two required params, full schema coverage, no output schema), and the description conveys the core action. However, for a destructive mutation with no annotations, it should at least flag irreversibility or required permissions, so it is adequate rather than complete.

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% – both recordId and objectName are documented in the schema itself ('The record ID to delete', 'API name of the sObject'). The description adds only the phrase 'by ID', which restates the schema rather than adding format, examples, or constraints, so the baseline 3 applies.

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 ('Delete a Salesforce record by ID'), which separates it from siblings such as salesforce_create_record, salesforce_update_record, and salesforce_get_record. It does not explicitly name those alternatives, but the verb alone makes the tool's role unambiguous.

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 guidance on when to use this versus alternatives, no prerequisite checks (e.g. verify the record exists first, or use update/archive instead), and no warning about when deletion should be avoided. The agent is left to infer all usage context.

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