naftiko: 1.0.0-alpha2 info: label: Workday Financials Workday Procurement API — Purchase Orders description: 'Workday Financials Workday Procurement API — Purchase Orders. 3 operations. Lead operation: Workday Financials List purchase orders. Self-contained Naftiko capability covering one Workday Financials business surface.' tags: - Workday Financials - Purchase Orders created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WORKDAY_FINANCIALS_API_KEY: WORKDAY_FINANCIALS_API_KEY capability: consumes: - type: http namespace: procurement-purchase-orders baseUri: https://{tenant}.workday.com/api/procurement/v38.2 description: Workday Financials Workday Procurement API — Purchase Orders business capability. Self-contained, no shared references. resources: - name: purchaseOrders path: /purchaseOrders operations: - name: listpurchaseorders method: GET description: Workday Financials List purchase orders outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter by order status - name: purchaseOrders-id path: /purchaseOrders/{id} operations: - name: getpurchaseorder method: GET description: Workday Financials Get a purchase order outputRawFormat: json outputParameters: - name: result type: object value: $. - name: purchaseOrders-id-lines path: /purchaseOrders/{id}/lines operations: - name: listpurchaseorderlines method: GET description: Workday Financials List purchase order lines outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.WORKDAY_FINANCIALS_API_KEY}}' exposes: - type: rest namespace: procurement-purchase-orders-rest port: 8080 description: REST adapter for Workday Financials Workday Procurement API — Purchase Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/purchaseorders name: purchaseorders description: REST surface for purchaseOrders. operations: - method: GET name: listpurchaseorders description: Workday Financials List purchase orders call: procurement-purchase-orders.listpurchaseorders with: status: rest.status outputParameters: - type: object mapping: $. - path: /v1/purchaseorders/{id} name: purchaseorders-id description: REST surface for purchaseOrders-id. operations: - method: GET name: getpurchaseorder description: Workday Financials Get a purchase order call: procurement-purchase-orders.getpurchaseorder outputParameters: - type: object mapping: $. - path: /v1/purchaseorders/{id}/lines name: purchaseorders-id-lines description: REST surface for purchaseOrders-id-lines. operations: - method: GET name: listpurchaseorderlines description: Workday Financials List purchase order lines call: procurement-purchase-orders.listpurchaseorderlines outputParameters: - type: object mapping: $. - type: mcp namespace: procurement-purchase-orders-mcp port: 9090 transport: http description: MCP adapter for Workday Financials Workday Procurement API — Purchase Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: workday-financials-list-purchase-orders description: Workday Financials List purchase orders hints: readOnly: true destructive: false idempotent: true call: procurement-purchase-orders.listpurchaseorders with: status: tools.status outputParameters: - type: object mapping: $. - name: workday-financials-get-purchase-order description: Workday Financials Get a purchase order hints: readOnly: true destructive: false idempotent: true call: procurement-purchase-orders.getpurchaseorder outputParameters: - type: object mapping: $. - name: workday-financials-list-purchase-order description: Workday Financials List purchase order lines hints: readOnly: true destructive: false idempotent: true call: procurement-purchase-orders.listpurchaseorderlines outputParameters: - type: object mapping: $.