naftiko: 1.0.0-alpha2 info: label: Stripe Tax API — Tax description: 'Stripe Tax API — Tax. 9 operations. Lead operation: Stripe Create Tax Calculation. Self-contained Naftiko capability covering one Stripe business surface.' tags: - Stripe - Tax created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: STRIPE_API_KEY: STRIPE_API_KEY capability: consumes: - type: http namespace: tax-tax baseUri: https://api.stripe.com description: Stripe Tax API — Tax business capability. Self-contained, no shared references. resources: - name: v1-tax-calculations path: /v1/tax/calculations operations: - name: posttaxcalculations method: POST description: Stripe Create Tax Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-tax-calculations-calculation-line_items path: /v1/tax/calculations/{calculation}/line_items operations: - name: gettaxcalculationscalculationlineitems method: GET description: Stripe List Tax Calculation Line Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: calculation in: path type: string required: true - name: ending_before in: query type: string - name: limit in: query type: integer - name: starting_after in: query type: string - name: v1-tax-registrations path: /v1/tax/registrations operations: - name: gettaxregistrations method: GET description: Stripe List Tax Registrations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string - name: ending_before in: query type: string - name: limit in: query type: integer - name: starting_after in: query type: string - name: posttaxregistrations method: POST description: Stripe Create Tax Registration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-tax-settings path: /v1/tax/settings operations: - name: gettaxsettings method: GET description: Stripe Retrieve Tax Settings outputRawFormat: json outputParameters: - name: result type: object value: $. - name: posttaxsettings method: POST description: Stripe Update Tax Settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: v1-tax-transactions-create_from_calculation path: /v1/tax/transactions/create_from_calculation operations: - name: posttaxtransactionscreatefromcalculation method: POST description: Stripe Create Tax Transaction from Calculation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-tax-transactions-create_reversal path: /v1/tax/transactions/create_reversal operations: - name: posttaxtransactionscreatereversal method: POST description: Stripe Create Tax Transaction Reversal outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-tax-transactions-transaction path: /v1/tax/transactions/{transaction} operations: - name: gettaxtransactionstransaction method: GET description: Stripe Retrieve Tax Transaction outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: transaction in: path type: string required: true - name: expand in: query type: array authentication: type: bearer token: '{{env.STRIPE_API_KEY}}' exposes: - type: rest namespace: tax-tax-rest port: 8080 description: REST adapter for Stripe Tax API — Tax. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/tax/calculations name: v1-tax-calculations description: REST surface for v1-tax-calculations. operations: - method: POST name: posttaxcalculations description: Stripe Create Tax Calculation call: tax-tax.posttaxcalculations with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/tax/calculations/{calculation}/line-items name: v1-tax-calculations-calculation-line-items description: REST surface for v1-tax-calculations-calculation-line_items. operations: - method: GET name: gettaxcalculationscalculationlineitems description: Stripe List Tax Calculation Line Items call: tax-tax.gettaxcalculationscalculationlineitems with: calculation: rest.calculation ending_before: rest.ending_before limit: rest.limit starting_after: rest.starting_after outputParameters: - type: object mapping: $. - path: /v1/v1/tax/registrations name: v1-tax-registrations description: REST surface for v1-tax-registrations. operations: - method: GET name: gettaxregistrations description: Stripe List Tax Registrations call: tax-tax.gettaxregistrations with: status: rest.status ending_before: rest.ending_before limit: rest.limit starting_after: rest.starting_after outputParameters: - type: object mapping: $. - method: POST name: posttaxregistrations description: Stripe Create Tax Registration call: tax-tax.posttaxregistrations with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/tax/settings name: v1-tax-settings description: REST surface for v1-tax-settings. operations: - method: GET name: gettaxsettings description: Stripe Retrieve Tax Settings call: tax-tax.gettaxsettings outputParameters: - type: object mapping: $. - method: POST name: posttaxsettings description: Stripe Update Tax Settings call: tax-tax.posttaxsettings with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/tax/transactions/create-from-calculation name: v1-tax-transactions-create-from-calculation description: REST surface for v1-tax-transactions-create_from_calculation. operations: - method: POST name: posttaxtransactionscreatefromcalculation description: Stripe Create Tax Transaction from Calculation call: tax-tax.posttaxtransactionscreatefromcalculation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/tax/transactions/create-reversal name: v1-tax-transactions-create-reversal description: REST surface for v1-tax-transactions-create_reversal. operations: - method: POST name: posttaxtransactionscreatereversal description: Stripe Create Tax Transaction Reversal call: tax-tax.posttaxtransactionscreatereversal with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/tax/transactions/{transaction} name: v1-tax-transactions-transaction description: REST surface for v1-tax-transactions-transaction. operations: - method: GET name: gettaxtransactionstransaction description: Stripe Retrieve Tax Transaction call: tax-tax.gettaxtransactionstransaction with: transaction: rest.transaction expand: rest.expand outputParameters: - type: object mapping: $. - type: mcp namespace: tax-tax-mcp port: 9090 transport: http description: MCP adapter for Stripe Tax API — Tax. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: stripe-create-tax-calculation description: Stripe Create Tax Calculation hints: readOnly: false destructive: false idempotent: false call: tax-tax.posttaxcalculations with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-list-tax-calculation-line description: Stripe List Tax Calculation Line Items hints: readOnly: true destructive: false idempotent: true call: tax-tax.gettaxcalculationscalculationlineitems with: calculation: tools.calculation ending_before: tools.ending_before limit: tools.limit starting_after: tools.starting_after outputParameters: - type: object mapping: $. - name: stripe-list-tax-registrations description: Stripe List Tax Registrations hints: readOnly: true destructive: false idempotent: true call: tax-tax.gettaxregistrations with: status: tools.status ending_before: tools.ending_before limit: tools.limit starting_after: tools.starting_after outputParameters: - type: object mapping: $. - name: stripe-create-tax-registration description: Stripe Create Tax Registration hints: readOnly: false destructive: false idempotent: false call: tax-tax.posttaxregistrations with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-retrieve-tax-settings description: Stripe Retrieve Tax Settings hints: readOnly: true destructive: false idempotent: true call: tax-tax.gettaxsettings outputParameters: - type: object mapping: $. - name: stripe-update-tax-settings description: Stripe Update Tax Settings hints: readOnly: false destructive: false idempotent: false call: tax-tax.posttaxsettings with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-create-tax-transaction-calculation description: Stripe Create Tax Transaction from Calculation hints: readOnly: false destructive: false idempotent: false call: tax-tax.posttaxtransactionscreatefromcalculation with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-create-tax-transaction-reversal description: Stripe Create Tax Transaction Reversal hints: readOnly: false destructive: false idempotent: false call: tax-tax.posttaxtransactionscreatereversal with: body: tools.body outputParameters: - type: object mapping: $. - name: stripe-retrieve-tax-transaction description: Stripe Retrieve Tax Transaction hints: readOnly: true destructive: false idempotent: true call: tax-tax.gettaxtransactionstransaction with: transaction: tools.transaction expand: tools.expand outputParameters: - type: object mapping: $.