Skip to main content
Glama
cachly-dev

cachly — AI Cognitive Brain

causal_trace

Trace the causal chain from root cause to symptom for any problem description, and retrieve the solution that resolved it before.

Instructions

Root Cause Analysis through memory: given a problem description, traces the causal chain from root cause through intermediate failures to the current symptom, then surfaces the exact solution that worked before. Read-only — does not modify any stored data. Requires prior learning: brain must have lessons stored via learn_from_attempts or brain_from_git. Returns an ordered chain of concepts with confidence scores plus the matching solution; returns an empty chain with a message if no causal path is found. Example: causal_trace(problem="auth breaks after restart") → "Root: k8s:namespace-terminating → keycloak:jwks-race → Solution: PollUntilContextTimeout 3min". Use recall_best_solution for direct topic lookup, syndicate_search for community patterns, and causal_trace when you have a symptom and need the full root-cause chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instance_idYesUUID of the cache instance
problemYesDescribe the problem or error you are seeing right now
max_depthNoMax causal chain depth to trace (default: 5)
tagsNoOptional: narrow search to these tags
Behavior5/5

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

With no annotations, the description fully covers behavioral traits: declares read-only, explains prerequisites, return value structure (ordered chain with confidence scores, solution or empty chain), and includes an example. No contradictions.

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?

Description is concisely structured with front-loaded purpose, clear sections for usage, requirements, return values, and alternatives. Every sentence adds value without redundancy.

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 no output schema, the description fully explains return values (ordered chain, confidence, solution, or empty chain with message). Context signals indicate no output schema, but the description compensates completely, including an example, making it complete for agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but description adds significant meaning: clarifies 'problem', notes default for 'max_depth', explains 'tags' as optional narrowing, and provides a concrete example with syntax and output, greatly aiding agent understanding.

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 performs root cause analysis by tracing causal chains from root to symptom and surfacing solutions. It uses specific verbs ('traces causal chain', 'surfaces solution') and distinguishes from siblings like 'recall_best_solution' and 'syndicate_search'.

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 states prerequisite ('brain must have lessons stored') and provides clear when-to-use vs. alternatives: 'Use recall_best_solution for direct topic lookup... causal_trace when you have a symptom and need the full root-cause chain'.

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