Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

global_learn

Store a cross-project lesson that applies universally. Updates existing topics to prevent duplicates. Ideal for tool preferences, workflows, and universal gotchas.

Instructions

Store a lesson that applies across ALL your projects (cross-project knowledge). Idempotent: if a lesson with the same topic already exists, it is updated in place — no duplicates are created. Returns a confirmation with the stored lesson key. No rate limits. Global lessons are stored with the prefix cachly:global:lesson: and recalled from any instance via global_recall. Use for tool preferences, personal workflows, platform quirks, and universal gotchas. Example: global_learn(topic="bash:macos-arrays", lesson="Arrays work differently on macOS bash 3.2"). Use learn_from_attempts for project-specific session lessons; use team_learn to share lessons with your team.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance (used for connection)
topicYesTopic key in format "category:keyword"
lessonYesThe lesson content
severityNoSeverity (default: minor)
tagsNoOptional tags
Behavior5/5

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

With no annotations, description carries full burden. Discloses idempotency, no duplicates, no rate limits, storage prefix, recall via global_recall, and return of confirmation with key. All behavioral traits are transparent.

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?

Dense but efficient. Front-loaded with core purpose, then idempotency, returns, storage, usage, example, and sibling references. Slightly long but every sentence contributes.

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

Completeness5/5

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

Despite 5 parameters and no output schema, description covers purpose, behavior, usage guidance, storage details, and return format. Example and sibling differentiation complete the picture.

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%, baseline 3. Description adds value via example showing topic format and usage, plus implied defaults. Does not detail each parameter but provides sufficient context beyond schema.

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?

Clearly states 'Store a lesson that applies across ALL your projects', with specific verb 'store' and resource 'lesson'. Distinguishes from siblings by naming learn_from_attempts and team_learn.

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

Usage Guidelines5/5

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

Explicitly advises use for 'tool preferences, personal workflows, platform quirks, and universal gotchas'. Directly tells when to use alternative tools: 'Use learn_from_attempts for project-specific session lessons; use team_learn to share lessons with your team.'

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