Skip to main content
Glama

get_labels

Retrieve all Gmail labels for the authenticated user to organize and categorize email data. Returns label details including ID, name, type, and message counts.

Instructions

Get all Gmail labels for the authenticated user.

Returns: List of label objects with id, name, type, and message counts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Lacks annotations, so the description carries full disclosure burden. It clarifies scope ('all Gmail labels', 'authenticated user') but omits safety confirmation (read-only nature), rate limits, or whether system labels are included. The return value description is redundant since 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?

Front-loaded action sentence followed by return description. Efficient structure with minimal waste, though the Returns sentence adds limited value given the existence of an output schema.

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?

Adequate for a simple read operation with no parameters and existing output schema. Covers the essential operation scope, though additional context on label types (system vs. user) would improve completeness given zero annotation coverage.

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?

Input schema contains zero parameters. Per rubric, baseline score is 4 for zero-parameter tools. The description implicitly confirms no filtering is possible ('all Gmail labels'), which aligns with the empty 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?

Provides specific verb (Get), resource (Gmail labels), and scope (all labels for authenticated user). However, it does not explicitly differentiate from sibling tools like 'search' or 'list_unread' that might also interact with labels in different contexts.

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

Usage Guidelines2/5

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

Offers no guidance on when to invoke this tool versus siblings like 'search' or 'list_unread', nor does it mention prerequisites such as requiring OAuth scopes or when label data is needed for subsequent operations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fred-drake/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server