Skip to main content
Glama
cachly-dev

cachly — AI Cognitive Brain

setup_ai_memory

One-shot configuration of a three-layer AI memory system: persistent storage, tools for recall and learning, and autopilot instructions to automate memory usage across sessions.

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)
Behavior3/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It explains the three layers and the optional file write, but does not mention whether the setup is destructive, idempotent, or requires specific permissions. The side effects on the cached instance are not fully clarified.

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 structured with clear layers and a final line about return values. It is relatively concise and front-loads the main purpose. A slight verbosity in repeating 'cachly' does not degrade readability.

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?

For a setup tool with 4 parameters and no output schema, the description explains the return value (copilot-instructions.md content and .mcp.json snippet) and the optional write action. It covers the setup process well, though it lacks details on error handling or prerequisites.

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 description coverage is 100%, giving a baseline of 3. The description adds context by explaining that 'instance_id' refers to a cached instance, 'project_dir' is for optional writing, and 'embed_provider' has a noted default and local option. This adds value beyond the schema's descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it performs a one-shot setup of a 3-layer AI memory system, specifying each layer. It is specific about the verb and resource. However, it does not explicitly differentiate from sibling tools like 'autopilot' or 'brain_' tools, which slightly reduces clarity.

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 provides context that this is a setup action for a project, implying when to use it. But it lacks guidance on when not to use it or mentions of alternative tools. No exclusions or comparisons to siblings are given, so the guidelines are implied rather than explicit.

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