Skip to main content
Glama

Get Module Memory

get_module_memory
Read-onlyIdempotent

Retrieves a project module's long-term memory file and optionally loads related modules from overview.md, helping AI coding agents access relevant context before tasks.

Instructions

Read a specific module's long-term memory file and optionally auto-load its related modules from overview.md.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "module": "<module>"
    },
    "name": "get_module_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
moduleYesModule filename, stem, or display name (e.g. 'auth', 'auth.md', or '认证与登录')
projectYesProject slug (e.g. 'example-app')
include_relatedNoWhether to also return related modules listed in overview.md (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is fully covered. The description adds that related modules are sourced from overview.md, but it does not state what happens when the module is missing or ambiguous, nor what the returned content looks like. Useful context above the annotation baseline, but not rich.

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?

A single tight sentence with the core read action front-loaded and the optional behavior second. Slight redundancy with the schema's include_related default, but nothing wasteful or padded.

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?

A simple read tool with three well-documented parameters and complete annotations, so little explanation is needed. The only remaining gap is the absence of an output schema combined with no statement of what the read returns, which is a minor omission for this complexity level.

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 coverage is 100%, including examples for module and project and the default for include_related, so the schema does the heavy lifting. The description's 'optionally auto-load its related modules from overview.md' explains the effect of include_related but adds no syntax or format detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Read a specific module's long-term memory file', with the additional scope of auto-loading related modules from overview.md. That is specific enough to distinguish it from save_memory or search_memory by implication, but no sibling is named, so differentiation is left to inference.

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?

The word 'specific module' implies use when you already know which module you want, versus search_memory or list_memory_index. However, there is no explicit when-to-use, when-not-to-use, or named alternative, so an agent must infer the routing decision from the description and sibling names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.