naftiko: 1.0.0-alpha2 info: label: Gainsight CS Customer Goals API — Metrics description: 'Gainsight CS Customer Goals API — Metrics. 2 operations. Lead operation: Gainsight List goal metrics. Self-contained Naftiko capability covering one Gainsight business surface.' tags: - Gainsight - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GAINSIGHT_API_KEY: GAINSIGHT_API_KEY capability: consumes: - type: http namespace: cs-customer-goals-metrics baseUri: https://{domain}.gainsightcloud.com/v1 description: Gainsight CS Customer Goals API — Metrics business capability. Self-contained, no shared references. resources: - name: goals-goalId-metrics path: /goals/{goalId}/metrics operations: - name: listgoalmetrics method: GET description: Gainsight List goal metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: addgoalmetric method: POST description: Gainsight Add a goal metric outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: accessKey value: '{{env.GAINSIGHT_API_KEY}}' placement: header exposes: - type: rest namespace: cs-customer-goals-metrics-rest port: 8080 description: REST adapter for Gainsight CS Customer Goals API — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/goals/{goalid}/metrics name: goals-goalid-metrics description: REST surface for goals-goalId-metrics. operations: - method: GET name: listgoalmetrics description: Gainsight List goal metrics call: cs-customer-goals-metrics.listgoalmetrics outputParameters: - type: object mapping: $. - method: POST name: addgoalmetric description: Gainsight Add a goal metric call: cs-customer-goals-metrics.addgoalmetric with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: cs-customer-goals-metrics-mcp port: 9090 transport: http description: MCP adapter for Gainsight CS Customer Goals API — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: gainsight-list-goal-metrics description: Gainsight List goal metrics hints: readOnly: true destructive: false idempotent: true call: cs-customer-goals-metrics.listgoalmetrics outputParameters: - type: object mapping: $. - name: gainsight-add-goal-metric description: Gainsight Add a goal metric hints: readOnly: false destructive: false idempotent: false call: cs-customer-goals-metrics.addgoalmetric with: body: tools.body outputParameters: - type: object mapping: $.