Skip to main content
Glama
cachly-dev

cachly — AI Cognitive Brain

cache_warmup

Pre-warm semantic cache with prompt-value pairs to seed FAQ and known-good answers before user traffic, using embedding similarity check. Requires OpenAI API key.

Instructions

Pre-warm the semantic cache with a list of prompt/value pairs. For each entry: computes an embedding, checks if a similar entry already exists (similarity ≥ 0.98), and writes new entries to Valkey + pgvector index. Use this to seed FAQ responses, product descriptions, or known-good LLM answers before the first real user traffic. Requires OPENAI_API_KEY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance
entriesYesList of prompt/value pairs to pre-warm into the cache
namespaceNoDefault namespace for all entries (default: cachly:sem)
ttlNoTime-to-live in seconds for warmed entries (omit for no expiry)
auto_namespaceNoAuto-detect the namespace per prompt using text heuristics. Overrides `namespace` when no per-entry namespace is set.
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses key behaviors: computes embedding, checks similarity (>=0.98), writes to Valkey+pgvector, requires API key. Could mention overwrite/update policy, but overall good transparency.

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 concise sentences: purpose, process, use case, prerequisite. No fluff, front-loaded with key action. Excellent economy of words.

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 purpose, workflow, use case, and requirement. Lacks return value description (no output schema) and error handling details. Still, for a seeding tool with moderate complexity, fairly complete.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. However, description adds process-level context (embedding, similarity, write) that clarifies how parameters like entries and auto_namespace interact, raising value above baseline.

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?

Description clearly states 'Pre-warm the semantic cache with a list of prompt/value pairs,' uses a specific verb and resource. It distinguishes from siblings like cache_set by explaining the batch embedding and similarity check process.

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 states when to use: 'seed FAQ responses, product descriptions, or known-good LLM answers before the first real user traffic.' Mentions prerequisite OPENAI_API_KEY. Does not name alternatives but context implies single-entry tools exist.

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/cachly-dev/cachly-mcp'

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