Skip to main content
Glama
Gmail MCP Server

Gmail MCP Server

by Abhitkumar89

list_labels

Retrieves all Gmail labels so you can identify and organize messages by category. Use it to find label IDs before applying, filtering, or managing labels through OAuth2-authenticated access.

Instructions

List Gmail labels (requires OAuth2 config)

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.1.0

TDQS

A3.5/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 disclosure burden. It does add one genuinely useful behavioral fact not present in any structured field: an OAuth2 configuration prerequisite. It says nothing about whether the operation is read-only (only implied by 'List'), how results are ordered, or whether system labels are included, leaving real gaps.

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?

A single short sentence with the resource front-loaded and no wasted wording. The parenthetical prerequisite is slightly ambiguous in phrasing ('requires OAuth2 config' could read as a precondition to calling or as something the tool returns), which keeps it from a 5.

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

Completeness3/5

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

For a trivial zero-parameter tool with no output schema, the description covers the what and the auth prerequisite. It still omits what the caller gets back (label names, IDs, types) and whether system labels are included, which matters because label identifiers are typically needed by other tools.

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 there is no parameter meaning for the description to add; the baseline for a parameterless tool applies. Nothing in the description misrepresents the input surface.

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 states a specific verb and resource: 'List Gmail labels'. That is unambiguous and clearly distinct from the sibling list tools (list_attachments, list_email_templates, list_unread_emails), which target different resources. It stops short of 5 only because it adds no scope detail (all labels vs. user labels only).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance and no named alternative. However, for a zero-parameter enumeration tool the intended usage is strongly implied by the name and the single-sentence description, so this is minimum-viable rather than misleading.

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