Skip to main content
Glama

gmail_list_labels

List Gmail labels with their IDs so you can select the correct label when configuring filters.

Instructions

List the labels in the account, with the ids that label filters need.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>"
    },
    "name": "gmail_list_labels"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesWhich connected account (alias) to act as, e.g. "business".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; "List" implies a read-only, non-destructive call, which is useful. It says nothing about permissions required, pagination, ordering, whether system labels are included, or what the call returns beyond ids.

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?

One sentence with no filler, front-loading the action and resource and appending the motivating detail about label ids. Nothing could be removed without losing information.

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 one-parameter read tool this is close to sufficient, and the mention of ids hints at the return content. However, with no output schema, the description does not describe the returned label shape (names, types, system vs custom) that an agent would need to use the result correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single account parameter, so the schema already defines the alias semantics, and the description's "in the account" merely echoes that. It adds no format or aliasing detail beyond what the schema provides, making the baseline score appropriate.

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?

"List the labels in the account" gives a specific verb plus resource and scopes it to a single connected account, so an agent can immediately tell this apart from gmail_list_drafts, gmail_get_message and other siblings. It stops short of explicitly naming what it is not, so it lands just below the top mark.

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 clause "with the ids that label filters need" tells the agent why it would call this tool: to obtain label ids for downstream filtering. That is concrete usage context, but no exclusions or alternative routes (e.g., resolving labels by name elsewhere) are mentioned.

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