Skip to main content
Glama
AIBE13
by AIBE13

get_recent_messages

Retrieve recent WhatsApp messages from local cache, with options to filter by chat or exclude groups.

Instructions

Get messages from the last N hours from the local cache. Optionally filter to one chatId or exclude groups. Each message includes chat (the chat's human-friendly name) and from (sender's name). NEVER show the raw chatId, msgId, or sender JID to the user - always speak in names. The IDs are only for follow-up tool calls (e.g. get_image needs chatId+msgId).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNo
limitNo
chatIdNo
excludeGroupsNo
Behavior3/5

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

Discloses that messages include human-friendly names and IDs are for follow-up calls. However, with no annotations, it omits behavioral traits like data freshness, caching behavior, or any side effects (e.g., cache invalidation).

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

Conciseness5/5

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

Three concise, front-loaded sentences with no redundancy. Every sentence adds value: purpose, return field format, and usage warning.

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

Completeness3/5

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

Adequate for a simple retrieval tool but lacks explicit return structure (only mentions 'chat' and 'from' fields) and does not specify pagination or empty cache behavior. Given many siblings, could hint at differentiation.

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?

With 0% schema description coverage, the description explains three of four parameters (hours, chatId, excludeGroups) in context but misses 'limit'. The explanations add meaning but are incomplete.

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?

Clearly states the tool retrieves messages from the last N hours from local cache with optional filtering. The verb 'get' and resource 'messages' are specific, though it doesn't explicitly distinguish from sibling tools like 'search_messages' or 'get_brief'.

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?

Provides implicit guidance on when to use (for recent messages) and how to handle IDs, but lacks explicit when-to-use vs alternatives (e.g., 'search_messages' for richer queries) and no exclusions or prerequisites.

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

Install Server

Other Tools

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/AIBE13/whatsapp-local-mcp'

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