Skip to main content
Glama
hoaaah
by hoaaah

gmail_list_labels

Read-onlyIdempotent

Retrieve a complete list of Gmail labels, covering system labels such as INBOX and user-created custom labels, returned as JSON with id, name, and type.

Instructions

List all Gmail labels (system labels like INBOX plus user-created ones).

Returns: str: JSON list of {id, name, type}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safe, read-only, idempotent nature of the tool. The description adds useful behavioral details beyond that: it returns a JSON list rather than a single object, and it includes both system and user-created labels rather than only user-defined ones.

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?

The description is compact and front-loaded, with a clear scope statement followed by a concise return format. There is no filler or redundant restatement of the tool name.

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?

For a simple, no-argument listing operation, the description covers scope and return shape, while annotations cover safety and idempotence. Nothing essential is missing for an agent to invoke this tool correctly.

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 input schema has no actual parameters apart from an empty required 'params' wrapper, so there are zero meaningful parameters to document. The baseline of 4 applies because the schema is self-explanatory and no parameter-level description is necessary.

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 adds meaningful scope by noting both system labels like INBOX and user-created ones. This clearly distinguishes it from sibling tools that operate on messages, drafts, calendars, or drives.

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?

The intended usage is strongly implied: use this tool when you need the full set of Gmail label IDs/names/types. There is no sibling tool for listing labels, so an explicit alternative is unnecessary, though the description stops short of stating exactly when an agent should prefer this over other Gmail operations.

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

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/hoaaah/Google-Workspace-MCP-Server'

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