Skip to main content
Glama

read_chat

Retrieves the most recent messages from a specified chat by title, title words, or ID, showing both the sender's input and the chat's reply.

Instructions

Read the last messages of one chat: what the owner (or another agent) wrote and what the chat answered. chat is its title, words from its title, or its id.

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

Input Schema

NameRequiredDescriptionDefault
chatYes
lastNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full load. It does convey that this is a passive read and what the returned content represents (owner/other-agent messages plus the chat's replies), but says nothing about volume controls, ordering of messages, or what happens when no chat matches the title/words/id.

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, both earning their place: the first defines scope and content, the second disambiguates the key parameter's accepted formats. Nothing is padded or restated from the title.

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?

An output schema exists, so return values need not be explained, and the tool is low complexity. The remaining gap is the undocumented `last` count and the absence of any failure behavior for an unmatched chat, which matter somewhat given there are no annotations to fall back on.

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 0%, so the description must compensate. It handles the required `chat` parameter well by explaining that it accepts a title, words from a title, or an id — meaning the lookup is fuzzy, which the schema does not say. It never mentions the `last` parameter (default 8), leaving one of two parameters undocumented in both places.

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 ("Read the last messages of one chat") and clarifies the scope: reading a single chat's recent exchange rather than listing chats. It does not explicitly name a sibling such as list_chats or search_chats, but the "one chat" framing plus the description of message provenance is enough to pick this tool over a list operation.

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 implied rather than stated: you use this to look at recent traffic in a specific chat. There is no explicit guidance about when to prefer search_chats or list_chats, and no stated prerequisites (e.g., whether the chat must already exist).

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