API reference · schema
ToolRuleTransform
3 fields · used by 3 operations
Last reviewed 2026-10-03
Fields
| Field | Type | Meaning |
|---|---|---|
op required | string | redact | remove | set | clamp_max | clamp_min | truncate |
field required | string | dotted path into the payload, e.g. body or amount_usd |
value | any or null |
Smallest valid example
{
"op": "op",
"field": "field"
}Used by 3 operations
| POST | /fabric/tool-rules | Add a tool rule |
| POST | /fabric/tool-rules/test | Which 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": {
"op": {
"type": "string",
"title": "Op",
"description": "redact | remove | set | clamp_max | clamp_min | truncate"
},
"field": {
"type": "string",
"title": "Field",
"description": "dotted path into the payload, e.g. body or amount_usd"
},
"value": {
"anyOf": [
{},
{
"type": "null"
}
],
"title": "Value"
}
},
"type": "object",
"required": [
"op",
"field"
],
"title": "ToolRuleTransform"
}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