Skip to main content
Glama
gmail-mcp

gmail-mcp

gmail_list_labels

Lists all Gmail labels, including system folders and user-created labels, to help you discover mailbox organization and identify labels for sorting messages.

Instructions

List all Gmail labels (folders) in the mailbox. Returns both system labels (INBOX, SENT, etc.) and user-created labels.

Sibling tools: use gmail_list_inbox to list messages from a discovered label, and gmail_manage_labels/gmail_manage_labels_bulk to change labels.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. "List" implies a read-only operation and "all" implies no filtering or paging, but the description never explicitly states there are no side effects, no permission requirements, or whether the call is cheap/safe to repeat. The note about returning system and user labels is partly redundant given an output schema exists.

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?

Three short lines, front-loaded with the core action before the sibling guidance. The sibling sentence is slightly loose — gmail_list_inbox lists inbox messages rather than messages "from a discovered label" — which is a minor inaccuracy in otherwise tight prose.

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 zero-parameter listing tool with an output schema, the description covers purpose, contents, and next steps, which is enough to call it correctly. Only the absence of any authorization or read-only framing keeps it short of fully complete without annotations.

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 and the schema is an empty object, so there is nothing to disambiguate; the baseline of 4 applies. The description correctly implies no filtering arguments exist by saying it returns ALL labels.

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 opens with a specific verb and resource ("List all Gmail labels") and clarifies the resource with "(folders)" for agents unfamiliar with Gmail terminology. The second sentence narrows scope to both system and user-created labels, so an agent knows exactly what enumeration it gets.

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?

It positions the tool in a workflow: discover labels here, then use gmail_list_inbox to read messages and gmail_manage_labels/gmail_manage_labels_bulk to change labels. That is clear follow-up guidance, but it never states when-not to call this tool (e.g., if labels are already known) or that no other label-listing alternative exists.

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