Skip to main content
Glama

list_inbound_messages

Read-only

Read the messages that arrived through the channel ingest (ingest_message — Beeper networks such as WhatsApp/Signal/LinkedIn, desktop mail — plus Mattermost, WeCom, DingTalk, Feishu/Lark, e-signature status callbacks (channel 'esign') and WhatsApp ad leads), newest first. This is the inbox for those channels; list_whatsapp_messages only covers Twilio. Read-only. Filters: channel (exact, e.g. 'beeper', 'mattermost', 'wecom', 'dingtalk', 'feishu'), since (ISO-8601; messages recorded at or after), search (contained in sender, sender_name, chat_name or body; case-insensitive), unassigned_only (true = only messages not yet on any lead's timeline), untriaged_only (true = only messages nobody has classified yet), category / priority (the classification from classify_message), limit (default 20, max 100). Each row: id, channel, external_id, chat_id, chat_name, sender, sender_name, subject, body, received_at, created_at, network (metadata.network if present), assigned + lead_ids (leads whose timeline already holds it), and the classification: triage_category, triage_priority, triage_agent_id, triage_note, triaged_at, triage_draft_delegation_id. The reply carries a hint on how to attach a message to a lead (find_lead_by_channel / resolve_person → add_lead_message with inbound_message_id → link_channel). Reply drafts to an incoming item: in delegate_to_user ALWAYS set source {kind: 'email'|'inbound_message', id} on EACH question (questions[].source), also when one delegation holds many drafts — otherwise the item does not carry its draft and /app/inbox does not count it under 'Entwürfe zur Freigabe'. Check unlinked_sources in the result.

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": "list_inbound_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 20, max 100)
sinceNoISO-8601; only messages recorded at or after this time
searchNoSubstring of sender, sender_name, chat_name or body
channelNoExact source channel, e.g. 'beeper', 'mattermost', 'wecom', 'dingtalk', 'feishu', 'esign', 'mail'
categoryNoOnly this triage category (exact, case-insensitive), e.g. 'Anfrage'
priorityNoOnly this triage priority
untriaged_onlyNoOnly items nobody has classified yet (triaged_at is empty)
unassigned_onlyNoOnly messages not yet attached to a lead (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / channel / description
      Previous value: -"Exact source channel, e.g. 'beeper', 'mattermost', 'wecom', 'mail'"New value: +"Exact source channel, e.g. 'beeper', 'mattermost', 'wecom', 'dingtalk', 'feishu', 'esign', 'mail'"
  2. Changed1 schema field changed
    • changedInput schema / properties / channel / description
      Previous value: -"Exact source channel, e.g. 'beeper', 'mattermost', 'mail'"New value: +"Exact source channel, e.g. 'beeper', 'mattermost', 'wecom', 'mail'"
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real behavior: newest-first ordering, a `hint` field in the reply, and the unlinked_sources field to check. It is consistent with the read-only annotation rather than contradicting it, though it says nothing about pagination behavior beyond the limit cap or how large result sets are handled.

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?

Purpose is front-loaded and the filter enumeration is dense rather than padded. The delegate_to_user paragraph, with its emphatic ALWAYS and UI-quoting about 'Entwürfe zur Freigabe', is about a sibling tool's calling convention and drifts well past what this listing tool does, costing some focus.

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?

With no output schema, the description carries the return-value burden itself and does so by enumerating every row field (id, channel, external_id, chat_id, sender, received_at, assigned + lead_ids, triage_*) and the network metadata fallback. For an eight-parameter, zero-required read tool, nothing an agent needs to call 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, but the description adds meaning the schema does not: unassigned_only is glossed as 'not yet on any lead's timeline', untriaged_only as 'nobody has classified yet', and category/priority are tied to their origin in classify_message. That is genuine semantic lift on top of an already-complete 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?

Opens with a precise verb+resource ('Read the messages that arrived through the channel ingest'), enumerates the covered sources (Beeper networks, desktop mail, Mattermost, WeCom, DingTalk, Feishu/Lark, esign, WhatsApp ad leads), and explicitly distinguishes itself from list_whatsapp_messages, which only covers Twilio.

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?

States what the tool is for ('This is the inbox for those channels'), names the competing sibling and its narrower scope, and closes the loop with the follow-on path (find_lead_by_channel / resolve_person → add_lead_message → link_channel) plus the delegate_to_user draft guidance. An agent knows both when to pick this and what to do next.

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.