Skip to main content
Glama

request_chat_history

Fetch up to 100 older WhatsApp messages from your linked phone when a chat's stored history ends, so you can continue reading or analyze earlier conversations.

Instructions

Ask our own phone once for up to 100 messages older than the oldest stored one in this chat.

The phone delivers available history in the background. Local imports cannot anchor a request.

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": {
      "chat": "<chat>"
    },
    "name": "request_chat_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
countNo
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses two genuinely useful traits: the request is bounded to 100 messages and the phone delivers history asynchronously in the background. It does not say how the agent learns the delivery finished or whether repeated calls are needed, which keeps it from a 5.

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?

Three short sentences, no filler, with the cap and the anchoring constraint stated up front. The word "once" is slightly ambiguous (once per chat? once per invocation?) and could be tightened.

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?

For a three-parameter tool with an output schema, the description covers what the request does, its size bound, and its asynchronous delivery model, which is the main thing an agent could get wrong. Missing are the lifecycle details — how to detect completion or what happens if a request is made while one is already in flight.

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 only 33% schema description coverage (only 'account' is documented), the description partially compensates: it establishes that 'chat' anchors the request and that 'count' is capped at 100 — a max the schema does not state. However, it says nothing about the default of 50 for count or how 'account' interacts with multi-number setups beyond what the schema already declares.

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 action and resource: requesting up to 100 older messages for a given chat from the user's own phone. That is clearly distinguishable from bulk-sync style operations, though it never explicitly contrasts itself with sync_chat_history or sync_all_history by name.

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?

"Local imports cannot anchor a request" gives one implicit when-not condition, and "ask our own phone once" implies a one-shot pull rather than a loop. There is no explicit statement of when to prefer this over sync_chat_history or what to do when the chat is already fully synced, so usage is implied rather than spelled out.

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