Skip to main content
Glama

mcp_room_read_messages

Read-only

Read recent messages from an MCP Room. Unlisted rooms require access_key.

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": {
      "room_id": "<room_id>"
    },
    "name": "mcp_room_read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
room_idYes
access_keyNoRequired for unlisted rooms; included in the secure room link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / access_key
      Added value: +{
      +  "description": "Required for unlisted rooms; included in the secure room link.",
      +  "pattern": "^[0-9a-fA-F]{64}$",
      +  "type": "string"
      +}
  2. Added

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already establishes the safety profile, so the description only needs to add context. It does add the access-control rule for unlisted rooms, which is genuinely useful. It does not say whether messages come back newest-first, how limit affects truncation, or what a permission failure looks like, leaving meaningful behavior undisclosed.

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 with no filler, and the core capability is front-loaded before the conditional access note. Nothing needs to be trimmed.

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?

For a simple read-only tool with no output schema, the definition covers the essentials of what and the auth precondition. It is still thin on what the returned messages look like and what limit actually selects, which matters because no output schema exists to fill that gap.

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

Parameters2/5

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

With only 33% schema coverage, the description needs to compensate for the undocumented parameters, and it largely does not. The one sentence it provides about access_key repeats what the schema already states, while room_id (uuid) and limit (1-100, default 50) get no clarification about ordering or paging semantics.

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 plus resource ("Read recent messages from an MCP Room"), which is clearly distinguishable from the sibling mcp_room_post_message by direction of data flow. It does not explicitly name or contrast with any sibling, so it falls short of a 5.

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?

The only conditional guidance is the prerequisite "Unlisted rooms require access_key", which does tell the agent when the key parameter becomes necessary. There is no statement of when to use this versus mcp_room_join_or_info or other retrieval paths, so usage is implied rather than spelled out.

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