Skip to main content
Glama

teams_wait_for_message

Read-only

Waits up to 110 seconds for a new message in a conversation after a given message ID or time, enabling back-and-forth exchanges when paired with sending messages.

Instructions

Wait (up to ~110s) for a new message in a conversation after a given message id/time. Pair with teams_send_message for back-and-forth.

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": {
      "conversation_id": "<conversation_id>"
    },
    "name": "teams_wait_for_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoAccount alias (see teams_accounts). Defaults to the default account.
conversation_idYes
timeout_secondsNo
after_message_idNoDefault: the latest message now
from_others_onlyNoIgnore your own messages. Default: true, except for "notes" (self-chat), where it is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description usefully discloses the blocking nature and the ~110s ceiling, but for a long-polling tool the critical behavior is unstated: what is returned on timeout versus on a match, and whether the call blocks the whole session.

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?

Two tight sentences with the wait semantics and duration front-loaded, and the pairing hint second. Efficient, though borderline terse for a blocking primitive that an agent must loop on.

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?

With no output schema and a long-polling call, the description should say what a caller gets back (message object, empty result, or error on timeout). It covers timing and pairing adequately but leaves the return contract to inference, which is a real gap for loop construction.

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

Parameters3/5

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

Schema coverage is 60%, with the schema already documenting account, after_message_id, and from_others_only. The description only reinforces that the anchor is a message id or time and repeats the timeout ceiling already enforced by maximum: 110; conversation_id and timeout_seconds remain undocumented beyond their names.

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 and resource ('Wait ... for a new message in a conversation') with scope qualifiers (after a given message id/time). It is clearly distinguishable from an immediate fetch like teams_get_message, though it never names a sibling to contrast with.

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?

'Pair with teams_send_message for back-and-forth' gives a concrete usage pattern that tells the agent when this tool belongs in a flow. It stops short of exclusions, e.g. telling the agent to use a plain get-message call when the message already exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools