Stripe · Capability

Stripe Entitlements API — Entitlements

Stripe Entitlements API — Entitlements. 6 operations. Lead operation: Stripe List Active Entitlements. Self-contained Naftiko capability covering one Stripe business surface.

Run with Naftiko StripeEntitlements

What You Can Do

GET
Getentitlementsactiveentitlements — Stripe List Active Entitlements
/v1/v1/entitlements/active-entitlements
GET
Getentitlementsactiveentitlementsid — Stripe Retrieve Active Entitlement
/v1/v1/entitlements/active-entitlements/{id}
GET
Getentitlementsfeatures — Stripe List Features
/v1/v1/entitlements/features
POST
Postentitlementsfeatures — Stripe Create Feature
/v1/v1/entitlements/features
GET
Getentitlementsfeaturesid — Stripe Retrieve Feature
/v1/v1/entitlements/features/{id}
POST
Postentitlementsfeaturesid — Stripe Update Feature
/v1/v1/entitlements/features/{id}

MCP Tools

stripe-list-active-entitlements

Stripe List Active Entitlements

read-only idempotent
stripe-retrieve-active-entitlement

Stripe Retrieve Active Entitlement

read-only idempotent
stripe-list-features

Stripe List Features

read-only idempotent
stripe-create-feature

Stripe Create Feature

stripe-retrieve-feature

Stripe Retrieve Feature

read-only idempotent
stripe-update-feature

Stripe Update Feature

Capability Spec

entitlements-entitlements.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Entitlements API — Entitlements
  description: 'Stripe Entitlements API — Entitlements. 6 operations. Lead operation: Stripe List Active Entitlements. Self-contained
    Naftiko capability covering one Stripe business surface.'
  tags:
  - Stripe
  - Entitlements
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: entitlements-entitlements
    baseUri: https://api.stripe.com
    description: Stripe Entitlements API — Entitlements business capability. Self-contained, no shared references.
    resources:
    - name: v1-entitlements-active_entitlements
      path: /v1/entitlements/active_entitlements
      operations:
      - name: getentitlementsactiveentitlements
        method: GET
        description: Stripe List Active Entitlements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: customer
          in: query
          type: string
          description: The ID of the customer.
          required: true
        - name: ending_before
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: starting_after
          in: query
          type: string
    - name: v1-entitlements-active_entitlements-id
      path: /v1/entitlements/active_entitlements/{id}
      operations:
      - name: getentitlementsactiveentitlementsid
        method: GET
        description: Stripe Retrieve Active Entitlement
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: v1-entitlements-features
      path: /v1/entitlements/features
      operations:
      - name: getentitlementsfeatures
        method: GET
        description: Stripe List Features
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ending_before
          in: query
          type: string
        - name: limit
          in: query
          type: integer
        - name: starting_after
          in: query
          type: string
      - name: postentitlementsfeatures
        method: POST
        description: Stripe Create Feature
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-entitlements-features-id
      path: /v1/entitlements/features/{id}
      operations:
      - name: getentitlementsfeaturesid
        method: GET
        description: Stripe Retrieve Feature
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: postentitlementsfeaturesid
        method: POST
        description: Stripe Update Feature
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.STRIPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: entitlements-entitlements-rest
    port: 8080
    description: REST adapter for Stripe Entitlements API — Entitlements. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v1/entitlements/active-entitlements
      name: v1-entitlements-active-entitlements
      description: REST surface for v1-entitlements-active_entitlements.
      operations:
      - method: GET
        name: getentitlementsactiveentitlements
        description: Stripe List Active Entitlements
        call: entitlements-entitlements.getentitlementsactiveentitlements
        with:
          customer: rest.customer
          ending_before: rest.ending_before
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/entitlements/active-entitlements/{id}
      name: v1-entitlements-active-entitlements-id
      description: REST surface for v1-entitlements-active_entitlements-id.
      operations:
      - method: GET
        name: getentitlementsactiveentitlementsid
        description: Stripe Retrieve Active Entitlement
        call: entitlements-entitlements.getentitlementsactiveentitlementsid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/entitlements/features
      name: v1-entitlements-features
      description: REST surface for v1-entitlements-features.
      operations:
      - method: GET
        name: getentitlementsfeatures
        description: Stripe List Features
        call: entitlements-entitlements.getentitlementsfeatures
        with:
          ending_before: rest.ending_before
          limit: rest.limit
          starting_after: rest.starting_after
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postentitlementsfeatures
        description: Stripe Create Feature
        call: entitlements-entitlements.postentitlementsfeatures
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/entitlements/features/{id}
      name: v1-entitlements-features-id
      description: REST surface for v1-entitlements-features-id.
      operations:
      - method: GET
        name: getentitlementsfeaturesid
        description: Stripe Retrieve Feature
        call: entitlements-entitlements.getentitlementsfeaturesid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postentitlementsfeaturesid
        description: Stripe Update Feature
        call: entitlements-entitlements.postentitlementsfeaturesid
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: entitlements-entitlements-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Entitlements API — Entitlements. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: stripe-list-active-entitlements
      description: Stripe List Active Entitlements
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: entitlements-entitlements.getentitlementsactiveentitlements
      with:
        customer: tools.customer
        ending_before: tools.ending_before
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-retrieve-active-entitlement
      description: Stripe Retrieve Active Entitlement
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: entitlements-entitlements.getentitlementsactiveentitlementsid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-list-features
      description: Stripe List Features
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: entitlements-entitlements.getentitlementsfeatures
      with:
        ending_before: tools.ending_before
        limit: tools.limit
        starting_after: tools.starting_after
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-create-feature
      description: Stripe Create Feature
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: entitlements-entitlements.postentitlementsfeatures
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-retrieve-feature
      description: Stripe Retrieve Feature
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: entitlements-entitlements.getentitlementsfeaturesid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: stripe-update-feature
      description: Stripe Update Feature
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: entitlements-entitlements.postentitlementsfeaturesid
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.