Skip to main content
Glama

list_chats

Read-onlyIdempotent

Search saved Gemini conversations by topic, even after a restart, and page through active or archived matches.

Instructions

Find saved Gemini conversations by topic, including after a restart. Active chats appear most recently updated first. Search with query, inspect ambiguous matches with get_chat, and pass nextOffset as offset for the next page.

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_chats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoResults per page, default 20.
queryNoCase-insensitive substring of the title, ID, or last user preview.
offsetNoDefaults to 0. Use nextOffset to continue.
statusNoDefaults to active. Use all to include archived chats.

Output Schema

NameRequiredDescriptionDefault
chatsYes
totalYes
nextOffsetYes
unavailableCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the remaining burden is modest. The description still adds real value by disclosing result ordering (most recently updated first) and persistence across restarts, plus the nextOffset-to-offset paging contract; it stops short of describing page-size defaults or empty-result behavior, which the schema covers instead.

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?

Three short sentences, each carrying distinct information: what is searched, how results are ordered, and how to page and disambiguate. Nothing is repeated from the schema and the search capability is front-loaded.

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

Completeness4/5

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

The tool is a simple paged list with four optional parameters and an output schema, so return values need no explanation. Ordering, pagination continuation, and the get_chat follow-up are all covered; only edge cases like empty results or the default page size remain unmentioned, and those live in the schema.

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%, so limit, query, offset, and status are all documented at the field level with defaults and enum values. The description only echoes the query/offset usage pattern and the nextOffset convention, adding no semantics beyond the schema.

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?

States a specific verb and resource ('Find saved Gemini conversations by topic') and adds a distinguishing note that results persist after restart, which separates it from an in-memory session list. It does not explicitly contrast with create_chat or gemini_chat, but the get_chat reference makes the retrieval role unambiguous.

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?

Gives concrete routing: search with query, drill into ambiguous matches via get_chat, and continue paging with nextOffset. It never states when not to use this tool (e.g., when starting or continuing a conversation), so guidance stops short of full exclusion rules.

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