Skip to main content
Glama

sync_chat_history

Page backward through a WhatsApp chat to store older messages up to a specified date, with page and time limits; call again to continue.

Instructions

Page back through one chat until messages from back_to (YYYY-MM-DD) are stored.

Stops at the page cap (max 50), after three consecutive requests yield nothing older, or at the time budget (max 600 seconds). wait_seconds applies to each page. Call again to continue.

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>",
      "back_to": "<back_to>"
    },
    "name": "sync_chat_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default
back_toYes
max_pagesNo
wait_secondsNo
time_budget_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the description carries the real behavioral load and does so: it names three distinct termination conditions (page cap 50, three consecutive empty pages, 600-second budget) and explains that wait_seconds paces each page. That is exactly the kind of operational detail the agent needs to reason about long-running, rate-limited scraping.

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?

Front-loaded purpose sentence followed by the stopping rules, with no filler. The line-wrapping is a little fragmented but every clause carries operational meaning.

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?

With an output schema present, return values need not be described, and the description covers the hard parts of a paginated, time-bounded sync plus continuation semantics. What remains unsaid, such as permission or rate-limit failure behavior, is minor for this tool type.

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 only 17%, so the description must compensate, and it largely does: it gives the YYYY-MM-DD format for back_to and defines the meaning and ceilings of max_pages, wait_seconds and time_budget_seconds. Only chat and account are left to the schema, and account already carries its own schema description.

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?

States a specific verb and resource ('Page back through one chat until messages from back_to ... are stored'), and the 'one chat' scope implicitly separates it from sync_all_history. It stops short of naming the sibling that handles all chats, so an agent must infer that boundary.

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?

'Call again to continue' gives clear resumption guidance for an incomplete sync, which is the key usage pattern. However, there is no explicit statement of when to prefer this over sync_all_history or request_chat_history, so the choice between alternatives is only implied.

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