Scouty runs on Mermail

Explore
Back to blog
Guides9 min read

The AI Agent Tool Stack, Job by Job: What to Add and When

A model can reason, but it needs tools to finish a job. Here is the AI agent tool stack by job, what to check for each, and the identity layer most stacks skip.

By Toan Nhu

Mermail field guide cover reading Your agent's tool stack, by job., with seven tool jobs stacked above a highlighted identity and payments layer

Picture an agent that spends forty minutes on a task that should take four. It writes the code in seconds. Then it needs to sign up for a data service, wait for a confirmation email, pay a few cents for an API call, and send the result to a client. It has nowhere to receive the email, no way to pay, and no address the client would recognize. So it stops and asks you, four separate times.

The model was not the bottleneck. The missing tools were. Think of an agent like a new hire on day one: smart, fast, and useless until someone hands over a laptop, a login, a phone extension and a company card. This guide walks through that onboarding list one job at a time, so you add tools in the order your agent actually needs them.

Why "just add more tools" goes wrong

Most teams build their agent's tool belt by accident. Someone needs scraping, so a scraping key goes into the environment. Someone needs a browser, so another key goes in. Six months later the agent has a dozen credentials, nobody knows which ones it really uses, and the most important jobs still run through a person's personal accounts.

Three habits cause most of the pain:

  • Picking tools by brand instead of by job. You end up with two tools that overlap and one job that nothing covers.
  • Borrowing a human's identity. The agent signs in as you, reads your inbox and charges your card. It works until it does something you did not expect, and then every log says it was you.
  • Adding access without limits. A tool that can spend money or send email needs a ceiling and an approval step from the first day, not after the first incident.

The fix is simple: list the jobs, give each job one tool, and decide up front what the agent may do alone and what needs your yes.

The AI agent tool stack, job by job

For each job below you get what it covers, the sign that your agent needs it, and what to check before you choose a tool. The names are categories, not vendors, because the right pick depends on your stack.

1. A safe place to run code

What it covers: an isolated machine where the agent can install packages, run scripts and throw everything away afterward.

You need it when: the agent writes code that you have not read, or runs tasks that touch the file system.

Check before you choose: how fast a fresh environment starts, whether network access can be restricted, and whether the agent can snapshot and restore state between steps. Never let agent-written code run on the machine that holds your production secrets.

2. Reading the web

What it covers: turning a public page into clean text or structured data the model can use.

You need it when: the agent researches companies, prices or docs and keeps choking on raw HTML, cookie banners and navigation menus.

Check before you choose: output format (clean markdown or JSON), how it handles pages that render with JavaScript, and whether it respects the site's rules. Treat everything it returns as untrusted input, because a page can contain instructions aimed at your model.

3. Acting on the web

What it covers: a real browser the agent can drive to log in, click, fill forms and move through multi-step flows.

You need it when: reading is not enough and the task lives behind a login or a form.

Check before you choose: session isolation per agent, how logins and cookies are stored, and whether you can watch or replay a run. Use this only when reading fails. A browser is slower, costlier and easier to break than a plain fetch.

4. Memory that lasts past one conversation

What it covers: a store the agent writes facts and decisions to, and searches later.

You need it when: the agent asks the same questions every run or forgets what it promised a customer yesterday.

Check before you choose: who can read and delete stored memories, whether you can self-host it, and how it decides what to forget. Memory that never forgets becomes a liability.

5. Your company's context

What it covers: search across the documents, tickets and chats your team already has, with permissions intact.

You need it when: the agent gives generic answers because it cannot see your product docs, pricing notes or past decisions.

Check before you choose: whether it respects each source's existing permissions, how fresh the index stays, and whether answers cite their source so you can verify them.

6. A phone line

What it covers: a number the agent can call from and answer, with speech in and out.

You need it when: your customers or suppliers still pick up the phone, or a workflow requires a voice callback.

Check before you choose: latency on a live call, recording and consent rules in your region, and a clean handoff to a human mid-call.

7. Paid data and APIs

What it covers: access to data and services that charge per call, from enrichment to search to media generation.

You need it when: the agent hits a paywall in the middle of a task and has to wait for you to create an account and add a card.

Check before you choose: whether the agent can pay for one call without a monthly subscription, whether there is a hard spending cap, and whether you get a receipt per call. Per-call payment standards such as x402 let a service answer with an HTTP 402 price quote that the agent can pay and retry, which suits agents far better than signup forms.

