Skip to main content
Glama

Read a memory file

memory_read
Read-only

Read one memory file by path, whole or a range of its lines: from is the first line (counted from 1) and lines how many; the answer then names the total number of lines of the file. Docs: https://only-mcp.com/docs/what-is-onlymcp#what-sits-behind-the-one-address

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_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoFirst line to return, counted from 1. Default 1.
pathYesPath of the memory file, for example project/proj-x.md
linesNoHow many lines, 1 to 2000. Default: the rest of the file, at most 2000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / from / minimum
      Added value: +1
    • changedInput schema / properties / from / type
      Previous value: -"string"New value: +"integer"
    • addedInput schema / properties / lines / maximum
      Added value: +2000
    • addedInput schema / properties / lines / minimum
      Added value: +1
    • changedInput schema / properties / lines / type
      Previous value: -"string"New value: +"integer"
  2. Changed2 schema fields changed
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "First line to return, counted from 1. Default 1.",
      +  "type": "string"
      +}
    • addedInput schema / properties / lines
      Added value: +{
      +  "description": "How many lines, 1 to 2000. Default: the rest of the file, at most 2000.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish this is a safe read (readOnlyHint=true, openWorldHint=false), so the bar is lower, and the description still adds real context: line counting starts at 1, and the response reports the file's total line count, which tells the agent how to detect truncation. It does not cover error behavior for missing paths, which keeps it at 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the single sentence is densely comma-spliced and the trailing documentation URL points to a general site page rather than invocation guidance, so it does not earn its place for tool selection. Trimming the link and splitting the clause would sharpen it.

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?

For a simple three-parameter read with no output schema, the description covers purpose, paging bounds, and the shape of the answer (total line count). Missing only failure behavior for bad paths, which is a modest gap given the read-only annotation.

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%, and the description's explanations of 'from' (first line, counted from 1) and 'lines' (how many) restate the schema rather than adding new meaning such as interactions between the two. The paging semantics are adequately conveyed but not enriched beyond structured fields.

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?

The description names a specific verb and resource ('Read one memory file by path') and bounds the scope ('whole or a range of its lines'), which separates it from list_memory, memory_search, and memory_write. It stops short of naming any sibling explicitly, so the differentiation is inferred from scope rather than stated.

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 only implied: the whole-vs-range framing suggests when the paging arguments matter, but there is no statement of when to prefer this tool over memory_search or list_memory, and no prerequisites or exclusions. An agent must infer the routing decision.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources