Skip to main content
Glama

gmail_unread_count

Count unread Gmail conversations in a specified folder or label to quickly assess inbox backlog and prioritize email triage.

Instructions

Number of unread conversations in a folder or label, as shown in the Gmail drawer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoFolder or label name ('inbox' = the inbox / Primary tab).inbox

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It implies the operation is read-only and reflects Gmail drawer state, but does not disclose return type, prerequisites, or whether the count is cached or real-time.

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 wastes no words. The core action and scope are immediately clear.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only count tool with full schema coverage and no output schema, the description is nearly complete. It conveys the return value implicitly but could explicitly state that it returns an integer count.

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%, so the parameter is fully documented in the schema. The description adds no semantics beyond what the schema already provides (folder/label).

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?

States a specific resource (unread conversations) and scope (folder or label). It distinguishes itself from list/search siblings by focusing on a count, but does not explicitly name alternatives.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool versus alternatives like gmail_list or gmail_search. The description is a bare statement of purpose with no context or exclusions.

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

Deploy Server

Other Tools