naftiko: 1.0.0-alpha2 info: label: Microsoft Dynamics 365 Business Central API — Customers description: 'Microsoft Dynamics 365 Business Central API — Customers. 5 operations. Lead operation: Microsoft Dynamics List customers. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.' tags: - Microsoft Dynamics - Customers 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: business-central-customers baseUri: https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0 description: Microsoft Dynamics 365 Business Central API — Customers business capability. Self-contained, no shared references. resources: - name: companies({companyId})-customers path: /companies({companyId})/customers operations: - name: listcustomers method: GET description: Microsoft Dynamics List customers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createcustomer method: POST description: Microsoft Dynamics Create a customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: companies({companyId})-customers({customerId}) path: /companies({companyId})/customers({customerId}) operations: - name: getcustomer method: GET description: Microsoft Dynamics Get a customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customerId in: path type: string required: true - name: updatecustomer method: PATCH description: Microsoft Dynamics Update a customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customerId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletecustomer method: DELETE description: Microsoft Dynamics Delete a customer outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: customerId in: path type: string required: true authentication: type: bearer token: '{{env.MICROSOFT_DYNAMICS_API_KEY}}' exposes: - type: rest namespace: business-central-customers-rest port: 8080 description: REST adapter for Microsoft Dynamics 365 Business Central API — Customers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/companies-companyid/customers name: companies-companyid-customers description: REST surface for companies({companyId})-customers. operations: - method: GET name: listcustomers description: Microsoft Dynamics List customers call: business-central-customers.listcustomers outputParameters: - type: object mapping: $. - method: POST name: createcustomer description: Microsoft Dynamics Create a customer call: business-central-customers.createcustomer with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/companies-companyid/customers-customerid name: companies-companyid-customers-customerid description: REST surface for companies({companyId})-customers({customerId}). operations: - method: GET name: getcustomer description: Microsoft Dynamics Get a customer call: business-central-customers.getcustomer with: customerId: rest.customerId outputParameters: - type: object mapping: $. - method: PATCH name: updatecustomer description: Microsoft Dynamics Update a customer call: business-central-customers.updatecustomer with: customerId: rest.customerId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecustomer description: Microsoft Dynamics Delete a customer call: business-central-customers.deletecustomer with: customerId: rest.customerId outputParameters: - type: object mapping: $. - type: mcp namespace: business-central-customers-mcp port: 9090 transport: http description: MCP adapter for Microsoft Dynamics 365 Business Central API — Customers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-dynamics-list-customers description: Microsoft Dynamics List customers hints: readOnly: true destructive: false idempotent: true call: business-central-customers.listcustomers outputParameters: - type: object mapping: $. - name: microsoft-dynamics-create-customer description: Microsoft Dynamics Create a customer hints: readOnly: false destructive: false idempotent: false call: business-central-customers.createcustomer with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-dynamics-get-customer description: Microsoft Dynamics Get a customer hints: readOnly: true destructive: false idempotent: true call: business-central-customers.getcustomer with: customerId: tools.customerId outputParameters: - type: object mapping: $. - name: microsoft-dynamics-update-customer description: Microsoft Dynamics Update a customer hints: readOnly: false destructive: false idempotent: true call: business-central-customers.updatecustomer with: customerId: tools.customerId body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-dynamics-delete-customer description: Microsoft Dynamics Delete a customer hints: readOnly: false destructive: true idempotent: true call: business-central-customers.deletecustomer with: customerId: tools.customerId outputParameters: - type: object mapping: $.