{
  "schema_version": 1,
  "name": "Refund retry example — reviewed write identity",
  "tools": {
    "get_payment": {
      "effect": "read",
      "description": "Read the payment and previous refunds for an order."
    },
    "create_refund": {
      "effect": "write",
      "identity_keys": [
        "payment_id",
        "amount_cents",
        "idempotency_key"
      ],
      "entity_keys": [
        "payment_id"
      ],
      "description": "Create a partial refund. Retries of the same operation preserve its idempotency key."
    }
  }
}
