Skip to main content
Glama

Cooper Email

List threads

cooper_list_threads
Read-onlyIdempotent

Use this when you need whole conversations instead of individual messages, for example to see who is in a thread and when the last reply arrived. Read-only; requires auth. Inputs: inbox_id (optional; inbox id, username, or email — omit to list every inbox on the account), limit (optional, default 20, max 100), page_token (optional cursor from a previous page), before (optional ISO-8601 upper bound on updated_at), after (optional ISO-8601 lower bound on updated_at). Returns {object:"list", inbox_id, data:[thread], next_page_token}. Each thread has id, subject (first message), preview (latest message), senders, recipients, message_count, last_message_id, labels, attachment_count, received_at, sent_at, created_at, and updated_at. Ordered by updated_at, newest first. A bad page_token returns HTTP 400 invalid_page_token. An unknown inbox_id returns inbox_not_found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoOnly threads whose latest message is after this ISO-8601 timestamp.
limitNoMax threads to return (default 20, max 100)
beforeNoOnly threads whose latest message is before this ISO-8601 timestamp.
inbox_idNoInbox id, username, or email. Omit to list threads in every inbox on the account.
page_tokenNoCursor from next_page_token. A bad token returns invalid_page_token.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description goes well beyond them: auth requirement, default/max limit, ordering (updated_at descending), and two concrete error behaviors (HTTP 400 invalid_page_token, inbox_not_found). This is exactly the extra context an agent needs.

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?

Front-loaded with the decision rule, then inputs, then return shape and errors in a logical order. The run-on enumeration of thread fields is dense but earns its place since there is no output schema; it could be trimmed slightly.

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 fully compensates by spelling out the return envelope (object/data/next_page_token), per-thread fields, ordering, and error cases. Nothing an agent needs to call and consume this tool correctly is missing.

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 the schema already documents all five parameters, including the inbox_id omission semantics and the page_token failure mode. The description largely restates these, adding only minor framing ('cursor from a previous page'), so baseline 3 is appropriate.

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 resource (threads) with a clear scoping rule — 'whole conversations instead of individual messages' — which cleanly separates it from cooper_list_messages and cooper_search_messages in the sibling set. The enumerated thread fields confirm exactly what a 'thread' means here.

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 an explicit when-to-use with a concrete example ('see who is in a thread and when the last reply arrived') and contrasts it with message-level retrieval. It does not name the alternative tool by name (e.g. cooper_list_messages / cooper_search_threads), so the routing is implied rather than explicit.

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.