Skip to main content
Glama
jeffmm

gmail-fast-mcp

by jeffmm

get_or_create_label

Retrieve a Gmail label by name or create it when missing, ensuring a label exists for organizing emails.

Instructions

Get an existing label by name or create it if it doesn't exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the label to get or create
label_list_visibilityNolabelShow, labelShowIfUnread, or labelHide
message_list_visibilityNoshow or hide

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does disclose the key conditional side effect of creating a label when absent, but it does not clarify whether optional visibility parameters are ignored for existing labels or whether any modification occurs on an existing label.

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?

A single, front-loaded sentence that conveys the tool's core behavior without unnecessary words. Every part of the description earns its place.

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?

Given an output schema exists and the input schema is fully described, the description is mostly sufficient. The main gap is the lack of clarity around behavior when the label already exists, particularly whether optional visibility settings are applied only on creation.

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?

The input schema already provides descriptions for all three parameters, so the tool description adds little parameter-level meaning beyond the schema. The name parameter's purpose is reinforced by the description, but no new semantic details are added.

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 states a specific verb-resource pair and clarifies the conditional nature: get by name, create only if missing. This clearly distinguishes it from sibling create_label by conveying an idempotent upsert behavior.

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

Usage Guidelines3/5

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

The use case is implied: call this when you need a label by name and want it created if it doesn't exist. However, there is no explicit guidance about when to prefer create_label or update_label instead, nor any exclusions or alternative routing.

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