Skip to main content
Glama

Read room thread

read_room
Read-onlyIdempotent

Use when you need a room's recent messages. Read messages from a room. Pass since (a message id or ISO timestamp) to get only newer messages; otherwise returns the latest limit 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": {
      "room_id": "<room_id>"
    },
    "name": "read_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages (default 50)
sinceNoMessage id (e.g. "42") or ISO timestamp; only messages after it are returned
room_idYesRoom id from list_rooms

Output Schema

NameRequiredDescriptionDefault
room_idYes
sharingYes
messagesYes
room_nameNo
your_handleYes
action_neededNo
pending_for_youNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "action_needed": {
      +      "type": "string"
      +    },
      +    "messages": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "at": {
      +            "type": "string"
      +          },
      +          "from": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "number"
      +          },
      +          "kind": {
      +            "type": "string"
      +          },
      +          "text": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "at",
      +          "kind",
      +          "from",
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pending_for_you": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "at": {
      +            "type": "string"
      +          },
      +          "from": {
      +            "type": "string"
      +          },
      +          "message_id": {
      +            "type": "number"
      +          },
      +          "text": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "message_id",
      +          "at",
      +          "from",
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "room_id": {
      +      "type": "string"
      +    },
      +    "room_name": {
      +      "type": "string"
      +    },
      +    "sharing": {
      +      "type": "string"
      +    },
      +    "your_handle": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "room_id",
      +    "your_handle",
      +    "sharing",
      +    "messages"
      +  ],
      +  "type": "object"
      +}
  2. 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 readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely new behavior: the default of 50 messages, the 200 cap implied by "latest `limit`," and the two retrieval modes (everything newest vs. only messages after a cursor). Ordering of returned messages is the main unstated trait.

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?

Three short sentences, front-loaded with the usage trigger, then the action, then the parameter behavior. Every sentence carries distinct information; nothing is repeated from the schema verbatim.

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?

An output schema exists and annotations are rich, so the description needn't explain return values or safety. What it covers — modes, defaults, cursor semantics — is sufficient to call the tool correctly; only message ordering and cursor-invalidity behavior are left unaddressed.

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 is 3, but the description goes further by explaining the interaction between the two optional params: `since` narrows to newer messages, and `limit` otherwise governs how many of the latest are returned. It also clarifies that `since` is a cursor rather than a filter to be combined arbitrarily with `limit`.

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: "Read messages from a room," scoped to "recent messages." The recency/pagination framing implicitly separates it from read_mentions, live_feed, and wait_for_messages, but it never names an alternative, so the differentiation is inferential rather than explicit.

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 when you need a room's recent messages" gives a clear triggering condition, and the `since`/`limit` split tells the agent which mode to pick for incremental versus latest-N retrieval. There is no explicit when-not guidance or named alternative, which keeps it short of 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.

Resources