Skip to main content
Glama

get_new_messages

Retrieve WhatsApp messages at or after a Unix timestamp, oldest first, for cursor-style polling; optionally filter by chat and cap results.

Instructions

Messages at or after a timestamp (seconds), oldest first — cursor-style polling.

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": {
      "since_ts": "<since_ts>"
    },
    "name": "get_new_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatNoRestrict to one chat (number or JID).
limitNoMax messages (1-200).
since_tsYesUnix timestamp in seconds; 0 returns the cached window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does deliver useful traits: deterministic oldest-first ordering and incremental polling semantics. It omits return shape, behavior when no new messages exist, and how limit interacts with cursor advancement, so gaps remain.

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?

A single compact clause that front-loads the filter and ordering before the polling hint. No filler and no redundancy with the schema.

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?

For a three-parameter read tool with no annotations and no output schema, the description covers filtering and ordering but leaves the response shape and empty-result behavior unaddressed. Adequate to invoke, not fully complete.

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 coverage is 100%, so the baseline is 3; the description earns an extra point by explaining that since_ts functions as a cursor in a polling loop, telling the agent how to advance it. That is meaning beyond the schema's plain 'Unix timestamp in seconds' wording.

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?

The description names a specific resource (messages) and a precise scope (at or after a timestamp, oldest first), which is more specific than the tool name alone. It does not explicitly contrast with get_messages or wait_for_messages, but 'cursor-style polling' gives it a distinct identity.

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?

'Cursor-style polling' implies the intended usage pattern, but the description never states when to choose this over wait_for_messages or get_messages, nor any preconditions or exclusions. Usage is inferable rather than stated.

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