naftiko: 1.0.0-alpha2 info: label: Microsoft Dynamics 365 Business Central API — Purchase Orders description: 'Microsoft Dynamics 365 Business Central API — Purchase Orders. 2 operations. Lead operation: Microsoft Dynamics List purchase orders. Self-contained Naftiko capability covering one Microsoft Dynamics business surface.' tags: - Microsoft Dynamics - Purchase Orders 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-purchase-orders baseUri: https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0 description: Microsoft Dynamics 365 Business Central API — Purchase Orders business capability. Self-contained, no shared references. resources: - name: companies({companyId})-purchaseOrders path: /companies({companyId})/purchaseOrders operations: - name: listpurchaseorders method: GET description: Microsoft Dynamics List purchase orders outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createpurchaseorder method: POST description: Microsoft Dynamics Create a purchase order 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_DYNAMICS_API_KEY}}' exposes: - type: rest namespace: business-central-purchase-orders-rest port: 8080 description: REST adapter for Microsoft Dynamics 365 Business Central API — Purchase Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/companies-companyid/purchaseorders name: companies-companyid-purchaseorders description: REST surface for companies({companyId})-purchaseOrders. operations: - method: GET name: listpurchaseorders description: Microsoft Dynamics List purchase orders call: business-central-purchase-orders.listpurchaseorders outputParameters: - type: object mapping: $. - method: POST name: createpurchaseorder description: Microsoft Dynamics Create a purchase order call: business-central-purchase-orders.createpurchaseorder with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: business-central-purchase-orders-mcp port: 9090 transport: http description: MCP adapter for Microsoft Dynamics 365 Business Central API — Purchase Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-dynamics-list-purchase-orders description: Microsoft Dynamics List purchase orders hints: readOnly: true destructive: false idempotent: true call: business-central-purchase-orders.listpurchaseorders outputParameters: - type: object mapping: $. - name: microsoft-dynamics-create-purchase-order description: Microsoft Dynamics Create a purchase order hints: readOnly: false destructive: false idempotent: false call: business-central-purchase-orders.createpurchaseorder with: body: tools.body outputParameters: - type: object mapping: $.