naftiko: 1.0.0-alpha2 info: label: Core API — Fees description: 'Core API — Fees. 2 operations. Lead operation: List account fees. Self-contained Naftiko capability covering one Marqeta business surface.' tags: - Marqeta - Fees created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MARQETA_API_KEY: MARQETA_API_KEY capability: consumes: - type: http namespace: core-fees baseUri: '' description: Core API — Fees business capability. Self-contained, no shared references. resources: - name: accounts-account_token-fees path: /accounts/{account_token}/fees operations: - name: getfeesbyaccount method: GET description: List account fees outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to retrieve fees. required: true - name: count in: query type: integer description: Number of account fee resources to retrieve. - name: start_index in: query type: integer description: Sort order index of the first resource in the returned array. - name: createfee method: POST description: Create fee for an account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_token in: path type: string description: Unique identifier of the credit account for which you want to create a fee. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.MARQETA_USER}}' password: '{{env.MARQETA_PASS}}' exposes: - type: rest namespace: core-fees-rest port: 8080 description: REST adapter for Core API — Fees. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{account-token}/fees name: accounts-account-token-fees description: REST surface for accounts-account_token-fees. operations: - method: GET name: getfeesbyaccount description: List account fees call: core-fees.getfeesbyaccount with: account_token: rest.account_token count: rest.count start_index: rest.start_index outputParameters: - type: object mapping: $. - method: POST name: createfee description: Create fee for an account call: core-fees.createfee with: account_token: rest.account_token body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-fees-mcp port: 9090 transport: http description: MCP adapter for Core API — Fees. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-account-fees description: List account fees hints: readOnly: true destructive: false idempotent: true call: core-fees.getfeesbyaccount with: account_token: tools.account_token count: tools.count start_index: tools.start_index outputParameters: - type: object mapping: $. - name: create-fee-account description: Create fee for an account hints: readOnly: false destructive: false idempotent: false call: core-fees.createfee with: account_token: tools.account_token body: tools.body outputParameters: - type: object mapping: $.