Skip to main content
Glama

export_chat

Idempotent

Creates a Markdown transcript of a single WhatsApp chat with timestamps, senders, text, media paths, replies, and transcripts, then returns the export file path and message count.

Instructions

Write a Markdown transcript of one chat (time, sender, text, media paths, replies, transcripts).

Returns the file path in exports_dir and the message count.

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

Input Schema

NameRequiredDescriptionDefault
chatYes
afterNo
beforeNo
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.1/5.0
Behavior3/5

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

The description explains the key behavioral trait behind readOnlyHint=false: it writes a transcript file and returns its path in exports_dir plus a message count. It does not say whether an existing file is overwritten, where exports_dir lives, or what happens for chats with missing media, so the mutation semantics remain partly opaque. The output schema covers the return shape, so restating it is low value.

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?

Two sentences, front-loaded with the action, then the output contract. The parenthetical content list is dense but each element is informative; nothing is filler.

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 4-parameter file-writing tool with an output schema and annotations, the description covers what is produced and what is returned. The notable omission is any explanation of the before/after range parameters, which materially affect results.

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 only 25% — just the `account` parameter is documented inline — and the description never mentions the `after`/`before` date filters at all. With most parameters undocumented in both schema and description, the description fails to compensate for the coverage gap.

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: 'Write a Markdown transcript of one chat', and enumerates the contents (time, sender, text, media paths, replies, transcripts). It's clear what is produced, but it never contrasts with siblings like export_period or get_chat, so differentiation depends on the scope word 'one chat' alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of when not to use it, and no named alternative such as export_period for range exports or get_chat for raw reads. Usage is only implied by the phrasing 'one chat'.

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