guard
Check a monadic condition on a reference to enforce constraints before passing to downstream combinators. Returns the reference on success, error on failure.
Instructions
Check a monadic condition on a ref. Returns the ref if the guard passes, error if not.
Use to enforce constraints before passing refs to downstream combinators.
Args: ref: A ref string or JSON object. check: The guard to check — one of: "validated", "budget", "classification", "encrypted", "exists". value: Required for some checks — e.g. the type name for "validated", the classification level for "classification".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>",
"check": "<check>"
},
"name": "guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| check | Yes | ||
| value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |