Skip to content

[BUG] Recent activity tool call fails with pydantic validation error #95

@chishaku

Description

@chishaku

Bug Description

Prompt: get recent notes from today and summarize

Error

DEBUG Getting function recent_activity
DEBUG Running: recent_activity(timeframe=today, type=note)
DEBUG Calling MCP Tool 'recent_activity' with args: {'tool_description': 'Get recent activity from across the knowledge base.\n    \n    Timeframe supports natural language formats like:\n    - "2 days ago"  \n    - "last
      week"\n    - "yesterday" \n    - "today"\n    - "3 weeks ago"\n    Or standard formats like "7d"\n    ', 'timeframe': 'today', 'type': 'note'}
ERROR    Failed to call MCP tool 'recent_activity': Error from MCP tool 'recent_activity': [TextContent(type='text', text="Error executing tool recent_activity: 1 validation error for recent_activityArguments\ntype\n  Input
         should be a valid list [type=list_type, input_value='note', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.11/v/list_type", annotations=None)]
         Traceback (most recent call last):
           File "/usr/local/google/home/jeffwayne/.cache/uv/environments-v2/tpgm-9150c9e49cf98506/lib/python3.12/site-packages/agno/utils/mcp.py", line 37, in call_tool
             raise Exception(f"Error from MCP tool '{tool_name}': {result.content}")
         Exception: Error from MCP tool 'recent_activity': [TextContent(type='text', text="Error executing tool recent_activity: 1 validation error for recent_activityArguments\ntype\n  Input should be a valid list
         [type=list_type, input_value='note', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.11/v/list_type", annotations=None)]

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install version 0.12.2
  2. Run command uvx basic-memory --project=notes mcp
  3. Use tool/feature recent activity
  4. See error description above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions