GitDealFlow · Schema

Rule

Artificial IntelligenceFinanceSecurityAutomationSoftware-as-a-Service

Properties

Name Type Description
id string
rule_type string The rule check to apply.
params object Rule-type-specific parameters.
action object
priority integer Higher priority rules are evaluated first. First BLOCK wins.
enabled boolean
label string Optional human label used as the reason when the rule trips.
agent_id stringnull Scope this rule to a specific agent. null = global.
View JSON Schema on GitHub

JSON Schema

sipi-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/sipi/main/json-schema/sipi-rule-schema.json",
  "title": "Rule",
  "x-generated": "2026-10-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sipi-openapi.json#/components/schemas/Rule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "rule_type": {
      "type": "string",
      "enum": [
        "per_transaction",
        "daily_total",
        "velocity",
        "merchant_block",
        "merchant_allow",
        "category_limit",
        "time_window",
        "approval_threshold"
      ],
      "description": "The rule check to apply."
    },
    "params": {
      "type": "object",
      "description": "Rule-type-specific parameters."
    },
    "action": {
      "$ref": "#/$defs/Decision"
    },
    "priority": {
      "type": "integer",
      "default": 100,
      "description": "Higher priority rules are evaluated first. First BLOCK wins."
    },
    "enabled": {
      "type": "boolean",
      "default": true
    },
    "label": {
      "type": "string",
      "description": "Optional human label used as the reason when the rule trips."
    },
    "agent_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Scope this rule to a specific agent. null = global."
    }
  },
  "$defs": {
    "Decision": {
      "type": "string",
      "enum": [
        "APPROVED",
        "BLOCKED",
        "FLAGGED"
      ],
      "description": "APPROVED = pass all rules. BLOCKED = violates a hard rule, no money moves. FLAGGED = allowed but crosses an approval threshold, routed to the human queue."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/sipi-rule"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.