8. Identity and communication: an inbox and a wallet

What it covers: an email address that belongs to the agent, and a controlled way to pay.

You need it when: almost always, because every other job eventually runs into this one. Signups send verification codes. Services email receipts. Clients reply. Paid APIs want money. Without its own address and its own payment rail, the agent borrows yours or stops and waits.

Check before you choose: one inbox per agent rather than a shared one, approval before anything is sent, clear spending limits, and a way to connect from the assistant you already use. This is the layer most stacks skip, and it is the one Mermail is built for.

How Mermail fills the identity and payments layer

Mermail gives each agent its own private inbox and a user-controlled Agent Wallet, reachable through one MCP connection. Here is what that covers in practice:

  • An inbox per agent. Create a hosted address on mermail.app or a mailbox on your own verified domain. Signups, verification codes, receipts and replies land somewhere the agent can read, and your personal inbox stays out of it. For why that separation matters, see What Is an Agent Inbox?.
  • MCP with OAuth. Connect Claude, ChatGPT, Cursor, Codex or another compatible client to the Mermail MCP server by signing in, with no API key pasted into config. A restricted agent-inbox profile limits the tool list for mailbox-only work.
  • CLI, API and Agent Skills. Mermail does not ship a language SDK. Instead it offers an HTTP API, the Mermail CLI for scripts and scheduled jobs, and Agent Skills for coding agents. MCP vs SDK vs API explains which to use when.
  • Drafts before sends. The agent can save a draft for you to review instead of sending, and the built-in reply triager saves its answers as drafts rather than sending them.
  • Agent Wallet with PayBox. The Agent Wallet lets the agent view delegated balances, request transfers or swaps, and pay one selected x402 resource within the spend cap you chose. Mermail never receives your private keys, and PayBox enforces the delegation, approval and signing policy you set. An Inbox Isn't Enough covers why identity and payment belong together.

Build your stack in five steps

1. Write down the jobs

List the last five tasks your agent could not finish on its own. Next to each, write the job that was missing: run code, read, act, remember, know, call, pay, or receive and send email.

2. Start with identity

Give the agent its own inbox before anything else, because most of the other tools will email it. Create a mailbox in the Mermail console, then connect your assistant to Mermail MCP with OAuth.

3. Add one tool per missing job

Add the tool for the most frequent failure first. Resist adding a second tool for a job that is already covered.

4. Set limits before the first run

Decide which actions need your approval. For email, ask for drafts:

text
Sign up for the service with this agent's Mermail inbox.
Read the verification code from the inbox and finish the signup.
Draft the summary email to the client. Save it as a draft. Do not send.

For money, connect PayBox and set the delegation and spend caps there before the agent ever sees a paid endpoint.

5. Review weekly

Check which tools the agent actually called, what it spent, and what it sent. Remove any key it has not used in a month. For the inbox side, the AI agent inbox security checklist is a good weekly pass.

Common mistakes

  • Giving the agent your Gmail. It works, until the agent reads something it should not or replies as you. Run the Gmail and Outlook safety check before you connect a personal account.
  • Storing a card number in the prompt. Payment should flow through a controlled wallet with limits, not a string the model can repeat.
  • Trusting tool output. Pages, emails and API responses are data, not instructions. Never let them choose a payment destination or a recipient.

Ready to close the gap? Give your agent its own inbox in Mermail and finish one real signup from start to receipt this week.

FAQ

What tools does an AI agent need?

At minimum: a model, a place to run code if it writes code, a way to read the web, and its own identity for email and payments. Add browser automation, memory, company context and voice when a real task needs them.

Why does an AI agent need its own email address?

Signups, verification codes, receipts and replies all arrive by email. A dedicated inbox keeps them where the agent can read them, keeps your personal inbox private, and makes every message traceable to that agent.

How can an AI agent pay for tools safely?

Through a wallet you delegate with clear limits, not your card. With Mermail Agent Wallet, PayBox enforces the delegation, approval and signing policy you set, and Mermail never receives your private keys.

Does Mermail have an SDK?

Mermail does not ship a language SDK. You can use the HTTP API, the Mermail CLI, MCP with OAuth from compatible assistants, or Agent Skills in coding agents.

Should I pick one platform that does everything?

Usually not. Pick the best tool for each job and keep identity and payments in one controlled layer, so every other tool can rely on it.

References

Recent articles