Skip to main content
Glama
cachly-dev

Cachly — AI Cognitive Brain

brain_predict

Predicts likely failures and returns the highest-confidence fixes by reading your team's shared knowledge graph. Use at session start to surface relevant past issues and solutions, reducing debugging time.

Instructions

READ-ONLY — no side effects, no writes, no external network calls. Predictive Pre-fetch Engine (PPE): given your current context, reads the CKG in your Redis instance to predict likely failures and return the highest-confidence fixes. "Pre-load" means results are returned inline — nothing is cached or persisted. Requires a valid instance_id (your Redis brain). No rate limits. Call at session start when working on a specific feature or debugging area. Set scope="org" to widen prediction across your whole organisation — surfaces cross-team risks ("failed 3× across 2 other teams") from the Org Knowledge Graph, so an incident in one team becomes a vaccine for yours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoPrediction scope (default "instance"). "instance" = this brain only (today's behaviour). "org" = cross-team Org Knowledge Graph: ranked warnings from failures that recurred in OTHER teams/repos in your organisation, with proven fixes and confidence. "org+commons" = org graph plus public syndicated lessons. Falls back to "instance" when the instance has no org.
top_kNoMax predictions to return (default: 5)
contextYesWhat you're working on, e.g. "upgrading Keycloak from 21 to 24"
instance_idYesBrain instance ID
Behavior4/5

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

With no annotations, the description fully discloses that the tool is read-only, has no side effects, no external network calls, no rate limits, and results are inline (nothing cached or persisted). It also explains scope fallback behavior. Missing is the output format or structure, but overall transparency is high.

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

Conciseness5/5

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

The description is a single, well-structured paragraph. It front-loads the safety disclaimer, then explains purpose, usage context, and scope details in a logical flow. Every sentence adds value, and there is no redundant or extraneous content.

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?

The description covers safety, usage timing, and parameter behavior well, but the absence of an output schema means the agent is left without any description of the return format (e.g., structure of predictions, confidence levels). This gap is significant for a prediction tool, making completeness only adequate.

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 valuable functional meaning to the scope parameter (e.g., 'instance = this brain only (today’s behaviour)', 'org = cross-team Org Knowledge Graph'), which goes beyond the enum values in the schema. Top_k and context are not enhanced, but the scope explanation warrants a 4.

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 defines the tool as a read-only Predictive Pre-fetch Engine that reads the CKG to predict failures and return highest-confidence fixes. It uses specific verbs and resources, and distinguishes itself from siblings by emphasizing its read-only nature and inline results without persistence.

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?

Explicit guidance is given: 'Call at session start when working on a specific feature or debugging area.' It also advises when to widen scope to org. However, it does not directly compare to alternatives like brain_predict_failures or brain_plan, leaving room for confusion among similar sibling tools.

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