Skip to main content
Glama
gmail-reader-mcp

gmail-reader-mcp

by jgimitola

list_labels

Lists Gmail system and user-created labels with IDs and message/unread counts to help you select a label ID for listing emails.

Instructions

List all Gmail labels (system labels like INBOX/SENT and user-created labels) with their IDs and message/unread counts. Use a label ID with list_emails.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the salient behavior: this enumerates every label including system ones and returns IDs plus message/unread counts. It does not state whether authentication is required, whether results are paginated or ordered, or that the operation is read-only — modest gaps for a zero-parameter read.

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 short sentences with zero filler. The primary behavior is front-loaded and the practical follow-up ('use a label ID with list_emails') is placed after it.

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?

For a trivial, zero-param listing tool with no output schema, the description is nearly sufficient: it names the return fields (IDs, message/unread counts) and how to use them. Only ordering/pagination details and any auth prerequisite are absent, which are minor for this complexity.

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?

The tool takes zero parameters, so the baseline is 4; there is nothing for the description to disambiguate. The sentence about label IDs correctly explains how the output feeds into another tool's parameter, which is a useful bonus.

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 pairs a specific verb ('List') with a specific resource ('all Gmail labels') and enumerates scope (system labels like INBOX/SENT plus user-created ones) and returned fields (IDs, message/unread counts). It is immediately distinguishable from list_emails, get_email and the other siblings, though it never explicitly contrasts itself with them.

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?

'Use a label ID with list_emails' gives clear downstream context: call this first to discover label IDs for filtering mail. There are no explicit when-not conditions or named alternatives, which keeps it 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.