Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by kvmadden

View memory

memory.view
Read-only

Lists files in the /memories directory or displays a file with line numbers, with an optional 1-indexed range to inspect specific sections.

Instructions

List a /memories directory or show a file with line numbers. Optional view_range [from, to], 1-indexed; to = -1 means end of file.

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": {
      "path": "<path>"
    },
    "name": "memory.view"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath under /memories, e.g. /memories or /memories/notes/style.md.
view_rangeNo[from, to] line range.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that files are shown with line numbers, which is useful output behavior, but says nothing about large-file handling, path escape constraints, or errors for missing paths.

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?

Two clauses, front-loaded with the two operating modes, then the range semantics. No filler, no redundancy with the title.

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 both parameters documented in schema and description, and no output schema to explain. The only real omission is what a directory listing looks like and how deep it goes, which is minor for an agent that can just call it.

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 already 100%, so the baseline is 3; the description earns above that by explaining that view_range is 1-indexed and that to = -1 means end of file—a sentinel the schema does not document. It also clarifies that path may point at a directory or a file.

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 in both modes: 'List a /memories directory or show a file with line numbers.' An agent can tell this is the read side of the memory family (create/delete/insert/rename/str_replace), though no sibling is named explicitly.

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?

Usage is implied by the two modes (directory listing vs. file read) and by the read-only nature, but the description never states when to reach for this over, say, memory.str_replace or another read path, nor any prerequisites. Nothing is misleading, but selection is left to inference.

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