Skip to main content
Glama

Perpetuus CRM

List Conversation Messages

crm_list_conversation_messages
Read-onlyIdempotent

Reads message history for a numeric chat conversation. Start without cursors for the latest batch; use numeric message IDs in before for older history or after for newer history. Requires chat:read. Do not mix the two cursor directions unless intentionally refreshing a known range. The result may omit messages outside the user’s portfolio scope.

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": {
      "conversationId": "<conversationId>"
    },
    "name": "crm_list_conversation_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoReturn messages newer than this message id.
beforeNoReturn messages older than this message id.
conversationIdYesNumeric chat id (conversation, inbox, or message cursor).

Output Schema

NameRequiredDescriptionDefault
okYesAlways true on success; errors come with isError and no structuredContent.
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / after / $ref
      Removed value: -"#/properties/conversationId"
    • addedInput schema / properties / after / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / after / type
      Added value: +"integer"
    • removedInput schema / properties / before / $ref
      Removed value: -"#/properties/conversationId"
    • addedInput schema / properties / before / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / before / type
      Added value: +"integer"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "anyOf": [
      +            {
      +              "description": "Messages of the conversation.",
      +              "items": {
      +                "additionalProperties": true,
      +                "properties": {
      +                  "content": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "created_at": {
      +                    "anyOf": [
      +                      {
      +                        "type": [
      +                          "string",
      +                          "number"
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "id": {
      +                    "anyOf": [
      +                      {
      +                        "type": [
      +                          "string",
      +                          "number"
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Numeric message id (use in before/after cursors)."
      +                  },
      +                  "message_type": {
      +                    "anyOf": [
      +                      {
      +                        "type": [
      +                          "string",
      +                          "number"
      +                        ]
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "additionalProperties": true,
      +              "properties": {
      +                "data": {
      +                  "description": "Messages of the conversation. (provider format, e.g. { meta, payload: [...] })."
      +                },
      +                "meta": {},
      +                "payload": {
      +                  "anyOf": [
      +                    {
      +                      "items": {
      +                        "$ref": "#/properties/data/anyOf/0/anyOf/0/items"
      +                      },
      +                      "type": "array"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "Messages of the conversation."
      +                }
      +              },
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "meta": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "organizationDocumentId": {
      +          "description": "Organization documentId resolved from the credential.",
      +          "type": "string"
      +        },
      +        "requestId": {
      +          "description": "Request id (x-request-id or generated by the MCP server).",
      +          "type": "string"
      +        },
      +        "source": {
      +          "const": "perpetuus-crm-mcp",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "requestId",
      +        "source"
      +      ],
      +      "type": "object"
      +    },
      +    "ok": {
      +      "const": true,
      +      "description": "Always true on success; errors come with isError and no structuredContent.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "data",
      +    "meta"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds real behavioral context beyond that: the chat:read permission requirement and the caveat that results may omit messages outside the user's portfolio scope, which an agent could not infer from annotations or schema.

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?

Four short sentences, front-loaded with the core purpose and immediately followed by the operational cursor recipe. Every sentence carries information, though the 'do not mix the two cursor directions' clause is slightly wordy relative to its payload.

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?

With rich annotations, a 100%-covered 3-parameter schema, and an output schema handling return values, the description covers everything the agent needs: what it reads, how to page in both directions, the required scope, and the visibility caveat. Nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds directional semantics the schema does not: `before` walks to older history, `after` to newer, and the two should not be combined casually. That is genuine meaning beyond the terse schema descriptions.

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: reads message history for a numeric chat conversation, scoped to a numeric conversationId. This clearly separates it from conversation-level tools like crm_get_conversation or crm_list_conversations, though it never explicitly names a sibling to contrast against.

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 concrete when-to guidance for the cursor parameters: start with no cursors for the latest batch, use `before` for older history and `after` for newer, and avoid mixing directions except when refreshing a known range. It lacks explicit routing to sibling tools (e.g., when to fetch conversation metadata instead), which keeps it below a 5.

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.