cache_propose_invalidate
Propose a cache invalidation for review, specifying cache name, filter kind, estimated affected entries, and reasoning. Automatic warning when estimated affected exceeds 10000 entries.
Instructions
Propose a cache invalidation for review. Filter shape depends on cache type: semantic_cache requires filter_kind=valkey_search + filter_expression; agent_cache requires filter_kind in (tool|key_prefix|session) + filter_value. Warns when estimated_affected exceeds 10000.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache_name | Yes | Name of the cache to invalidate | |
| filter_kind | Yes | Discriminator: valkey_search for semantic_cache; tool|key_prefix|session for agent_cache | |
| filter_expression | No | Required when filter_kind=valkey_search; FT.SEARCH filter | |
| filter_value | No | Required when filter_kind in (tool|key_prefix|session); the matching value | |
| estimated_affected | Yes | Caller-estimated number of affected entries | |
| reasoning | Yes | Why the invalidation is being proposed (≥20 chars) | |
| instanceId | No | Connection ID; defaults to the active instance |