Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

brain_watch

Automatically learn from every git commit by installing a background hook that sends commit details to the Cachly Brain API.

Instructions

Install an ambient git post-commit hook that automatically learns from every commit — no manual brain_from_git needed. After installation every git commit silently POSTs the commit message, SHA, and changed files to the cachly Brain API in the background. Idempotent: running brain_watch twice installs the hook only once. Uses curl (not Node/npx) so it works in any environment. The hook always exits 0 and runs asynchronously — it never blocks a commit. Returns the hook path and installation status (written/upgraded/appended/unchanged/skipped-no-git).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional cachly API key (cky_…) to embed in the hook for authentication
instance_idNoBrain instance ID to learn into
project_dirNoPath to the git repository (default: current directory ".")
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses key behaviors: installation of a hook, idempotence, use of curl, exit 0, asynchronous execution, and return values. However, it omits potential side effects like file modification (hook script), error handling, or internet connectivity requirements.

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 a single paragraph that effectively front-loads the core purpose. Each sentence adds necessary information without redundancy. It is concise but could be slightly more structured (e.g., bullet points for key traits).

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 no output schema, the description explicitly states the return value (hook path and installation status). It covers the main workflow, safety, and environment requirements. Missing details include error scenarios, prerequisites (git installed), and behavior if the directory is not a git repo, but overall it is fairly complete for an installation tool.

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 description coverage is 100%, so each parameter is already documented. The description adds minimal extra meaning beyond restating what the schema covers (e.g., api_key for authentication, instance_id for target brain). Baseline 3 is appropriate as the schema carries the primary burden.

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 installs a git post-commit hook to automatically learn from every commit, with a specific verb and resource. It explicitly distinguishes from the sibling tool 'brain_from_git' by saying 'no manual brain_from_git needed'.

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 explains when to use this tool (as a replacement for manual brain_from_git) and provides context like idempotency, compatibility (curl, any environment), and non-blocking behavior. It does not explicitly list when not to use or alternatives, but the context is sufficiently clear.

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