Skip to main content
Glama

maket_gmail

Connect Gmail to search and read messages, download attachments, and compose drafts from Maket documents. Requires OAuth; drafts are reviewed and sent from Gmail.

Instructions

When to use: connect Gmail, search/read mail, download an attachment, or create a draft from a Maket document. All actions except connect require an active OAuth session — call connect first.

connect — restore the refresh token if present, otherwise open the browser for OAuth consent. Pass with_read=true to also request inbox access (drafts are always granted). search — list subject/from/date for messages matching a Gmail query. Capped at 50. Requires with_read=true at connect time. read — fetch one message by id: headers, body (3000-char truncated), attachments listing. Requires with_read=true at connect time. fetch_attachment — download one attachment (id + attachmentId from a prior read). Images land in the Maket asset library (validated, optimized, thumbnailed, metadata row). Other files (PDF, zip, docx, …) drop into /attachments/ untouched. Requires with_read=true at connect time. draft — compose a Gmail draft from a document page. Charte tokens resolve to literals, assets inline as base64, listed docs attach as PDFs. Maket never sends — the user reviews and sends from Gmail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoFor draft: cc. Falls back to doc.meta.emailCc.
idNoFor read: Gmail message id (from search results).
toNoFor draft: recipient. Falls back to doc.meta.emailTo when omitted.
bccNoFor draft: bcc. Falls back to doc.meta.emailBcc.
docNoFor draft: Maket document to use as the email body.
pageNoFor draft: 1-based page number within the document.
queryNoFor search: Gmail query (same syntax as the UI: from:, subject:, after:, etc.).
actionYesOperation to run. See the tool description for the action table.
qualityNoFor draft: PDF quality preset for attachments. Default screen (smaller).
subjectNoFor draft: subject. Falls back to doc.meta.emailSubject.
categoryNoFor fetch_attachment (image branch only): category tag saved with the asset row. Default email-attachment.
filenameNoFor fetch_attachment: override the saved filename. Defaults to the name reported by Gmail.
overwriteNoFor fetch_attachment: replace an existing file (asset or non-image drop) when set. Default false.
with_readNoFor connect: also request read access (inbox search + message read). Default false — Maket only creates drafts.
maxResultsNoFor search: cap on results. Default 10, max 50.
attachmentsNoFor draft: names of other Maket docs to attach as PDFs. Falls back to doc.meta.emailAttachments.
attachmentIdNoFor fetch_attachment: Gmail attachment id from a previous action=read call.
Behavior4/5

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

With no annotations, the description fully discloses behavior: OAuth dependency, result caps (50 messages, 3000-char body truncation), side effects (asset library ingestion for images, raw drop for others), and that drafts are never sent. It could mention error handling or rate limits but covers the critical aspects.

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?

The description is well-structured with a lead-in sentence and a bullet list of actions. It front-loads critical guidance (connect first). Some redundancy exists (e.g., 'Requires with_read=true at connect time' repeated thrice), but every sentence adds information without fluff.

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?

Given 17 parameters, no output schema, and no annotations, the description covers tool usage comprehensively. It explains each action's inputs, prerequisites, and results. It could specify return formats or error states, but for the complexity, it provides sufficient context for an agent to use the tool 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 baseline is 3. The description adds value by grouping parameters per action (e.g., draft parameters with fallback logic, connect's with_read toggle, search's query syntax). It explains parameter interactions beyond the schema, such as when fields like 'category' apply only to image attachments.

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 explicitly states the tool's purpose: 'connect Gmail, search/read mail, download an attachment, or create a draft from a Maket document.' It enumerates five distinct actions with specific verbs and resources, distinguishing it from sibling tools (none of which mention Gmail).

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?

The description starts with 'When to use:' and clearly states the prerequisite: 'All actions except connect require an active OAuth session — call connect first.' It provides action-specific requirements (e.g., with_read=true for search/read). However, it lacks explicit when-not-to-use or alternatives, though sibling tools don't overlap.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ng-galien/maket'

If you have feedback or need assistance with the MCP directory API, please join our Discord server