Skip to main content
Glama
sunny980123

Salesforce MCP Server

by sunny980123

Salesforce SOSL Search

salesforce_search
Read-onlyIdempotent

Search across multiple Salesforce objects using SOSL queries. Find records by full-text search or specific fields across objects like Account, Contact, and Case.

Instructions

Search across multiple Salesforce objects using SOSL (Salesforce Object Search Language).

Use SOSL when you want to search across multiple object types at once or do full-text search.

Example SOSL queries:

  • FIND {Acme} IN ALL FIELDS RETURNING Account(Id, Name), Contact(Id, Name)

  • FIND {john@example.com} IN EMAIL FIELDS RETURNING Contact(Id, Name, Email)

  • FIND {urgent} IN ALL FIELDS RETURNING Case(Id, Subject, Status)

Args:

  • sosl (string): A valid SOSL query string

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: JSON: { searchRecords: [...] } Markdown: Formatted results grouped by object type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
soslYesSOSL query string (e.g., FIND {Acme} IN ALL FIELDS RETURNING Account(Id, Name))
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown
Behavior4/5

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

Annotations declare readOnlyHint, idempotentHint true and destructiveHint false, which the description does not contradict. The description adds behavioral context by explaining the SOSL search mechanism, return format (searchRecords), and that results are grouped by object type. It could mention any limitations like pagination or SOQL differences, but the additional context is valuable.

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?

Description is well-structured: starts with purpose, then usage guidance, followed by example queries, and finally parameter descriptions. Every sentence adds value; no redundancy or filler. Front-loaded with key information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description adequately covers return values (JSON with searchRecords or Markdown formatted by object type). Both parameters are fully explained with examples. The tool's complexity (SOSL search) is well-addressed for an AI agent to use correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds significant meaning beyond the schema: it explains the SOSL parameter with multiple examples, clarifies that the query must be valid SOSL, and details the response_format parameter including default value and output behavior. This greatly aids correct invocation.

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 specifies 'Search across multiple Salesforce objects using SOSL', providing a specific verb and resource. It distinguishes from sibling tools like salesforce_query (likely for single object SOQL queries) by emphasizing multi-object and full-text search capability.

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 states 'Use SOSL when you want to search across multiple object types at once or do full-text search', providing clear when-to-use guidance. It implicitly contrasts with salesforce_query for single object queries, and the example queries further clarify usage scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sunny980123/Salesforce-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server