CAIN-42 CAIN Studio

API reference · schema

ToolRuleCondition

3 fields · used by 3 operations

Last reviewed 2026-10-02

Fields

FieldTypeMeaning
field requiredstringdotted path into the payload, e.g. amount_usd or query
op requiredstringeq neq gt gte lt lte contains not_contains matches exists
valueany or null

Smallest valid example

{
  "field": "field",
  "op": "op"
}

Used by 3 operations

POST/fabric/tool-rulesAdd a tool rule
POST/fabric/tool-rules/testWhich rule would decide this call? (no evidence, no quota)
PUT/fabric/tool-rules/{rule_id}Change a tool rule (its version increments)

JSON Schema

Show the raw definition
{
  "properties": {
    "field": {
      "type": "string",
      "title": "Field",
      "description": "dotted path into the payload, e.g. amount_usd or query"
    },
    "op": {
      "type": "string",
      "title": "Op",
      "description": "eq neq gt gte lt lte contains not_contains matches exists"
    },
    "value": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Value"
    }
  },
  "type": "object",
  "required": [
    "field",
    "op"
  ],
  "title": "ToolRuleCondition"
}

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem