Skip to main content
Glama

sync_all_history

Bulk-sync WhatsApp chat history for every chat active since a start date back to a target date, saving progress so interrupted runs resume without losing work.

Instructions

Run sync_chat_history for every chat active since active_since, back to back_to.

Each call stops after time_budget_seconds (max 600) and returns complete=false with a resume hint; progress is saved, so calling it again continues with the chats that did not reach back_to yet. restart=true forgets the saved progress.

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": {
      "active_since": "<active_since>",
      "back_to": "<back_to>"
    },
    "name": "sync_all_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount from list_accounts when several WhatsApp numbers are set up; default: default
back_toYes
restartNo
max_chatsNo
active_sinceYes
wait_secondsNo
max_pages_per_chatNo
time_budget_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) by disclosing the time-budget cutoff (max 600), the complete=false return signal with a resume hint, that progress is persisted between calls, and exactly what restart destroys. That is precisely the stateful, resumable behavior an agent must know to avoid redundant or destructive re-runs.

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 short sentences, front-loaded with the main action, then the interruption/resume contract, then the reset flag. No filler, and the resume semantics are placed before the restart caveat so the reader builds the mental model in the right order.

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-value detail is unnecessary, and the description still flags the one return field that drives control flow (complete=false). For an 8-parameter, stateful batch operation the only real gap is the unexplained throttling/scoping knobs (max_chats, max_pages_per_chat, wait_seconds).

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?

Schema coverage is only 13% (sole parameter documented is `account`), so the description must compensate — and it does for the core four: active_since, back_to, time_budget_seconds, and restart all get real meaning. However, max_chats, max_pages_per_chat, and wait_seconds receive no explanation anywhere, and those materially govern how much work gets done per call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a precise verb-and-resource statement — 'Run sync_chat_history for every chat active since active_since, back to back_to' — which both names the underlying sibling tool and defines this tool's fan-out scope. An agent can immediately distinguish it from sync_chat_history without inspecting either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly describes the continuation workflow ('calling it again continues with the chats that did not reach back_to yet') and the escape hatch ('restart=true forgets the saved progress'), which is the main ambiguity for a resumable batch tool. It does not explicitly say when to prefer this over single-chat sync_chat_history, but the 'every chat' framing makes the boundary implied rather than stated.

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