Every tool call is a line item now: budgeting your agent's API calls like tokens
Google is moving Workspace agents onto metered MCP servers, with dates attached. A budget wrapper you can copy, a caching pattern, and where a cheap GLM model cuts the call count.
Disclosure: this article links to my Z.ai referral invitations, and I may earn credit if you sign up. Details below.

The invoice nobody expected
Here is a scenario, not a billing record. A team lets an agent loose on a shared mailbox. It reads mail, summarizes threads, drafts replies, and it works. Months later the first metered invoice arrives and the agent's curiosity, every search and every thread fetch, is a line item. The team did nothing wrong except never counting. The rules that make this scenario plausible were published by Google on November 24, and the counting is what this article is about.
Referral disclosure: the Z.ai Coding Plan link in this article is my referral link (code R0K78RJKNW), and I get credit if you sign up. Z.ai's own terms: 10% off a first paid order for eligible new accounts. Z.ai Coding Plan
Checked against Z.ai's docs on 2 Dec 2026.
Read next: The alerts do not sleep anymore: a two-lane triage for agent-speed attacks
The two dates that matter
Google's Workspace Updates blog announced that Workspace MCP servers for Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat and Tasks, plus the official Workspace CLI, are now generally available, alongside standardized usage tiers and a new Workspace AI Tools Addendum. [1] Two dates follow. From February 1, 2027, AI agents must use the Workspace MCP servers or the CLI to access Workspace data instead of calling the REST APIs directly, and agents that keep calling REST APIs get capped at Standard tier quotas. Developers must also flag OAuth clients used by AI-powered agents. [1] From April 1, 2027, billing starts on the Scaled tier for the Gmail, Calendar and Drive APIs and for the CLI and MCP servers. [1] Announcement coverage that says charges start in February compresses two dates a year apart, so keep them separate.
What the tiers say
The Standard tier costs nothing, needs no billing account, and includes up to 5,000 requests per day, per project, per product across the generally available MCP servers, plus per-minute rate limits. [2] That cap is per project, not per user, so every user of one agent shares the same 5,000. Google's documentation also warns that some MCP tools count as multiple requests because one tool call can make several API calls underneath. [2] On the Scaled tier, REST APIs keep daily no-charge allowances, but Gmail, Calendar and Drive MCP usage has no daily no-charge allowance and is billed from the first request, starting April 1, 2027. [2] For the dollar figures, a dev.to analysis of Google's pricing page reports buckets named Light at $0.10, Medium at $0.20, Plus at $0.25 and Premium at $0.50 per 1,000 requests, with Gmail's search_threads and get_thread in Premium and create_draft in Medium; I did not find those numbers on the two Google pages above, so treat them as that author's reporting. [3] Google says over 99% of active developers fit the free Standard tier, which is a vendor figure. [1] The structural fact stands either way: the path agents are required to use is the one with no free allowance once you pay.
Why agents are easy to meter into trouble
Here is my reasoning. A human opens three emails. An agent loops: search, open, read, maybe search again, then draft, and each step can be a billable request, some counting as several. [2] Retrieval habits make it worse, because an agent that fetches ten full threads to answer one question has spent ten Premium-class calls on one answer, at the reported bucket prices. [3] And since the free cap is per project per day, an agent with many users can exhaust it before lunch while each user thinks they barely touched it. [2] None of this is an argument against agents. It is an argument for counting.
A budget wrapper that runs
The class below sits between the agent and the tool. It counts requests per project per day, it knows that some tools cost more than one request, it serves repeat calls from a cache without touching the meter, and it raises instead of silently overspending. It is plain Python with a built-in test, and the test passes locally. It calls no real API. One caution: caching Workspace data has limits under the new AI Tools Addendum, which restricts storing certain derived data for extended periods, so keep cache lifetimes short and read the addendum for your case. [1]

