import_jsonl

Import a Claude Code / OpenCode / Codex JSONL session log. Parses user messages, applies heuristic category detection, and creates memories. Use this to backfill memory from past sessions.

Server mcp-Agentmemory obidel/agentmemory
Category Write
Risk class Medium
Parameters 00 required

What import_jsonl does on mcp-Agentmemory

AI agents use import_jsonl to create or update resources in mcp-Agentmemory — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your mcp-Agentmemory environment.

Why import_jsonl needs a policy

This tool takes external session log files and writes new memory entries into the system. While it doesn't delete data (so not Destructive) or execute arbitrary code (so not Execute), it does persistently create and store data in the memory layer.

From the tool's definition Tool description states it 'creates memories' from imported JSONL data, which is a write operation that modifies the memory database. The verb 'creates' and the action of 'backfill memory' indicate data creation/insertion rather than retrieval or deletion.

Questions about import_jsonl

What does the import_jsonl tool do? +

Import a Claude Code / OpenCode / Codex JSONL session log. Parses user messages, applies heuristic category detection, and creates memories. Use this to backfill memory from past sessions. It is categorised as a Write tool in the mcp-Agentmemory MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on import_jsonl? +

Register the mcp-Agentmemory MCP server in PolicyLayer and add a rule for import_jsonl: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches mcp-Agentmemory. Nothing to install.

What risk level is import_jsonl? +

import_jsonl is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit import_jsonl? +

Yes. Add a rate_limit block to the import_jsonl rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block import_jsonl completely? +

Set action: deny in the PolicyLayer policy for import_jsonl. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides import_jsonl? +

import_jsonl is provided by the mcp-Agentmemory MCP server (obidel/agentmemory). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.