check
Verify planned actions against stored corrections to identify necessary adjustments before proceeding.
Instructions
Pre-flight check: see if any corrections apply before taking an action.
Call this before doing something to see if there's a stored correction
that should change your approach.
Args:
planned_action: Describe what you're about to do.
namespace: Filter by namespace.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planned_action | Yes | ||
| namespace | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- neveronce/server.py:120-141 (handler)The 'check' tool implementation in 'neveronce/server.py'. It uses the memory instance to find corrections for a given action.
@mcp.tool() def check(planned_action: str, namespace: str = "default") -> str: """Pre-flight check: see if any corrections apply before taking an action. Call this before doing something to see if there's a stored correction that should change your approach. Args: planned_action: Describe what you're about to do. namespace: Filter by namespace. """ mem = _get_mem() matches = mem.check(planned_action, namespace=namespace) if not matches: return "No corrections apply. Proceed." lines = ["CORRECTIONS APPLY — review before proceeding:\n"] for m in matches: lines.append(f" #{m['id']}: {m['content']}") if m.get("context"): lines.append(f" Context: {m['context']}") return "\n".join(lines)