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