Skip to main content
Glama

Wait for post comments

wait_for_comments
Read-onlyIdempotent

Wait for new comments or annotations on a post and return them as soon as they exist, oldest first, in the list_post_comments shape. Use it in an agent loop instead of polling list_post_comments: handle the comments, then call it again with the returned since. With no since it waits for comments created after the call starts. On timeout it returns an empty list and the since to reuse. Holds the request open for timeoutSeconds (default 25, max 50). Filter with attachmentId or annotated like list_post_comments.

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": {
      "postId": "<postId>"
    },
    "name": "wait_for_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoWhere to start: the since value the last call returned, or an ISO 8601 time. Leave it out to wait for comments created from now on.
postIdYesThe post to watch. The post's ID, from the id field of list_posts, get_post or search. Post numbers and identifiers are not accepted here.
annotatedNotrue lists annotations only, and false lists plain comments and replies only. Both are listed when omitted.
attachmentIdNoOnly comments on this media item: an attachment ID from get_post with include attachments.
timeoutSecondsNoHow long to hold the request open before returning an empty list. 25 seconds when omitted.
response_formatNoHow much to return. concise applies when omitted; detailed adds every field and the full text.

Output Schema

NameRequiredDescriptionDefault
hintNoA tip on reading cut text in full or on a faster way to do this. Sent only when one applies.
sinceYesPass it as since on the next call. Epoch ms, sent as a string.
commentsYesNew comments, oldest first. Empty on timeout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered; the description goes further by disclosing the long-poll mechanic (request held open for timeoutSeconds, default 25, max 50) and the timeout return value (empty list plus the since to reuse). That is exactly the behavior an agent needs to write a loop correctly and is not derivable from the annotations.

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?

Front-loaded with purpose and the loop pattern, then timeout and filtering. Every sentence carries distinct information — no restatement of the name or title, no filler.

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?

An output schema exists, so return values need not be spelled out, and the description still anchors them to the list_post_comments shape. For a six-parameter long-poll tool with full schema coverage, nothing an agent needs in order to invoke it correctly is missing.

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; the description still adds meaning by framing since as a continuation token ('call it again with the returned since') rather than just an ISO timestamp, and by restating the timeout default and ceiling. Filtering via attachmentId and annotated is only pointed at 'like list_post_comments', so the semantics of those two are left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Wait for new comments or annotations on a post'), plus ordering ('oldest first') and return shape ('in the list_post_comments shape'). It explicitly contrasts with the sibling list_post_comments as a polling alternative, so an agent can pick between them without opening either schema.

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?

Gives an explicit usage pattern: 'Use it in an agent loop instead of polling list_post_comments: handle the comments, then call it again with the returned since.' It also covers the no-since case and the timeout case, which are the two ambiguous branches an agent would otherwise have to guess at.

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