Skip to main content
Glama

list_labels

Read-onlyIdempotent

Retrieve all Gmail labels, including system and user labels, with their IDs. Use these IDs to modify message labels or filter search results accurately.

Instructions

List every label on this account (system labels like INBOX/SENT/TRASH plus user labels), with their IDs.

Label IDs from here are what modify_message_labels and search_messages' label_ids argument expect.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  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 declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior context: the result is a complete enumeration including system labels, and its IDs are the currency expected by other tools — a cross-tool contract not captured in structured fields.

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, front-loaded with what is returned, followed by the interoperability note. No filler or restated boilerplate.

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?

The scope of labels, the presence of IDs, and the downstream consumers of those IDs are all covered; since an output schema exists, return-value formatting need not be explained. Nothing an agent needs in order to call this correctly is missing.

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 per the rubric the baseline is 4. There is nothing for the description to clarify about argument syntax.

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?

States a specific verb (list) and resource (labels) with explicit scope: every label on the account, system plus user, with IDs. An agent can immediately distinguish this from message- or thread-oriented siblings like get_message and get_thread.

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 explains the downstream purpose of the returned IDs — they feed modify_message_labels and search_messages' label_ids argument — which tells the agent why and when to call it. It does not name an explicit alternative for enumerating labels, but no plausible sibling competes for that job.

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