Skip to main content
Glama
arunkumars-mf

mem0-agent-memory

get_recent_memories

Fetch recently added or updated memories to preserve session context. Filter by days, limit, user, agent, or run ID to retrieve relevant history, sorted by recency.

Instructions

Get recently added or updated memories for session continuity.

OPTIONAL: 'days' - how many days back to search (default: 7) OPTIONAL: 'limit' - max memories to return (default: 10) OPTIONAL: 'user_id' OR 'agent_id' (if neither provided, auto-detects current user) OPTIONAL: 'run_id' - filter by session/run identifier

Returns: Most recently added/updated memories sorted by newest first

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
limitNo
run_idNo
user_idNo
verboseNo
agent_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.3.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It communicates that the operation is a read ('Get'), that results are sorted newest first, and that user/agent detection happens automatically when neither ID is supplied. This is meaningful behavioral context beyond the schema.

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?

The description is well-structured: a clear purpose sentence, a compact optional-parameter list, and a return statement. Each line adds value, though the repeated 'OPTIONAL:' prefix is slightly redundant and could be trimmed without losing clarity.

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?

The description covers the tool's main behavior, key parameters, and return ordering. An output schema exists, so detailed return fields are not required here. The main gap is the undocumented 'verbose' parameter and the lack of explicit guidance on choosing among sibling memory tools.

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 description coverage is 0%, so the description must compensate. It explains days, limit, run_id, user_id, and agent_id with defaults and mutual exclusivity, adding real semantics. However, it omits the 'verbose' parameter, so parameter documentation is incomplete.

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

Purpose5/5

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

The description opens with a specific verb and resource: 'Get recently added or updated memories.' It also states the output ordering ('sorted by newest first'), which clearly separates this tool from siblings like get_memory, list_memories, or search_memories.

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 phrase 'for session continuity' gives some usage context, but the description does not explicitly say when to use this tool instead of list_memories, search_memories, or get_memory. The intended selection criteria are mostly implied by the tool name and the word 'recently.'

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arunkumars-mf/mem0-agent-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server