memory_guard_before
Checks planned actions against memory warnings, prior failures, and required success checks before execution, returning caution or block decisions to prevent risky tool use.
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": {
"action": "<action>"
},
"name": "memory_guard_before"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for the action. | |
| mode | No | Underlying capsule mode. Defaults to conservative. | |
| tool | No | Tool or command family about to be used, e.g. Bash, npm test, Edit, deploy. | |
| files | No | File paths to fingerprint in the required guard receipt. | |
| limit | No | Max recall results to consider before preflight categorization. | |
| scope | No | agent restricts memory recall to this server agent identity. shared searches the whole store. Defaults to agent. | |
| action | Yes | Natural-language description of the action the agent is about to take. | |
| strict | No | If true, high-severity memory warnings produce decision=block instead of caution. | |
| session_id | No | Session identifier for grouping the required guard receipt event. | |
| budget_chars | No | Capsule budget in characters. | |
| include_status | No | Include memory health in the response and warning calculation. Defaults to true. | |
| success_checks | No | Required result comparisons fixed before execution. A mismatch records failed; an unavailable check prevents a succeeded outcome. Pass the actual output to memory_guard_after. | |
| include_capsule | No | If false, omit the embedded Memory Capsule from the response. | |
| failure_window_hours | No | How far back to check failed tool events. Defaults to 168 hours. | |
| acknowledge_prior_failure | No | Acknowledge an exact prior failure and request one audited caution-level retry. Does not bypass unrelated Guard blocks. |