Skip to main content
Glama

get_client_chat_messages

Read-only

Chat history with one of the coach's own clients, oldest first (page back with before). Shows what the client replied; use send_message_to_client to answer.

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": {
      "clientId": "<clientId>"
    },
    "name": "get_client_chat_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
beforeNoISO time; return messages older than this
clientIdYesClient's User _id (from list_clients)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/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 adds genuinely useful behavior beyond that: ordering (oldest first), backward pagination via `before`, and that the content includes client replies. It stops short of describing the message payload shape or pagination termination.

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 with no filler; the resource and ordering come first, followed by the paging hint and the alternative tool.

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 read-only list tool with no output schema and three simple parameters, the description covers what is returned, ordering, and paging direction. It could note the default/max page size, but nothing critical is missing.

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 67%, with `before` and `clientId` already documented in the schema. The description's 'page back with `before`' and 'coach's own clients' only lightly reframe that, and `limit` is left to the schema default of 30.

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 the specific resource and scope: chat history with one of the coach's own clients, returned oldest first. It distinguishes itself from the write-side sibling send_message_to_client, though it does not explicitly differentiate from list_chat_rooms.

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?

Names the alternative for the obvious follow-up action ('use send_message_to_client to answer'), giving clear context for reading history. It does not state when not to use it or how it relates to other chat-related listing tools.

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.