Skip to main content
Glama
stackia
by stackia

List Chats

list_chats
Read-onlyIdempotent

Lists current user's 1:1, group, and meeting chats with participants, latest-message previews, and read status. Supports unread-only filtering and returns all pages, newest message first.

Instructions

List the current user's 1:1, group, and meeting chats with participants, latest-message previews, and read status. Returns all pages, newest message first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenantIdNoTarget tenant ID from list_tenants. Omit only when a default is configured or exactly one tenant is connected. Resource IDs belong to this tenant.
unreadOnlyNoOnly return chats with confirmed unread messages based on the current user's read position. Chats with unavailable read status are excluded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile. The description adds meaningful behavior beyond that: it auto-returns all pages, orders newest message first, and scopes results to the current user's chats.

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?

Two sentences with no filler. The first sentence states the scope and returned content; the second covers pagination and ordering. Every clause earns its place.

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 read-only list operation with no output schema, the description covers the essential behavior: scope, chat types, included fields, pagination, and sort order. The annotations and rich parameter schema cover the remaining operational concerns.

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 description coverage is 100%, and the schema already provides detailed semantic guidance for tenantId and unreadOnly. The description adds no additional parameter-level meaning, so the baseline score of 3 applies.

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?

The description uses a specific verb ('List') and resource ('current user's chats'), enumerates the chat types (1:1, group, meeting) and the returned fields (participants, message previews, read status). This clearly distinguishes it from siblings like get_chat_messages or list_chat_members.

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?

The description establishes a clear context: this is for listing the current user's chat overview, not for fetching messages within a single chat. It does not explicitly name an alternative or state when not to use it, so it stops short of a 5.

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