naftiko: 1.0.0-alpha2 info: label: Marqeta DiVA API — Chargebacks description: 'Marqeta DiVA API — Chargebacks. 1 operations. Lead operation: Retrieve chargeback data. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Chargebacks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: diva-chargebacks baseUri: https://diva-api.marqeta.com/data/v2 description: Marqeta DiVA API — Chargebacks business capability. Self-contained, no shared references. resources: - name: views-chargebacks-time_agg path: /views/chargebacks/{time_agg} operations: - name: getchargebacks method: GET description: Retrieve chargeback data outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: diva-chargebacks-rest port: 8080 description: REST adapter for Marqeta DiVA API — Chargebacks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/views/chargebacks/{time-agg} name: views-chargebacks-time-agg description: REST surface for views-chargebacks-time_agg. operations: - method: GET name: getchargebacks description: Retrieve chargeback data call: diva-chargebacks.getchargebacks outputParameters: - type: object mapping: $. - type: mcp namespace: diva-chargebacks-mcp port: 9090 transport: http description: MCP adapter for Marqeta DiVA API — Chargebacks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: retrieve-chargeback-data description: Retrieve chargeback data hints: readOnly: true destructive: false idempotent: true call: diva-chargebacks.getchargebacks outputParameters: - type: object mapping: $.