Skip to main content
Glama

List Conversation Messages

list-conversation-messages
Read-only

List messages from one accessible Chatway conversation, newest first. Supports pagination and optional inclusion of system messages and private/internal message types. Read the history before summarizing or replying; page back to older messages with before_sort_number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of messages to return, from 1 to 100.
conversation_idYesThe UUID of the conversation whose messages should be retrieved.
before_sort_numberNoReturn messages older than this sort number. Use next_before_sort_number from the previous response.
include_system_messagesNoWhether to include system-generated messages.
include_internal_messagesNoWhether to include internal notes, reminders, and other non-chat message types.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messagesNo
paginationNo
conversation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "conversation_id": {
      +      "type": "string"
      +    },
      +    "messages": {
      +      "items": {
      +        "properties": {
      +          "content": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "conversation_id": {
      +            "type": "string"
      +          },
      +          "created_at": {
      +            "description": "ISO 8601 timestamp.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "edited_at": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "is_system_message": {
      +            "type": "boolean"
      +          },
      +          "origin": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "parent_id": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "sender": {
      +            "properties": {
      +              "email": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "name": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "type": {
      +                "enum": [
      +                  "agent",
      +                  "ai_assistant",
      +                  "contact",
      +                  "system",
      +                  "unknown"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "sort_number": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "type": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "updated_at": {
      +            "description": "ISO 8601 timestamp.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "urls": {
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pagination": {
      +      "properties": {
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "limit": {
      +          "type": "integer"
      +        },
      +        "next_before_sort_number": {
      +          "description": "Pass as before_sort_number to load older messages.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context: newest-first ordering, pagination via before_sort_number, and the fact that system and internal message types are excluded unless explicitly requested.

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?

Three sentences, no waste, and the core operation is front-loaded ahead of the pagination and filtering details. Every clause carries information.

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?

An output schema exists, so return values need not be described. Ordering, pagination, and default-excluded message types are all covered, which is everything an agent needs to call this read tool correctly.

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 100%, so all five parameters are already documented in the schema, including the pagination contract and the two inclusion flags. The description largely restates those flags rather than adding syntax or format detail, so baseline 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?

States a specific verb and resource ('List messages from one accessible Chatway conversation') plus ordering ('newest first'). The phrase 'from one ... conversation' distinguishes it from sibling list-conversations, which enumerates conversations rather than messages.

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?

Gives a clear usage condition ('Read the history before summarizing or replying') and explains how to page backwards with before_sort_number. It stops short of naming an explicit alternative or exclusion, but the intended workflow is unambiguous.

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