Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

cache_warmup

Pre-warm the semantic cache with prompt-value pairs to seed FAQ responses and known-good LLM answers before real user traffic.

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?

Without annotations, the description details the internal process: computes embedding, checks similarity (>=0.98), writes to Valkey + pgvector index. It also states the auth requirement (OPENAI_API_KEY). However, it does not cover idempotency or error conditions.

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?

The description is concise (4 sentences) and well-structured: purpose first, then process, use cases, and auth requirement. No unnecessary information, making it easy for an agent to parse.

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?

Given the tool's complexity (5 parameters, no output schema), the description covers the main flow, use cases, and auth. It could be improved by mentioning potential errors or idempotency, but it is largely complete and sufficiently differentiates from sibling tools.

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?

Although the input schema already describes all parameters (100% coverage), the description adds contextual meaning—for example, explaining the role of auto_namespace ('Auto-detect the namespace per prompt using text heuristics') and the default value for namespace, which aids in correct usage.

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?

The description clearly states the tool's action ('Pre-warm the semantic cache') and resource ('a list of prompt/value pairs'), distinguishing it from sibling cache tools like cache_set by emphasizing the pre-warming process and embedding computation.

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?

The description provides explicit use cases ('seed FAQ responses, product descriptions, or known-good LLM answers before the first real user traffic') and mentions the prerequisite (OPENAI_API_KEY), but does not specify when to avoid using this tool or name alternative tools.

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