Salesforce · Capability

Salesforce — Search

Salesforce — Search. 8 operations. Lead operation: Salesforce Feed Elements, Post and Search. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceSearch

What You Can Do

POST
Feedelementspostandsearch — Salesforce Feed Elements, Post and Search
/v1/data/v64-0/chatter/feed-elements
GET
Parameterizedsearch — Salesforce Parameterized Search
/v1/data/v64-0/parameterizedsearch
GET
Search — Salesforce Search
/v1/data/v64-0/search
GET
Searchresultlayouts — Salesforce Search Result Layouts
/v1/data/v64-0/search/layout
GET
Searchscopeandorder — Salesforce Search Scope and Order
/v1/data/v64-0/search/scopeorder
GET
Searchsuggestedqueries — Salesforce Search Suggested Queries
/v1/data/v64-0/search/suggestsearchqueries
GET
Searchforrecordssuggestedbyautocompleteandinstantresults — Salesforce Search for Records Suggested by Autocomplete and Instant Results
/v1/data/v64-0/search/suggestions
GET
Toolingsearch — Salesforce Tooling Search
/v1/data/v64-0/tooling/search

MCP Tools

salesforce-feed-elements-post-and

Salesforce Feed Elements, Post and Search

read-only
salesforce-parameterized-search

Salesforce Parameterized Search

read-only idempotent
salesforce-search

Salesforce Search

read-only idempotent
salesforce-search-result-layouts

Salesforce Search Result Layouts

read-only idempotent
salesforce-search-scope-and-order

Salesforce Search Scope and Order

read-only idempotent
salesforce-search-suggested-queries

Salesforce Search Suggested Queries

read-only idempotent
salesforce-search-records-suggested-autocomplete

Salesforce Search for Records Suggested by Autocomplete and Instant Results

read-only idempotent
salesforce-tooling-search

Salesforce Tooling Search

read-only idempotent

Capability Spec

