Skip to main content
Glama
diaz3618

memory-bank-mcp

get_targeted_context

Retrieve a minimal context pack for a query by using the knowledge graph as an index. Reads only the smallest relevant slices of Memory Bank files, avoiding full document dumps. Ideal for targeted questions.

Instructions

Returns a budgeted, minimal "context pack" for a query by using the knowledge graph as an index. Reads only the smallest relevant slices of Memory Bank files instead of dumping full documents. Prefer this over get_context_bundle or batch_read_files for most questions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query to find relevant context
maxCharsNoHard ceiling for entire payload in characters (default: 8000)
maxFilesNoMaximum number of files to excerpt (default: 4)
graphLimitNoMaximum number of KG entity hits (default: 6)
graphDepthNoNeighborhood expansion depth (1 or 2, default: 1)
preferActiveContextNoPrioritize core Memory Bank files in pointer ranking (default: true)
Behavior4/5

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

Without annotations, the description carries the full burden. It discloses the key behavior: returns budgeted, minimal context, reads only relevant slices, and uses knowledge graph indexing. No side effects are mentioned but none are expected for a read operation.

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 three sentences, each serving a purpose: purpose, behavior, selection guideline. No redundant or wasted words.

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 the complexity of 6 parameters and no output schema, the description provides enough context about the overall approach and selection criteria. It doesn't detail the return structure, but that is implicitly understood as a context pack.

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?

All 6 parameters have descriptions in the input schema (100% coverage). The description adds overall context about minimality but doesn't add new parameter-specific semantics beyond the schema. Baseline of 3 is appropriate.

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 that the tool returns a minimal context pack using the knowledge graph as an index, reading only relevant slices. It distinguishes itself from siblings like get_context_bundle and batch_read_files by emphasizing minimal and budgeted output.

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 explicitly advises to prefer this tool over get_context_bundle or batch_read_files for most questions, providing clear guidance on when to use it. However, it doesn't mention specific cases when not to use it, which is a minor gap.

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/diaz3618/memory-bank-mcp'

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