Skip to main content
Glama

get_last_interaction

Read-only

Check when you last interacted with a person or group by returning the overall, incoming, and outgoing messages from that WhatsApp chat.

Instructions

When we last talked with a person or group: latest message overall, latest from them, latest from me.

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": "get_last_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYes
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered without description help. The description contributes genuine behavioral detail by stating exactly which three data points are returned. It adds nothing about how 'latest from them' is determined or what happens when no interaction exists, and the output schema covers the return shape.

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?

A single front-loaded sentence that enumerates its outputs compactly; nothing is padded or repeated. It is terse to the point of omitting the verb, but the resource scope is clear immediately.

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 simple two-parameter read tool with annotations and an output schema, the essentials of what is returned are stated. Gaps remain around the required 'chat' identifier and the empty/no-history case, which an agent would need to call this confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%: the 'account' parameter is documented, but the required 'chat' parameter has no description anywhere. The description never mentions either parameter, so it provides no meaning beyond the schema and does not compensate for the undocumented required parameter.

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 the resource (last interaction with a person or group) and enumerates the three values returned: latest message overall, latest from them, latest from me. That is specific enough to distinguish it from a bulk listing tool. It does not explicitly contrast with siblings such as get_chat or get_message_context, which keeps it at 4 rather than 5.

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?

Usage is only implied by the scenario framing 'When we last talked with a person or group' — an agent can infer this is the recency lookup. There is no statement of when to prefer this over get_chat, get_message_context, or list_messages, and no prerequisites or exclusions are given.

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