salesforce-search.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Search
  description: 'Salesforce — Search. 8 operations. Lead operation: Salesforce Feed Elements, Post and Search. Self-contained
    Naftiko capability covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Search
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-search
    baseUri: https://login.salesforce.com
    description: Salesforce — Search business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-chatter-feed-elements
      path: /data/v64.0/chatter/feed-elements
      operations:
      - name: feedelementspostandsearch
        method: POST
        description: Salesforce Feed Elements, Post and Search
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: feedElementType
          in: query
          type: string
          description: 'Feed elements are the top-level objects that a feed contains. The feed element type describes the
            characteristics of that feed element. One of these values:'
          required: true
        - name: subjectId
          in: query
          type: string
          required: true
        - name: text
          in: query
          type: string
          required: true
    - name: data-v64.0-parameterizedSearch
      path: /data/v64.0/parameterizedSearch
      operations:
      - name: parameterizedsearch
        method: GET
        description: Salesforce Parameterized Search
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: A search string that is properly URL-encoded
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-search
      path: /data/v64.0/search
      operations:
      - name: search
        method: GET
        description: Salesforce Search
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: A SOSL statement that is properly URL-encoded.
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-search-layout
      path: /data/v64.0/search/layout
      operations:
      - name: searchresultlayouts
        method: GET
        description: Salesforce Search Result Layouts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: Comma delimited object list
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-search-scopeOrder
      path: /data/v64.0/search/scopeOrder
      operations:
      - name: searchscopeandorder
        method: GET
        description: Salesforce Search Scope and Order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-search-suggestSearchQueries
      path: /data/v64.0/search/suggestSearchQueries
      operations:
      - name: searchsuggestedqueries
        method: GET
        description: Salesforce Search Suggested Queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          required: true
        - name: language
          in: query
          type: string
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-search-suggestions
      path: /data/v64.0/search/suggestions
      operations:
      - name: searchforrecordssuggestedbyautocompleteandinstantresults
        method: GET
        description: Salesforce Search for Records Suggested by Autocomplete and Instant Results
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          required: true
        - name: sobject
          in: query
          type: string
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    - name: data-v64.0-tooling-search
      path: /data/v64.0/tooling/search
      operations:
      - name: toolingsearch
        method: GET
        description: Salesforce Tooling Search
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: q
          in: query
          type: string
          description: SOSL search statement
          required: true
        - name: Content-Type
          in: header
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-search-rest
    port: 8080
    description: REST adapter for Salesforce — Search. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/data/v64-0/chatter/feed-elements
      name: data-v64-0-chatter-feed-elements
      description: REST surface for data-v64.0-chatter-feed-elements.
      operations:
      - method: POST
        name: feedelementspostandsearch
        description: Salesforce Feed Elements, Post and Search
        call: salesforce-search.feedelementspostandsearch
        with:
          feedElementType: rest.feedElementType
          subjectId: rest.subjectId
          text: rest.text
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/parameterizedsearch
      name: data-v64-0-parameterizedsearch
      description: REST surface for data-v64.0-parameterizedSearch.
      operations:
      - method: GET
        name: parameterizedsearch
        description: Salesforce Parameterized Search
        call: salesforce-search.parameterizedsearch
        with:
          q: rest.q
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/search
      name: data-v64-0-search
      description: REST surface for data-v64.0-search.
      operations:
      - method: GET
        name: search
        description: Salesforce Search
        call: salesforce-search.search
        with:
          q: rest.q
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/search/layout
      name: data-v64-0-search-layout
      description: REST surface for data-v64.0-search-layout.
      operations:
      - method: GET
        name: searchresultlayouts
        description: Salesforce Search Result Layouts
        call: salesforce-search.searchresultlayouts
        with:
          q: rest.q
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/search/scopeorder
      name: data-v64-0-search-scopeorder
      description: REST surface for data-v64.0-search-scopeOrder.
      operations:
      - method: GET
        name: searchscopeandorder
        description: Salesforce Search Scope and Order
        call: salesforce-search.searchscopeandorder
        with:
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/search/suggestsearchqueries
      name: data-v64-0-search-suggestsearchqueries
      description: REST surface for data-v64.0-search-suggestSearchQueries.
      operations:
      - method: GET
        name: searchsuggestedqueries
        description: Salesforce Search Suggested Queries
        call: salesforce-search.searchsuggestedqueries
        with:
          q: rest.q
          language: rest.language
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/search/suggestions
      name: data-v64-0-search-suggestions
      description: REST surface for data-v64.0-search-suggestions.
      operations:
      - method: GET
        name: searchforrecordssuggestedbyautocompleteandinstantresults
        description: Salesforce Search for Records Suggested by Autocomplete and Instant Results
        call: salesforce-search.searchforrecordssuggestedbyautocompleteandinstantresults
        with:
          q: rest.q
          sobject: rest.sobject
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/tooling/search
      name: data-v64-0-tooling-search
      description: REST surface for data-v64.0-tooling-search.
      operations:
      - method: GET
        name: toolingsearch
        description: Salesforce Tooling Search
        call: salesforce-search.toolingsearch
        with:
          q: rest.q
          Content-Type: rest.Content-Type
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-search-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Search. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-feed-elements-post-and
      description: Salesforce Feed Elements, Post and Search
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: salesforce-search.feedelementspostandsearch
      with:
        feedElementType: tools.feedElementType
        subjectId: tools.subjectId
        text: tools.text
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-parameterized-search
      description: Salesforce Parameterized Search
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.parameterizedsearch
      with:
        q: tools.q
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-search
      description: Salesforce Search
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.search
      with:
        q: tools.q
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-search-result-layouts
      description: Salesforce Search Result Layouts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.searchresultlayouts
      with:
        q: tools.q
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-search-scope-and-order
      description: Salesforce Search Scope and Order
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.searchscopeandorder
      with:
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-search-suggested-queries
      description: Salesforce Search Suggested Queries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.searchsuggestedqueries
      with:
        q: tools.q
        language: tools.language
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-search-records-suggested-autocomplete
      description: Salesforce Search for Records Suggested by Autocomplete and Instant Results
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.searchforrecordssuggestedbyautocompleteandinstantresults
      with:
        q: tools.q
        sobject: tools.sobject
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-tooling-search
      description: Salesforce Tooling Search
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-search.toolingsearch
      with:
        q: tools.q
        Content-Type: tools.Content-Type
      outputParameters:
      - type: object
        mapping: $.