Skip to main content
Glama

AIsa Agent Mail

List All Drafts

get_agentmail_drafts
Read-onlyIdempotent

Lists unsent drafts across every inbox in the account. Returns count, limit, next_page_token and drafts; page with next_page_token. Each draft carries draft_id, inbox_id, to, cc, bcc, subject, preview, attachments, send_status and send_at. List items carry preview only — text and html come from get_agentmail_draft. This is the organization-wide view spanning every inbox in the account. Every AIsa caller shares one AgentMail account, so this reaches inboxes other callers created; the inbox-scoped twin get_agentmail_inbox_drafts is the one to use when a single inbox is meant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoTimestamp after which to filter by.
limitNoLimit of number of items returned.
beforeNoTimestamp before which to filter by.
labelsNoLabels to filter by.
ascendingNoSort in ascending temporal order.
page_tokenNoPage token for pagination.
AuthorizationYesBearer authentication

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as read-only, idempotent, and non-destructive, but the description adds meaningful behavioral detail: the exact response shape, pagination via next_page_token, and the fact that list items carry only preview while full text/html requires get_agentmail_draft. No contradiction with annotations.

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 somewhat long and repeats the 'every inbox in the account' idea twice, but it is well-structured, front-loads the core purpose, and each sentence adds distinct information such as response fields, preview-only behavior, and sibling routing.

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?

Given the rich output schema, annotations, and sibling context, the description covers everything needed to select and call the tool correctly. It explains scope, pagination, list-vs-detail behavior, and the discriminant between this and the inbox-scoped sibling.

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 description coverage is 100%, so the schema documents all seven parameters. The description adds value by explaining pagination and response fields, but it provides no additional detail about the parameters themselves. This matches the baseline for fully covered schemas.

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 precise action and resource: listing unsent drafts across every inbox in the account. It clearly distinguishes itself from the inbox-scoped sibling get_agentmail_inbox_drafts, so an agent can identify this tool without opening schemas.

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?

The description explicitly explains that this is the organization-wide view spanning every inbox, and that the inbox-scoped twin get_agentmail_inbox_drafts should be used when a single inbox is intended. It also notes that all AIsa callers share one account, giving a concrete reason to prefer the scoped alternative.

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.

Resources