gmail_listLabels
Retrieve a list of all Gmail labels from the user's mailbox to organize emails and filter messages effectively.
Instructions
List all Gmail labels in the user's mailbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Retrieve a list of all Gmail labels from the user's mailbox to organize emails and filter messages effectively.
List all Gmail labels in the user's mailbox.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The readOnlyHint=true annotation already signals that this is a safe read operation. The description does not add any extra behavioral context, such as pagination, return format, or handling of empty mailboxes, but it is consistent with the annotation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is one sentence, directly states the action, and contains no unnecessary words. It is perfectly concise and front-loaded with the verb.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (no parameters, read-only, simple listing), the description is largely sufficient. However, it does not mention what the return structure looks like or any potential limitations (e.g., large label counts), though this is not critical.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, so there are no parameter semantics to explain. Per the rubric, a baseline score of 4 is appropriate when there are no parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'List' and identifies the resource as 'all Gmail labels in the user's mailbox'. It clearly distinguishes this tool from siblings like gmail_createLabel, which creates labels.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus alternatives. It simply states the function without mentioning any context, such as when a user should call this instead of gmail_search or gmail_get.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dave-Nguyen-PM/google-workplace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server