naftiko: 1.0.0-alpha2 info: label: Salesforce Tooling API — Flows description: 'Salesforce Tooling API — Flows. 3 operations. Lead operation: Get a Flow definition. Self-contained Naftiko capability covering one Salesforce Automation business surface.' tags: - Salesforce Automation - Flows created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_AUTOMATION_API_KEY: SALESFORCE_AUTOMATION_API_KEY capability: consumes: - type: http namespace: salesforce-tooling-flows baseUri: https://{instance}.salesforce.com/services/data/v63.0/tooling description: Salesforce Tooling API — Flows business capability. Self-contained, no shared references. resources: - name: sobjects-Flow-flowId path: /sobjects/Flow/{flowId} operations: - name: getflow method: GET description: Get a Flow definition outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: flowId in: path type: string description: The 18-character ID of the Flow version record required: true - name: sobjects-FlowDefinition-flowDefinitionId path: /sobjects/FlowDefinition/{flowDefinitionId} operations: - name: getflowdefinition method: GET description: Get a Flow definition metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: flowDefinitionId in: path type: string description: The 18-character ID of the FlowDefinition record required: true - name: updateflowdefinition method: PATCH description: Activate or deactivate a Flow version outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: flowDefinitionId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.SALESFORCE_AUTOMATION_API_KEY}}' exposes: - type: rest namespace: salesforce-tooling-flows-rest port: 8080 description: REST adapter for Salesforce Tooling API — Flows. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/sobjects/flow/{flowid} name: sobjects-flow-flowid description: REST surface for sobjects-Flow-flowId. operations: - method: GET name: getflow description: Get a Flow definition call: salesforce-tooling-flows.getflow with: flowId: rest.flowId outputParameters: - type: object mapping: $. - path: /v1/sobjects/flowdefinition/{flowdefinitionid} name: sobjects-flowdefinition-flowdefinitionid description: REST surface for sobjects-FlowDefinition-flowDefinitionId. operations: - method: GET name: getflowdefinition description: Get a Flow definition metadata call: salesforce-tooling-flows.getflowdefinition with: flowDefinitionId: rest.flowDefinitionId outputParameters: - type: object mapping: $. - method: PATCH name: updateflowdefinition description: Activate or deactivate a Flow version call: salesforce-tooling-flows.updateflowdefinition with: flowDefinitionId: rest.flowDefinitionId body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-tooling-flows-mcp port: 9090 transport: http description: MCP adapter for Salesforce Tooling API — Flows. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-flow-definition description: Get a Flow definition hints: readOnly: true destructive: false idempotent: true call: salesforce-tooling-flows.getflow with: flowId: tools.flowId outputParameters: - type: object mapping: $. - name: get-flow-definition-metadata description: Get a Flow definition metadata hints: readOnly: true destructive: false idempotent: true call: salesforce-tooling-flows.getflowdefinition with: flowDefinitionId: tools.flowDefinitionId outputParameters: - type: object mapping: $. - name: activate-deactivate-flow-version description: Activate or deactivate a Flow version hints: readOnly: false destructive: false idempotent: true call: salesforce-tooling-flows.updateflowdefinition with: flowDefinitionId: tools.flowDefinitionId body: tools.body outputParameters: - type: object mapping: $.