Skip to main content
Glama
gohluke

Dayze MCP

by gohluke

Search Gmail (read-only)

search_gmail
Read-only

Find messages in connected Gmail inboxes using Gmail search operators (from:, subject:, is:unread, newer_than:7d). Returns subject, sender, date, and snippet for each match.

Instructions

Search one of the authenticated user's connected Gmail inboxes (read-only). Reuses Integrations hub Gmail (service_connections provider=gmail). Optional account/email selects a mailbox when multiple are connected — call list_gmail_accounts first. Prefer Gmail operators: from:, subject:, is:unread, newer_than:7d, has:attachment. Returns id, subject, from, date, snippet only (no body). Follow up with read_gmail_message. Cannot send, archive, or delete. Never invent email contents. If Gmail is not connected, connect at /integrations. Requires API key or OAuth with scope context. Share tokens cannot call this tool. ($0.10; API key required)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoAlias for query
emailNoAlias for account
queryYesGmail search query, e.g. "is:unread newer_than:7d", "from:airline subject:itinerary", "receipt newer_than:30d"
accountNoMailbox email, connection id, or Google subject (from list_gmail_accounts)
max_resultsNoMax messages to return (default 10, max 20)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
accountNo
messagesYes
result_size_estimateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.28.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations confirm the safe-read profile, and the description adds substantial context beyond them: the truncated return payload (id, subject, from, date, snippet — no body), the $0.10 cost, API-key requirement, and that share tokens are blocked. That is exactly the extra behavioral signal annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and scope, then routing, then constraints — each sentence carries information. It runs dense and repeats the read-only framing already in the title, but there is little waste and no padding.

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?

For a search tool with an output schema and full annotation coverage, this is complete: it covers prerequisites, return shape, follow-up tool, hard limits, auth requirements, and cost. An agent needs nothing further to invoke it correctly.

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, but the description adds real meaning: it explains the account/email parameter selects among multiple mailboxes and requires list_gmail_accounts, and it gives concrete Gmail operator syntax (from:, subject:, is:unread, newer_than:7d, has:attachment) that shapes how query should be written.

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+resource (search Gmail inboxes) with explicit scope: one connected inbox, read-only, reusing the Integrations hub Gmail connection. It clearly distinguishes itself from neighbors like read_gmail_message (follow-up), list_gmail_accounts (prerequisite), and the import_*_gmail siblings, which are message-pulling rather than search.

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

Usage Guidelines5/5

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

Explicit when/when-not: call list_gmail_accounts first when multiple mailboxes exist, prefer Gmail operators, follow up with read_gmail_message for the body, and it cannot send/archive/delete. It even notes share tokens cannot call it and where to connect Gmail if absent — a full routing story.

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