Skip to main content
Glama

Get chat message

get_chat_message
Read-onlyIdempotent

Get one chat message with its files. Get messageId from list_chat_messages.

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": {
      "roomId": "<roomId>",
      "messageId": "<messageId>"
    },
    "name": "get_chat_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomIdYesChat room ID.
messageIdYesChat message ID.
response_formatNoHow much to return. concise applies when omitted; detailed adds every field and the full text.

Output Schema

NameRequiredDescriptionDefault
idYesMessage ID.
sequenceNoIts order number in the room.
threadIdYesID of the discussion it belongs to.
contentTextNoMessage as plain text, or null.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world profile, so safety is covered without prose. The description adds one useful behavioral fact — that files come back alongside the message — but says nothing about permissions required to read a room or how missing/deleted messages are handled. Adequate given the annotation coverage, not rich.

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, no filler, with the core action front-loaded and the prerequisite second. Every clause carries information the agent did not already have from the name alone.

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 two-required-parameter fetch-by-id tool with a full output schema and complete annotations, the description covers the action, the scope and how to obtain the key identifier. The only gap is failure modes (invalid roomId/messageId), which is a minor omission given the richness of the structured fields.

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 the baseline would be 3, but the description adds provenance for messageId by pointing to list_chat_messages as its source, which the schema's 'Chat message ID' note does not convey. It leaves roomId and the response_format trade-off entirely to the schema, which does document them well.

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 gives a specific verb and resource ('Get one chat message with its files') and states the scope as a single message, which separates it from the list_* siblings. It stops short of naming any sibling as an explicit alternative destination, but the retrieval-versus-list distinction is clear.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies one concrete prerequisite — obtain messageId from list_chat_messages — which is genuine routing guidance for a fetch-by-id tool. There is no statement of when not to use it (e.g. when only a summary of a room is needed) and no mention of how it relates to thread or attachment retrieval.

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