Skip to content

Add policy enforcement for payment and financial operations #381

Description

@L1AD

This toolkit gives agents access to ~30 Stripe tools with real financial impact:

  • create_payment_intent -- initiates real charges on cards
  • create_refund -- refunds money to customers
  • cancel_subscription -- cancels recurring billing
  • finalize_invoice -- locks invoices for payment collection
  • create_checkout_session -- generates live payment pages

An agent can issue refunds, cancel subscriptions, charge cards, and create payment links. These are irreversible financial operations with direct monetary impact.

Suggestion: Consider documenting support for PolicyLayer/Intercept, an open-source MCP proxy that enforces policies on tool calls before execution.

Example policy:

version: "1"
default: allow

tools:
  create_refund:
    rules:
      - spend_limit: $500/day
      - rate_limit: 5/hour

  create_payment_intent:
    rules:
      - action: require_approval

  cancel_subscription:
    rules:
      - action: require_approval

  finalize_invoice:
    rules:
      - action: require_approval

hide:
  - create_checkout_session

One line to set up: npx -y @policylayer/intercept init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions