@cachly-dev/mcp-server 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2452,15 +2452,20 @@ const TOOLS = [
2452
2452
  },
2453
2453
  {
2454
2454
  name: 'cache_delete',
2455
- description: 'Delete one or more keys from a running cache instance.',
2455
+ description: 'Permanently delete one or more keys from a running cache instance (uses Redis DEL). ' +
2456
+ 'This operation is destructive and irreversible — deleted keys cannot be recovered. ' +
2457
+ 'Deleting a non-existent key is safe and returns 0 for that key (no error). ' +
2458
+ 'Returns the count of keys that were actually deleted (existing keys only). ' +
2459
+ 'Use this to explicitly remove stale entries; prefer cache_set with a short TTL for auto-expiring data. ' +
2460
+ 'Do NOT use this to clear an entire instance — use the dashboard or delete_instance for that.',
2456
2461
  inputSchema: {
2457
2462
  type: 'object',
2458
2463
  properties: {
2459
- instance_id: { type: 'string' },
2464
+ instance_id: { type: 'string', description: 'UUID of the cache instance to delete keys from (get from list_instances)' },
2460
2465
  keys: {
2461
2466
  type: 'array',
2462
2467
  items: { type: 'string' },
2463
- description: 'One or more cache keys to delete',
2468
+ description: 'One or more cache keys to delete. Accepts exact keys only (no glob patterns — use cache_keys to list first).',
2464
2469
  },
2465
2470
  },
2466
2471
  required: ['instance_id', 'keys'],
@@ -2468,12 +2473,17 @@ const TOOLS = [
2468
2473
  },
2469
2474
  {
2470
2475
  name: 'cache_exists',
2471
- description: 'Check whether one or more keys exist in the cache. Returns a count of existing keys.',
2476
+ description: 'Check whether one or more keys exist in a running cache instance (uses Redis EXISTS). ' +
2477
+ 'Read-only — no side effects. Returns the count of keys that currently exist (integer 0 to N). ' +
2478
+ 'If none of the keys exist, returns 0. If all exist, returns the total key count passed in. ' +
2479
+ 'Duplicate keys in the input array are each counted separately (Redis behavior). ' +
2480
+ 'Use this to check presence before a cache_get to avoid null handling, or to verify a cache warm-up completed. ' +
2481
+ 'Use cache_get instead if you also need the value; use cache_ttl if you need expiry info.',
2472
2482
  inputSchema: {
2473
2483
  type: 'object',
2474
2484
  properties: {
2475
- instance_id: { type: 'string' },
2476
- keys: { type: 'array', items: { type: 'string' }, description: 'Keys to check' },
2485
+ instance_id: { type: 'string', description: 'UUID of the cache instance to check (get from list_instances)' },
2486
+ keys: { type: 'array', items: { type: 'string' }, description: 'Keys to check for existence. Accepts exact keys only (no glob patterns).' },
2477
2487
  },
2478
2488
  required: ['instance_id', 'keys'],
2479
2489
  },
@@ -3294,8 +3304,12 @@ const TOOLS = [
3294
3304
  },
3295
3305
  {
3296
3306
  name: 'global_recall',
3297
- description: 'Recall cross-project lessons stored via global_learn. ' +
3298
- 'Returns all global lessons or those matching a topic filter.',
3307
+ description: 'Read-only retrieval of cross-project lessons stored via global_learn. No side effects. ' +
3308
+ 'Returns a list of matching global lesson objects, each with topic, lesson text, severity, and tags. ' +
3309
+ 'If no topic is provided, returns all global lessons (up to 50). ' +
3310
+ 'If topic is provided, returns all lessons whose topic key contains that string (partial match). ' +
3311
+ 'Use this for lessons that apply universally across all projects (tool quirks, shell gotchas, platform behavior). ' +
3312
+ 'Use recall_best_solution instead for project-specific lessons; use team_recall for org-scoped lessons.',
3299
3313
  inputSchema: {
3300
3314
  type: 'object',
3301
3315
  properties: {