naftiko: 1.0.0-alpha2 info: label: Microsoft Dynamics 365 Dataverse Web API — Opportunities description: 'Microsoft Dynamics 365 Dataverse Web API — Opportunities. 5 operations. Lead operation: Microsoft Dynamics List opportunities. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.' tags: - Microsoft Dynamics - Opportunities created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_DYNAMICS_API_KEY: MICROSOFT_DYNAMICS_API_KEY capability: consumes: - type: http namespace: dataverse-opportunities baseUri: https://{organization}.api.crm.dynamics.com/api/data/v9.2 description: Microsoft Dynamics 365 Dataverse Web API — Opportunities business capability. Self-contained, no shared references. resources: - name: opportunities path: /opportunities operations: - name: listopportunities method: GET description: Microsoft Dynamics List opportunities outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createopportunity method: POST description: Microsoft Dynamics Create an opportunity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: opportunities({opportunityid}) path: /opportunities({opportunityid}) operations: - name: getopportunity method: GET description: Microsoft Dynamics Get an opportunity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: opportunityid in: path type: string required: true - name: updateopportunity method: PATCH description: Microsoft Dynamics Update an opportunity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: opportunityid in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteopportunity method: DELETE description: Microsoft Dynamics Delete an opportunity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: opportunityid in: path type: string required: true authentication: type: bearer token: '{{env.MICROSOFT_DYNAMICS_API_KEY}}' exposes: - type: rest namespace: dataverse-opportunities-rest port: 8080 description: REST adapter for Microsoft Dynamics 365 Dataverse Web API — Opportunities. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/opportunities name: opportunities description: REST surface for opportunities. operations: - method: GET name: listopportunities description: Microsoft Dynamics List opportunities call: dataverse-opportunities.listopportunities outputParameters: - type: object mapping: $. - method: POST name: createopportunity description: Microsoft Dynamics Create an opportunity call: dataverse-opportunities.createopportunity with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/opportunities-opportunityid name: opportunities-opportunityid description: REST surface for opportunities({opportunityid}). operations: - method: GET name: getopportunity description: Microsoft Dynamics Get an opportunity call: dataverse-opportunities.getopportunity with: opportunityid: rest.opportunityid outputParameters: - type: object mapping: $. - method: PATCH name: updateopportunity description: Microsoft Dynamics Update an opportunity call: dataverse-opportunities.updateopportunity with: opportunityid: rest.opportunityid body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteopportunity description: Microsoft Dynamics Delete an opportunity call: dataverse-opportunities.deleteopportunity with: opportunityid: rest.opportunityid outputParameters: - type: object mapping: $. - type: mcp namespace: dataverse-opportunities-mcp port: 9090 transport: http description: MCP adapter for Microsoft Dynamics 365 Dataverse Web API — Opportunities. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-dynamics-list-opportunities description: Microsoft Dynamics List opportunities hints: readOnly: true destructive: false idempotent: true call: dataverse-opportunities.listopportunities outputParameters: - type: object mapping: $. - name: microsoft-dynamics-create-opportunity description: Microsoft Dynamics Create an opportunity hints: readOnly: false destructive: false idempotent: false call: dataverse-opportunities.createopportunity with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-dynamics-get-opportunity description: Microsoft Dynamics Get an opportunity hints: readOnly: true destructive: false idempotent: true call: dataverse-opportunities.getopportunity with: opportunityid: tools.opportunityid outputParameters: - type: object mapping: $. - name: microsoft-dynamics-update-opportunity description: Microsoft Dynamics Update an opportunity hints: readOnly: false destructive: false idempotent: true call: dataverse-opportunities.updateopportunity with: opportunityid: tools.opportunityid body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-dynamics-delete-opportunity description: Microsoft Dynamics Delete an opportunity hints: readOnly: false destructive: true idempotent: true call: dataverse-opportunities.deleteopportunity with: opportunityid: tools.opportunityid outputParameters: - type: object mapping: $.