Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

setup_ai_memory

Sets up a persistent 3-layer memory system for your project, preventing AI from forgetting past solutions. Automatically generates copilot-instructions.md to enable automatic recall before tasks and save lessons after.

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 the setup actions (configuring three layers), the return values (copilot-instructions.md content + .mcp.json snippet), and the optional side effect of writing a file to disk if project_dir is provided. However, it does not mention idempotency, error handling, or permission requirements.

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

Conciseness3/5

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

The description is a single paragraph with 4-5 sentences, covering the purpose, layers, and return values. While informative, it is somewhat verbose and could be more structured (e.g., using bullet points for layers). The key information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (3-layer setup, optional file write) and no output schema, the description covers the main behavior and return values but omits details on error scenarios, invalid parameters, or what happens on re-execution. It is adequate for a straightforward tool but not fully complete.

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

Parameters3/5

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

Schema coverage is 100%, so the baseline is 3. The description adds context about the project_dir writing behavior and embed_provider default, but does not significantly enhance understanding beyond the schema descriptions. The parameter roles are clear but not elaborated further.

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 it performs 'One-shot setup of the cachly 3-layer AI Memory system for a project.' It lists the three layers (Storage, Tools, Autopilot) and their components, distinguishing it from sibling tools that handle memory operations (e.g., learn_from_attempts, recall_best_solution) rather than setup.

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 setup via 'One-shot setup' and 'zero manual effort,' but lacks explicit guidance on when to use vs. alternatives (e.g., if already set up, use individual memory tools). No prerequisites or conditions 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