Skip to main content
Glama

Get Chat

wa_get_chat
Read-only

Read the most recent messages for one WhatsApp account, oldest first. Use this for context before replying; use wa_list_messages to page through everything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNohow many recent messages, 1-200; defaults to 50
account_idYesthe account whose conversation to read, from wa_list_accounts

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
refusalNopresent only when the request was declined
messagesYesrecent messages for this account, oldest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description is consistent. It adds useful behavioral context: the tool reads only the most recent messages, orders them oldest first, and targets a single account. This goes beyond the minimal read-only signal.

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?

Two short sentences convey the core behavior, sort order, intended use, and the relevant alternative. There is no filler, and the most important information comes first.

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

Completeness5/5

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

The tool is simple, has full schema parameter coverage, a read-only annotation, and an output schema. The description supplies the remaining context an agent needs: what to use it for and how it differs from the paging alternative.

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 description coverage is 100%, so both parameters are already documented in the schema. The description does not add new parameter-level detail, but it also does not need to; the baseline of 3 applies.

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?

The description states a specific verb ('Read') and resource ('most recent messages for one WhatsApp account'), and distinguishes itself from wa_list_messages. This makes the tool's purpose clear even though the title 'Get Chat' is generic.

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

Usage Guidelines5/5

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

It explicitly tells the agent when to use this tool ('for context before replying') and when to use the alternative ('use wa_list_messages to page through everything'). This leaves no ambiguity about tool selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources