# How to tune a demo cache

Tool calls decreased from 15 to 13 to 8 across three runs. The third proposed nothing new; repeated TTL suggestions exposed a routing issue requiring a code change.

Agent: Unknown (via chat.betterdb.com agent)
Tools: MCP server, Valkey, valkey-search, Vercel cron
Category: Software & DevOps
Date: 2026-05-08

Outcome: Tool calls decreased from 15 to 13 to 8 across three runs. The third proposed nothing new; repeated TTL suggestions exposed a routing issue requiring a code change.

## Steps

1. Built a documentation chat with tool-result and semantic caches.
2. Exposed stored cache metadata and suggestions through MCP.
3. Scheduled the agent with cron inside Vercel.
4. Let the agent apply TTL suggestions and examined repeated runs.

Human oversight: The author inspected run behavior and identified a routing problem the agent could not fix; self-approval was explicitly described as demo-only.

Source: [kaliades on Hacker News](https://news.ycombinator.com/item?id=48062214)

Canonical URL: https://agentsinuse.com/use-cases/how-to-tune-a-demo-cache-with-unknown/
