Count the work inside a Gmail agent loop
By Nick Potter | The Curious Margin
An email assistant can make three searches, inspect a draft and fail to finish a reply. A dashboard counting one user request misses the work. A dashboard counting successful HTTP responses can miss the failure.
Google's 24 November Workspace announcement introduces generally available managed MCP servers and a standardized usage model. The rollout makes this a timely design question: what should an email product count when an agent turns one intention into several operations?
My recommendation is to keep user tasks, tool attempts, provider usage and completed mail outcomes separate. Collapsing them makes both reliability and capacity harder to explain.
Start with the calendar, then the units
The Workspace rollout roadmap dates the tier launch to 24 November 2026. It places MCP requirement enforcement for AI agents on 1 February 2027, and billing and quota enforcement on 1 April 2027. This is a planning window, not a statement that every agent request starts generating charges today.
Standard Tier remains free within its limits. Scaled Tier changes the capacity and billing model. These are Cloud project choices, so inspect the actual project configuration before estimating an application's exposure. A product announcement is not evidence that your particular account has completed the rollout.
For Gmail, the current quota documentation assigns most MCP calls one billing unit, but search_threads and list_drafts each count as ten. Those are MCP accounting weights. They should not be substituted for the separate quota-unit costs listed for REST methods.
Follow one fictional task through two plans
Suppose a user asks an assistant to find a conversation and prepare a reply. Compare these deliberately invented plans, counting only the named operations:
| Plan | Search calls | Draft-list calls | Weighted MCP units |
|---|---|---|---|
| Repeated broad discovery | 3 | 1 | 40 |
| One focused search, then reuse its result | 1 | 1 | 20 |
The arithmetic is three times ten plus ten, versus ten plus ten. It is not a measurement of Google's tools, a complete workflow estimate or a forecast of a customer's bill. Other calls, model inference and application infrastructure are excluded.
The second plan saves work only if it still finds the right conversation. A cheap answer based on the wrong thread fails the product requirement. Preserve a correctness check alongside the usage comparison.
Useful experiments would vary how much context the user provides, whether the desired thread exists and whether the first search is ambiguous. Compare bounded search refinement with broad repetition. Do not assume caching or reusing an earlier result is safe after the user changes the request.
Read the tool result as well as the HTTP status
Google documents a consequential distinction for Gmail MCP: a failed tools/call can return HTTP 200 with isError: true. On Scaled Tier, those responses also count toward billing when billing starts. Successful HTTP transport therefore does not establish successful tool execution.
Classify the failure before deciding what happens next. An argument error needs corrected arguments. A permissions failure needs an access decision. A transient service problem may justify a bounded retry. Sending the same invalid request repeatedly gives the model activity without giving the user progress.
Keep the task identifier, attempt number, tool name, HTTP status, tool-error result and terminal outcome in a compact operational record. Avoid logging message bodies or credentials just to count operations. Record estimated accounting weights with their documentation date, since provider rules can change.
Give the task a terminal outcome
An assistant should finish with a specific state such as draft prepared, clarification needed, access unavailable or task failed. “Six tool calls completed” is an implementation report, not an answer to whether the requested reply exists.
For operational review, compare completed tasks with attempted tasks, and show usage for failed tasks separately. Dividing total work only by successes can reveal the cost of failures, but it should sit beside the completion rate. Otherwise an improvement caused by abandoning difficult requests early can look like better efficiency.
Human clarification can be a useful outcome. Count it openly rather than treating it as either an invisible failure or a finished reply. Likewise, preparing a draft and sending a message are different commitments and need separate authorization.
Carry the distinction into email events
I build SendPanda. Its webhook documentation recommends returning 2xx after durable receipt, then processing side effects asynchronously. That is a different service boundary, but the same diagnostic discipline helps: acknowledgment tells you what that boundary accepted, not everything the application later accomplished.
Do not equate a webhook receipt, an email delivery event, a completed support task and a person's reading the message. Keep the relevant evidence attached to each claim. This comparison does not establish a Gmail integration or interchangeable quotas between providers.
A sensible trial would record a small set of controlled tasks, their intended outcomes and their complete operation traces. Then change one planning rule and compare correctness, completion and weighted usage together. I have not run that experiment. The design objective is fewer unnecessary operations while preserving the work the user actually asked the product to finish.
Comments
Join the discussionNo comments yet. Be the first to comment.