Skip to main content
Glama

predict_next

Analyze access patterns to predict which memories will be needed next. Provide a memory ID to receive likely follow-up memories based on a Markov chain of past sequences.

Instructions

Predict which memories might be needed next based on access patterns.

Uses learned Markov chain of access sequences to predict what memories typically follow after accessing the given memory.

Requires MEMORY_MCP_PREDICTIVE_CACHE_ENABLED=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum predictions
memory_idYesMemory ID to predict from
thresholdNoMinimum probability threshold

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses the Markov chain method and prerequisite but does not describe output format, side effects, or error states. Adequate but not detailed.

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?

Three short sentences are concise and front-loaded. First sentence states purpose, second explains method, third gives prerequisite. Efficient yet slightly flat in structure.

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?

With an output schema present, the description adequately covers purpose, method, and prerequisite. Missing output description is compensated by schema. Suitable for a prediction 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 covers 100% of parameters with descriptions, so baseline is 3. The description adds no extra meaning beyond schema; it only mentions an environment variable, which is not a parameter.

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?

Description clearly states the tool predicts next memories based on access patterns using a Markov chain. Verb 'predict' and resource 'memories' are specific, and the function is distinct from siblings like `predictive_cache_status`.

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

Usage Guidelines3/5

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

Description mentions required environment variable `MEMORY_MCP_PREDICTIVE_CACHE_ENABLED=true` but provides no explicit when-to-use or when-not-to-use guidance, nor alternatives. Usage is implied but not fully clarified.

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/michael-denyer/memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server