Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

setup_ai_memory

Configures a three-layer AI memory system using a cachly instance. Generates copilot instructions that make AI recall past solutions before tasks and save lessons afterwards.

Instructions

One-shot setup of the cachly 3-layer AI Memory system for a project.

Layer 1 — Storage: your cachly instance (Valkey, persistent across sessions) Layer 2 — Tools: learn_from_attempts + recall_best_solution + smart_recall (the memory API) Layer 3 — Autopilot: generates a copilot-instructions.md / .github/copilot-instructions.md that instructs any MCP-compatible AI to recall known solutions BEFORE each task and save lessons AFTER — fully automatic, zero manual effort.

Returns the copilot-instructions.md content + provider-specific .mcp.json snippet. Optionally writes copilot-instructions.md directly to the project directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cachly instance to use as the AI brain
project_dirNoAbsolute path to the project root. If provided, writes copilot-instructions.md to .github/copilot-instructions.md in that directory.
embed_providerNoEmbedding provider to use for smart_recall / semantic search. Default: openai. Use ollama for fully local/free setup.
project_descriptionNoShort description of the project (used in the generated instructions)
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behaviors: returns content, optionally writes to project directory, and uses embed provider. However, it omits error handling, prerequisites (e.g., instance validity), and side effects beyond file writing.

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

Conciseness4/5

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

The description is well-structured with layers and front-loads the main purpose. It is slightly lengthy but every sentence adds value without fluff. Could be tightened for brevity.

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 (3-layer system), schema coverage (100%), and no output schema, the description covers purpose, return value, and optional behavior. Lacks details on error handling and prerequisites, but is reasonably complete for a setup tool.

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%, providing baseline of 3. The description adds useful context like default embed provider and local setup hint, and clarifies optional writing behavior. This adds value beyond the schema definitions.

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 identifies the tool as a one-shot setup of a 3-layer AI memory system, listing each layer's components and its outcome. It distinguishes itself from sibling tools that perform individual memory operations (e.g., learn_from_attempts, smart_recall).

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

Usage Guidelines3/5

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

The description implies usage for initial project setup but provides no explicit guidance on when to use this tool versus alternatives like individual memory tools. No 'when not to use' or specific contexts are mentioned.

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