Skip to main content
Glama

Get conversation messages

get_conversation_messages
Read-only

Retorna o histórico de mensagens de uma conversa específica. Use para ler o contexto de um atendimento antes de responder.

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": {
      "conversation_id": "<conversation_id>"
    },
    "name": "get_conversation_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoQuantidade de mensagens mais recentes (padrão 20, máx 100)
conversation_idYesID da conversa

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already state readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile needs no explanation. The description adds the idea that the tool is meant for reading context, but says nothing about ordering, pagination or how much history is returned by default. That is a modest addition on top of the annotations.

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: the first states what the tool does, and the second states when to use it. Nothing is wasted or buried, and the action comes first.

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?

This is a simple read-only tool with only two parameters, full schema coverage and annotations that cover safety, so the description is nearly complete. The minor gap is that it does not say whether the returned messages come in chronological order or how much context the default limit provides.

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%: conversation_id and limit (default 20, max 100) are already documented in the schema. The description adds no further meaning about either parameter, so the baseline of 3 applies.

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 states a specific verb and resource: it returns the message history of one specific conversation ('Retorna o histórico de mensagens de uma conversa específica'). That is clearly distinct from siblings such as get_conversations, which lists conversations. The only shortcoming is that it does not explicitly name those siblings.

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?

'Use para ler o contexto de um atendimento antes de responder' gives a concrete when-to-use trigger and ties it to a workflow step, not just to fetching data. It names no exclusions or alternative tools, such as search_knowledge_base or get_conversations, so the guidance is clear but incomplete.

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