naftiko: 1.0.0-alpha2 info: label: Workday Payroll API — Earnings description: 'Workday Payroll API — Earnings. 2 operations. Lead operation: Workday Payroll List Earning Codes. Self-contained Naftiko capability covering one Workday Payroll business surface.' tags: - Workday Payroll - Earnings created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WORKDAY_PAYROLL_API_KEY: WORKDAY_PAYROLL_API_KEY capability: consumes: - type: http namespace: payroll-earnings baseUri: https://api.workday.com/payroll/v1 description: Workday Payroll API — Earnings business capability. Self-contained, no shared references. resources: - name: earningCodes path: /earningCodes operations: - name: listearningcodes method: GET description: Workday Payroll List Earning Codes outputRawFormat: json outputParameters: - name: result type: object value: $. - name: workers-workerId-earnings path: /workers/{workerId}/earnings operations: - name: listworkerearnings method: GET description: Workday Payroll List Worker Earnings outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.WORKDAY_PAYROLL_API_KEY}}' exposes: - type: rest namespace: payroll-earnings-rest port: 8080 description: REST adapter for Workday Payroll API — Earnings. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/earningcodes name: earningcodes description: REST surface for earningCodes. operations: - method: GET name: listearningcodes description: Workday Payroll List Earning Codes call: payroll-earnings.listearningcodes outputParameters: - type: object mapping: $. - path: /v1/workers/{workerid}/earnings name: workers-workerid-earnings description: REST surface for workers-workerId-earnings. operations: - method: GET name: listworkerearnings description: Workday Payroll List Worker Earnings call: payroll-earnings.listworkerearnings outputParameters: - type: object mapping: $. - type: mcp namespace: payroll-earnings-mcp port: 9090 transport: http description: MCP adapter for Workday Payroll API — Earnings. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: workday-payroll-list-earning-codes description: Workday Payroll List Earning Codes hints: readOnly: true destructive: false idempotent: true call: payroll-earnings.listearningcodes outputParameters: - type: object mapping: $. - name: workday-payroll-list-worker-earnings description: Workday Payroll List Worker Earnings hints: readOnly: true destructive: false idempotent: true call: payroll-earnings.listworkerearnings outputParameters: - type: object mapping: $.