Skip to main content
Glama

memory_import

Import JSONL memory data to restore notes, links, and sessions from a previous export, with duplicate handling via skip or overwrite.

Instructions

Import memory data from JSON Lines (JSONL) format. Restores notes, links, and sessions from a previous export.

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": {
      "data": "<data>"
    },
    "name": "memory_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesJSONL content to import (from a previous memory_export)
merge_strategyNoHow to handle duplicate notes: skip (default) or overwriteskip

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a write operation. It never states whether import is additive or replacing, whether existing notes can be lost, whether the operation is idempotent or reversible, or what happens on a partial/malformed JSONL payload — the duplicate-handling hint lives only in the schema's merge_strategy default.

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?

Two short sentences with no filler, and the format/scope is front-loaded before the restore detail. Nothing is wasted, though there is little content to structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a data-mutating import with zero annotations and no output schema, the description is thin: it omits side effects on existing data, error/partial-failure behavior, and any result indication. The schema fully covers the two parameters, but the behavioral gap is the bigger risk here.

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 a documented enum and default for merge_strategy, so the schema already does the explanatory work. The description adds only the provenance note ('from a previous export'), which the schema's own data description already conveys, so it does not meaningfully enrich parameter meaning.

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?

Names a specific verb and resource ('Import memory data') plus the format ('JSON Lines (JSONL)') and the content restored ('notes, links, and sessions'). The phrase 'from a previous export' implicitly pairs it with memory_export as the inverse operation, though no sibling is named outright.

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?

Implied usage is clear: this is the restore path for data produced by a previous export. However, there is no explicit when-to-use vs. when-not, no mention of how it relates to memory_migrate or memory_save, and no warning about importing into a populated store.

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