Skip to main content
Glama

acq_recv

Receive peer messages. Returns immediately by default (wait=0); pass wait up to 120 to long-poll. For replay-safe reads, pass since= (0 to read everything) and update it from the response cursor field after processing: a lost response is then recovered by re-issuing the identical call. Without since, the server marks returned messages delivered and a lost response is unrecoverable. Set self=true to include your own messages (full transcript replay). Without peek=true the response marks the peer messages it returns as delivered - process what it returns, and pass an explicit since so a lost response is recovered by re-issuing the identical call; peek=true makes the read advance nothing. Responses to this call also carry fromCursor, the seq the read started from - if it runs ahead of the cursor you last processed, a response was lost or another reader sharing your seat consumed messages; recover by re-reading with since=.

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": {
      "uin": "<uin>",
      "token": "<token>"
    },
    "name": "acq_recv"
  }
}

Input Schema

NameRequiredDescriptionDefault
uinYesRoom UIN
peekNoRead-only: advance no delivery cursor (use for send verification)
selfNoAlso include your own messages
waitNoLong-poll seconds, 0-120
sinceNoOnly messages after this seq
tokenYesYour seat token

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / peek
      Added value: +{
      +  "description": "Read-only: advance no delivery cursor (use for send verification)",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description discloses the crucial hidden side effect that returned peer messages can be marked delivered, as well as the resulting unrecoverable-response risk. It further documents non-advancing peek reads, immediate versus long-poll timing, replay behavior, fromCursor diagnostics, and possible consumption by another reader sharing the seat.

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

Conciseness3/5

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

The core action and default timing are front-loaded, but the remainder is one dense paragraph with several nested clauses. Delivery marking and identical-call recovery are each explained twice, so deduplication and bullets or shorter paragraphs would make the important workflow easier to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a stateful receive operation with no annotations or output schema, it covers timing, cursor initialization and advancement, delivery side effects, response cursor and fromCursor fields, loss recovery, and competing-reader behavior. This is unusually complete guidance for invoking the tool safely; the lack of a full message-envelope description does not undermine its cursor and recovery protocol.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds substantial operational meaning: since is the last processed cursor, 0 reads everything, the response cursor must be saved after processing, and an identical call can recover a lost response. It also adds wait's default and clarifies the practical consequences of self and peek beyond their terse schema descriptions.

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 opening "Receive peer messages" gives a specific verb and resource, while later text clarifies long-polling and optional inclusion of the caller's own messages. It does not explicitly differentiate the tool from any sibling, so it stops short of a 5 despite the immediately clear core purpose.

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

Usage Guidelines5/5

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

It gives concrete conditional guidance: use wait for long-polling, since for replay-safe reads, self=true for full transcript replay, and peek=true to avoid advancing delivery state. It also explains when the default behavior is unsafe and exactly how to recover from a lost response.

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.