budget.py
# budget.py (plain Python 3, no dependencies)
# A per-project, per-day counter between your agent and a metered API.
import time
class ToolBudget:
def __init__(self, daily_limit, cost_of):
self.daily_limit = daily_limit
self.cost_of = cost_of # tool name -> requests one call counts as
self.day = time.strftime("%Y-%m-%d")
self.used = 0
self.cache = {}
def _rollover(self):
today = time.strftime("%Y-%m-%d")
if today != self.day:
self.day, self.used = today, 0
def remaining(self):
self._rollover()
return self.daily_limit - self.used
def call(self, tool, key, fn):
"""Run fn() for one tool call, or raise when the budget is out.
A cached result is served without touching the meter."""
self._rollover()
if key in self.cache:
return self.cache[key], "cache"
cost = self.cost_of.get(tool, 1)
if self.used + cost > self.daily_limit:
raise RuntimeError("budget out: %s needs %d, %d left"
% (tool, cost, self.remaining()))
result = fn()
self.used += cost
self.cache[key] = result
return result, "live"
if __name__ == "__main__":
# Google's docs say some MCP tools count as multiple requests.
costs = {"search_threads": 10, "get_thread": 1}
b = ToolBudget(daily_limit=25, cost_of=costs)
calls = {"n": 0}
def fake_api():
calls["n"] += 1
return {"subject": "quarterly plan"}
r1, how1 = b.call("search_threads", "q:quarterly", fake_api)
r2, how2 = b.call("search_threads", "q:quarterly", fake_api)
assert how1 == "live" and how2 == "cache" and calls["n"] == 1
assert b.remaining() == 15
b.call("search_threads", "q:other", fake_api) # used: 20
try:
b.call("search_threads", "q:third", fake_api) # 20 + 10 crosses the cap
raise SystemExit("should have raised")
except RuntimeError as e:
print("budget ok:", e)
Summarize once, fetch less
The cheapest call is the one you never make, and the second cheapest is the one a small model makes instead of a big one. My proposal for mail-heavy agents is a digest pattern: when a thread is fetched, have GLM 5.3 Flash compress it once into a short brief, and let the agent reason over the brief for follow-up questions instead of fetching the thread again. Flash is the volume candidate here for the same vendor-described reasons as in the triage article: natively multimodal, 1M context, and three times the Coding Plan quota of GLM-5.3 per Z.ai's own pages. [4] [5] Keep the flagship for the final synthesis, where a wrong answer is the expensive kind. This is a design proposal, not a measured saving.
What this does not do
The wrapper does not get you out of the MCP requirement, it does not avoid billing, and it does not raise any quota. Higher quotas require the Scaled tier or an internal-use exception, plus a quota increase request, per Google's documentation. [2] What it does is waste: duplicate fetches, unbounded loops and agents that never learned to stop. It also cannot tell you your real usage, and for that Google points to the new API quotas dashboard and cost estimator in the Cloud console. [2]
What I did not measure
I have no metered Workspace bill and no agent of my own to point at one, so there are no cost measurements in this article. Every number above comes from Google's announcement, Google's usage-tier documentation, or the dev.to report, and each is attributed where it appears. If you run an agent against these APIs, your dashboard numbers are the ones that matter.
Starting on the plan
Starting on the plan is optional, and this is the same disclosure again: the invitation links in this article are my referral links, and I get credit if you sign up through them. According to Z.ai's own campaign rules, an invited user who registers through an invitation link or code and pays for a first GLM Coding subscription gets a 10% instant discount on that order. It applies only to new accounts or accounts with no paid subscription history, once per user. It does not apply to renewals, upgrades or downgrades, and it cannot be combined with other first-order discount campaigns. [6] I have added nothing beyond those rules, and Z.ai can change them.
Five minutes, today
Pick one automated workflow that touches a metered API and count its calls for one day, by hand if needed. Wrap one tool in the budget class with your real daily cap. Then look at the cache hits after a week and ask why those calls were ever made twice.
When do the new rules actually bite?
February 1, 2027 is when agents must use the Workspace MCP servers or CLI, with REST-calling agents capped at Standard quotas. April 1, 2027 is when Scaled tier billing begins, including first-request billing for Gmail, Calendar and Drive MCP usage. [1] [2]
Is the Standard tier really free?
Google says the Standard tier has no cost, needs no billing account, includes up to 5,000 MCP requests per day, per project, per product, and that Standard tier usage never produces a charge. [2]
Does the invite discount apply to upgrades or renewals?
No. Z.ai's campaign rules say renewals, upgrades, downgrades and follow-up orders are not eligible, and the discount applies once per user to a first paid order. [6]