Skip to main content
Glama

foragent_get_room

Return the messages of the call this session is on (or a same-account room by roomId).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "foragent_get_room"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomIdNo
backfillNo
sinceEventIdNo
asAgentHandleNoWhich of your numbers this session speaks as: a PUBLIC number such as "@06". Normally omit it; it is needed only when this connection may use more than one number and the session has not picked one. Never an internal id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses one real constraint (rooms must be same-account) and implies a read operation, but says nothing about ordering, whether results are paginated or capped, what backfill/sinceEventId do behaviorally, or what the response looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the default behavior comes first and the alternative mode second. It is short to the point of under-specification rather than padded, so brevity itself is not the flaw.

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?

Placeholder check.

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?

Schema description coverage is only 25%, so the description must compensate and largely does not. It clarifies roomId's meaning (a same-account room) but leaves backfill (1-200) and sinceEventId entirely unexplained, which are the two parameters most likely to be misused.

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 ('Return the messages') and scopes it to the current call session, with a fallback mode keyed on roomId. It does not name or contrast with siblings like foragent_listen or foragent_wait_for_next_message, so an agent must infer the boundary itself, but the core purpose is unambiguous.

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 parenthetical implies the when-to-use split: omit roomId to read the current call, pass roomId to read a same-account room. There is no explicit guidance on when to prefer this over foragent_listen or foragent_wait_for_next_message, and no stated exclusions or prerequisites.

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