naftiko: 1.0.0-alpha2 info: label: Microsoft Dynamics 365 REST API — Opportunities description: 'Microsoft Dynamics 365 REST API — Opportunities. 2 operations. Lead operation: Microsoft List opportunities. Self-contained Naftiko capability covering one Microsoft business surface.' tags: - Microsoft - Opportunities created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_API_KEY: MICROSOFT_API_KEY capability: consumes: - type: http namespace: dynamics-365-opportunities baseUri: https://{org}.api.crm.dynamics.com/api/data/v9.2 description: Microsoft Dynamics 365 REST API — Opportunities business capability. Self-contained, no shared references. resources: - name: opportunities path: /opportunities operations: - name: listopportunities method: GET description: Microsoft List opportunities outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createopportunity method: POST description: Microsoft Create an opportunity outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.MICROSOFT_API_KEY}}' exposes: - type: rest namespace: dynamics-365-opportunities-rest port: 8080 description: REST adapter for Microsoft Dynamics 365 REST 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 List opportunities call: dynamics-365-opportunities.listopportunities outputParameters: - type: object mapping: $. - method: POST name: createopportunity description: Microsoft Create an opportunity call: dynamics-365-opportunities.createopportunity with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: dynamics-365-opportunities-mcp port: 9090 transport: http description: MCP adapter for Microsoft Dynamics 365 REST API — Opportunities. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-list-opportunities description: Microsoft List opportunities hints: readOnly: true destructive: false idempotent: true call: dynamics-365-opportunities.listopportunities outputParameters: - type: object mapping: $. - name: microsoft-create-opportunity description: Microsoft Create an opportunity hints: readOnly: false destructive: false idempotent: false call: dynamics-365-opportunities.createopportunity with: body: tools.body outputParameters: - type: object mapping: $.