Skip to main content
Glama

cache_propose_invalidate

Propose cache invalidation for review. Specify cache name, filter kind (valkey_search for semantic caches; tool/key_prefix/session for agent caches), and estimated affected entries. Warns if exceeding 10,000.

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

TableJSON Schema
NameRequiredDescriptionDefault
reasoningYesWhy the invalidation is being proposed (≥20 chars)
cache_nameYesName of the cache to invalidate
instanceIdNoConnection ID; defaults to the active instance
filter_kindYesDiscriminator: valkey_search for semantic_cache; tool|key_prefix|session for agent_cache
filter_valueNoRequired when filter_kind in (tool|key_prefix|session); the matching value
filter_expressionNoRequired when filter_kind=valkey_search; FT.SEARCH filter
estimated_affectedYesCaller-estimated number of affected entries
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description adds 'Warns when estimated_affected exceeds 10000', a behavioral trait. Lacks detail on proposal lifecycle (e.g., pending status), but adequate for a non-destructive proposal tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with purpose, then conditional rules, then behavioral note. Every sentence adds value; no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers input parameter dependencies and a behavioral warning. No output schema, so return values not required. However, does not explain proposal lifecycle (e.g., pending approval) or how to retrieve proposal ID.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage 100%, but description adds significant meaning: explains which filter_kind values pair with which cache types and required parameters (filter_expression vs filter_value). Also notes warning threshold.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States clearly 'Propose a cache invalidation for review', a specific verb+resource. Distinguishes from siblings like cache_approve_proposal, cache_reject_proposal by being the creation step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly describes how filter shape depends on cache type (semantic_cache vs agent_cache), guiding parameter selection. Could mention when not to use, but provides clear context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BetterDB-inc/monitor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server