Skip to main content
Glama

gws-mcp__gmail_create_label

Create a Gmail label, or find it if it already exists. Nested labels use '/' in the name (e.g. 'Alerts/Invoices'). Returns the label including its ID, which can be used with gmail_label_message; when a label with that name already exists the existing label is returned as found (existed: true), so it is safe to call once per run without listing labels first.

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": {
      "name": "<name>"
    },
    "name": "gws-mcp__gmail_create_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe label name to create
accountNoOptional email address of the connected account to use (e.g. 'user@gmail.com'). If omitted, the default account is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses find-or-create idempotency, the 'existed: true' signal on a matched name, the nested-label '/' convention, and that the returned ID feeds gmail_label_message. For a non-destructive create (readOnlyHint=false, destructiveHint=false) that is exactly the extra context an agent needs to call it confidently.

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?

Three sentences, front-loaded with the core action, then the naming convention, then the return value and idempotency guarantee. Every clause carries information an agent would otherwise have to discover by trial.

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?

Even without an output schema, the description states what comes back (the label including its ID) and how duplicates resolve, and it explains the downstream consumer of that ID. Nothing material for correct invocation on a 2-parameter create tool 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?

Schema coverage is 100%, so the baseline is 3; the description earns a bump by explaining that a '/' in the name expresses nesting, which the schema's "label name to create" text does not convey. The account parameter is left entirely to the schema.

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 and resource ("Create a Gmail label") plus an explicit upsert twist ("or find it if it already exists"), which distinguishes it from gmail_update_label, gmail_list_labels and gmail_delete_label without needing their schemas.

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?

Gives real operational guidance: it is safe to call once per run and no prior gmail_list_labels call is needed, and it points forward to gmail_label_message. It stops short of naming gmail_update_label as the alternative when the label exists and you want to change it, so the boundary against siblings is not fully drawn.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.