Salesforce · Capability

Salesforce — Child

Salesforce — Child. 1 operations. Lead operation: Salesforce Get Child Records. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceChild

What You Can Do

GET
Getchildrecords — Salesforce Get Child Records
/v1/data/v64-0/ui-api/records/{record-id}/child-relationships/{relationship-name}

MCP Tools

salesforce-get-child-records

Salesforce Get Child Records

read-only idempotent

Capability Spec

salesforce-child.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Child
  description: 'Salesforce — Child. 1 operations. Lead operation: Salesforce Get Child Records. Self-contained Naftiko capability
    covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Child
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-child
    baseUri: https://login.salesforce.com
    description: Salesforce — Child business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-ui-api-records-RECORD_ID-child-relationships-RELATIONSHIP_NAME
      path: /data/v64.0/ui-api/records/{RECORD_ID}/child-relationships/{RELATIONSHIP_NAME}
      operations:
      - name: getchildrecords
        method: GET
        description: Salesforce Get Child Records
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: RECORD_ID
          in: path
          type: string
          description: Record ID
          required: true
        - name: RELATIONSHIP_NAME
          in: path
          type: string
          description: API name of the relationship
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-child-rest
    port: 8080
    description: REST adapter for Salesforce — Child. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/data/v64-0/ui-api/records/{record-id}/child-relationships/{relationship-name}
      name: data-v64-0-ui-api-records-record-id-child-relationships-relationship-name
      description: REST surface for data-v64.0-ui-api-records-RECORD_ID-child-relationships-RELATIONSHIP_NAME.
      operations:
      - method: GET
        name: getchildrecords
        description: Salesforce Get Child Records
        call: salesforce-child.getchildrecords
        with:
          RECORD_ID: rest.RECORD_ID
          RELATIONSHIP_NAME: rest.RELATIONSHIP_NAME
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-child-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Child. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-get-child-records
      description: Salesforce Get Child Records
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-child.getchildrecords
      with:
        RECORD_ID: tools.RECORD_ID
        RELATIONSHIP_NAME: tools.RELATIONSHIP_NAME
      outputParameters:
      - type: object
        mapping: $.