Skip to main content
Glama
JustParent

simple-salesforce-mcp

by JustParent

search_records

Read-onlyIdempotent

Search Salesforce across objects to locate records by name, email, phone, or other searchable fields when you don't know the object or record ID.

Instructions

Full-text search across Salesforce records (name, email, phone, and other searchable fields). Good for 'find the record for X' when you don't know the object or Id. For precise filtering use run_soql_query instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum records overall (default 20, max 200).
fieldsNoFields to return for each matched record (default: Id only). E.g. ["Id", "Name"] — note not every object has Name (Case uses CaseNumber). Requires object_types, and each field must exist on every listed object.
search_termYesText to search for (minimum 2 characters).
object_typesNoRestrict to these objects, e.g. ["Account", "Contact"]. Omit to search all searchable objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. The description adds that this is full-text search and lists common searchable fields, but it does not disclose result shape, default fields, or pagination behavior, which are relevant but not severe gaps given the read-only 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no wasted words. The core function is front-loaded, and the alternative routing is given concisely in the second sentence. Every phrase earns its place.

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?

The tool is moderate complexity with four documented parameters and helpful annotations. The description adequately covers purpose and usage context. A return-value or result-format note might help since there is no output schema, but the tool's search behavior is already clear enough for an agent to invoke it correctly.

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 the schema already documents all four parameters clearly. The description adds no parameter-level detail beyond mentioning searchable fields, which is not necessary because the schema handles parameter semantics effectively.

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 ('Full-text search across Salesforce records'), specifies the resource, and gives concrete examples of searchable fields. It also distinguishes itself from run_soql_query by noting this is for when the object or Id is unknown.

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?

The description explicitly identifies when to use this tool: 'Good for find the record for X when you don't know the object or Id.' It also names the alternative for precise filtering: 'use run_soql_query instead.' This gives an agent clear routing guidance.

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