Skip to main content
Glama

Get conversation messages

get_messages
Read-only

Get messages from a conversation. Check the processing flag — if true, the AI agent is still generating a response.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1, max: 100)
userIdNoThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).
pageSizeNoItems per page (default: 25, max: 100)
conversationIdYesThe conversation ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds genuine value by explaining the `processing` flag as a signal that the AI agent is still generating a response, hinting at async behavior and possible polling. It says nothing about pagination behavior or message ordering, which would be useful for a paged read endpoint.

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 sentences, zero waste, with the core action front-loaded before the operational caveat. Every sentence earns its place.

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?

With no output schema, the description carries the burden of explaining return values, and it only covers the `processing` flag. It says nothing about what a message object contains or how paging affects results, leaving the agent to discover the response shape empirically.

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 100%, with page, pageSize, userId, and conversationId all documented in the schema itself. The description adds no parameter-level meaning beyond that, so the baseline of 3 is appropriate.

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?

The description uses a specific verb and resource ("Get messages from a conversation"), which is clearly distinct from list_conversations or get_conversation. However, it does not explicitly contrast with get_conversation, which likely returns conversation metadata, leaving the boundary slightly ambiguous.

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 statement of when to use this tool versus get_conversation or list_conversations, nor any prerequisites or exclusions. The only implied guidance is the polling hint about the processing flag, which is a behavioral note rather than a usage rule.

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.