Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

autopilot

Write a configuration file that makes any AI automatically call lifecycle hooks on window open, after fixes, and before closing — ensuring context persistence across sessions.

Instructions

Generate a CLAUDE.md / copilot-instructions.md that makes any AI self-managing forever. Writes a configuration file to disk — will overwrite an existing file at the target path. No auth required beyond a valid instance_id. The generated file instructs Claude, Cursor, Copilot, Windsurf, or Gemini to automatically call session_start at window open, learn_from_attempts after every fix, and session_end before closing — without being asked. Returns the generated file content as a string and the path where it was written. Use style="minimal" for just the three hooks; style="full" for the complete ruleset with examples. One command. Every AI. Always on. Use setup_ai_memory instead if you want an interactive one-shot setup that also creates an instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance
editorNoTarget editor (default: claude)
project_nameNoYour project name (used in generated instructions)
styleNominimal = just the hooks, full = full ruleset with examples (default: full)
Behavior5/5

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

With no annotations, the description fully discloses behavioral traits: it writes to disk, overwrites existing files, requires only a valid instance_id, and returns both the generated content and file path. This offers complete transparency for a potentially destructive write operation.

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 front-loaded with the purpose and includes necessary details without fluff. While it is somewhat lengthy, every sentence adds distinct value (behavior, return values, usage alternatives). Minor redundancy in listing editor targets could be trimmed.

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 tool with 4 parameters and no output schema, the description provides adequate context: it explains return values (string content and path), overwrite behavior, and style options. It compensates for the missing output schema by describing what is returned.

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. The description adds value by explaining the effect of the 'style' parameter ('style='minimal' for just the three hooks; style='full' for the complete ruleset with examples') and provides context for editor enum values through the overall purpose.

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 purpose: generating a CLAUDE.md or copilot-instructions.md configuration file. It uses specific verbs ('generate', 'writes') and distinguishes it from sibling tool 'setup_ai_memory' by naming an alternative use case.

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 explicitly mentions when to use an alternative tool ('Use setup_ai_memory instead if you want an interactive one-shot setup that also creates an instance') and states 'No auth required beyond a valid instance_id'. It provides clear context but could be more explicit about when not to use this tool.

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