05Chapter 5 of 7
Free course4 min read

Give it tools.

An agent without tools is a chatbot. This chapter is about wiring it into your real systems, the CRM, the spreadsheet, the billing platform, with the smallest set of permissions it needs.


An agent without tools is a chatbot with opinions. It can read what you give it, think out loud, and tell you what it would do, but nothing in the world changes. The minute you connect it to your practice software, your calendar, and your email sender, it stops being a conversation partner and starts being a coworker. This chapter is about that connection: which tools your agent actually needs, how it reaches into the systems you already use, and the one rule that keeps the whole arrangement from blowing up in your face.

05.0

What a tool is in this world

When someone in the AI world says "tool," they do not mean Routework or n8n or Make, those are the platforms the agent runs on. A tool, in the agent sense, is a real action the agent can take: looking up a patient record in your practice management software, writing a new appointment to your calendar, sending a welcome email from your front-desk address, charging a $50 deposit on a card.

Each tool is one specific thing the agent is allowed to do in one specific system you already own. The way the agent reaches into that system is through the address you give it so it can talk to your CRM, Stripe, Google Drive, and the rest of your stack, the technical term is an API. The address is paired with the password the agent uses to log in to your tool, the technical term is an API key, or, for tools that ask the user to grant access in a browser window, an OAuth token. You do not need to remember those names. You only need to remember that each tool is a door, and behind each door is a system that will do exactly what the agent asks it to. That obedience is what makes tools powerful and what makes them dangerous — the system does not ask whether the request makes sense, it just executes it.

✱ Field note
Tools are where the work happens. The thinking is rehearsal, until the agent picks up a tool, nothing in the business actually moves.
05.1

The four kinds of tools

Almost every tool an agent will ever touch lands in one of four buckets. Once you can sort a tool into the right bucket, you can reason about it clearly, what it costs to get wrong, how careful you need to be with the password, what happens when it is slow. The four buckets are read, write, notify, and charge.

The four tool categories
What it doesDental-practice exampleIf it failsCare level
ReadLooks something up. No change to the world.Pull a patient chart from the practice software.Agent has a blind spot for one run.Low
WriteCreates or updates a record somewhere.Add the new patient row to the practice software.Wrong row written or duplicate created.Medium
NotifySends a message to a person or channel.Email the front desk that a new chart is ready.Wrong person gets a confusing email.Medium
ChargeMoves money or commits to a contract.Run the $50 new-patient deposit on a card.Real money moves the wrong way.High
The categories are ordered from least to most consequential, a charge tool can move money; a read tool can only look.

The line that matters most is the one between the first three and the last one. Read, write, and notify are reversible enough that an honest mistake is a Tuesday afternoon problem. Charge is the only category where a mistake is a phone call to a customer and a refund. When you wire a charge tool, you treat it differently, you ask for a confirmation, you log every call, you do not let the agent loop on it. A write that creates a duplicate record takes five minutes to clean up. A charge that runs twice takes a refund, a support conversation, and a note on the customer's account that the practice made a billing error. The downstream cost of charge mistakes is always higher than the transaction amount.

05.2

Picking the minimum set

The temptation, once you know the agent can have tools, is to give it every tool you can think of. Resist this. Each tool you add is another door, another password to manage, another system that might be slow or down on the morning you need it most. The right number of tools is the smallest number that lets the agent finish the job. Tools also expand the failure surface: an agent with 12 tools can fail in 12 new ways that have nothing to do with its logic. Most agents we see in production use 3 to 5 tools; the ones with 12 usually use 4 of them regularly and the other 8 are latent tripwires.

The test for whether a tool earns its place is concrete. For every tool you are about to add, ask: does the agent need this to do the real work, or am I adding it because I think the agent might want to look something up someday? If the answer is "someday," cut it. You can always add it later.

Does this tool earn its place?
YesNo
Does the work fail without it?
Wire it nowagent cannot finish otherwiseLeave it outadd later if the gap shows
Most agents we see ship with 3 to 5 tools. The ones with 12 tools usually use 4 of them and the other 8 are tripwires.

For Priya at the dental practice, the minimum set is four tools: read the practice software to check if the patient is already on file, write the new chart if they are not, book the slot in the calendar, and send the welcome email. The agent does not need access to billing yet, the deposit happens when the patient confirms the appointment in a separate flow. Four tools, not nine.

05.3

How the agent reaches your systems

Once the tools are picked, the next question is what the wiring actually looks like. The agent does not sit inside your practice software. It sits in the middle, with one foot in your data and one foot in the vendor systems of record, the practice software, the calendar, the email sender. The passwords sit in a separate vault that only the agent runtime can read.

Where the agent sits relative to your systems
Your Front DoorRoutework AgentYour Tools of Recordnew formcredsread +writebook slotsendrecapIntake formIntake formwebsite embedwebsite embedPriyaPriyaoffice manageroffice managerThe agentThe agentreads, decides, actsreads, decides, actsSecret vaultSecret vaultpasswords live herepasswords live herePractice softwarePractice softwarepatient chartspatient chartsCalendarCalendarappointment slotsappointment slotsEmail senderEmail senderwelcome messagewelcome message
Dashed lines carry passwords. Solid lines carry the real work, looking up a chart, writing a new patient, booking the slot.

The picture is doing one specific job: it shows that the passwords never leave the agent's side of the line. Your practice software does not get handed a master key to your calendar; the agent holds both keys separately, and neither vendor knows the other one exists. That is the shape you want. If a credential ever needs to be rotated — because a staff member left, or because the vendor flagged unusual activity — you change one key in the vault and the agent picks it up on the next run. Nothing else in the diagram needs to change. It is also the shape that gives you the one rule worth tattooing onto the wall.

Critical
Each tool gets the smallest set of permissions it actually needs, the technical term is least privilege. If the agent only ever reads patient charts, do not hand it a password that can also delete them. If it only ever books new appointments, do not give it the keys to cancel existing ones. The day the agent does something weird, the smallest possible blast radius is the difference between a confused email and a real incident.

In practice this looks like creating a dedicated user inside each system, not your own login, and granting it only the specific actions the agent needs. Most modern SaaS tools let you do this through a settings page called something like "API access" or "Integrations." For a calendar tool, that might mean a service account that can only create appointments on the new-patient calendar — not view your personal schedule, not cancel existing bookings. If a vendor only offers a single all-powerful key, treat that as a sharp edge to plan around, not a fact of life.

05.4

When the tool is slow, broken, or lying

The other thing nobody mentions about tools is that they fail. Not often , but often enough that you should expect it. The practice software goes into maintenance on a Sunday night. The email sender hits a cap on how often you are allowed to call it before it blocks you. The calendar returns a 200 status code that says "everything is fine" but the appointment never actually shows up on the schedule.

The first instinct, when a tool call fails, is to have the agent try again. This works about 80 percent of the time and is a disaster the other 20. The disaster looks like this: the agent calls the email sender, the call times out before the response comes back, the agent retries, the email actually went through the first time, and now the new patient gets two welcome emails. Multiply that by a Monday morning batch of 15 intakes and you have a confused front desk and a stack of "did I already get this?" replies.

Watch out
The fix is a property called idempotency, a fancy word for "safe to run twice if the first run is unclear." A write that includes a unique key the system has already seen will not create a duplicate. A charge that carries an order ID the payment processor recognises will not run twice. For every write or charge tool the agent uses, you want this property on, on purpose.

Most vendors support this out of the box once you know to ask. Stripe has an Idempotency-Key header. Most calendar and email APIs accept a client-side reference ID that they will use to deduplicate. When you wire a write tool for the agent, the first thing you check is whether you can pass one of these, and if you can, you do. If the vendor does not support it, you implement it yourself: before calling the write tool, check a lookup table for the form's unique ID. If it is there, skip the call. If it is not, call the tool and record the ID. That table is the cheapest insurance you can add to a write tool.

05.5

The dental practice, fully wired

Putting it together for Priya. The agent's job is to take a new-patient intake form from the website and turn it into a chart, a booked slot, and a welcome email, without Priya having to copy and paste between four screens. Four tools, in this order.

One intake form, fully wired
Intake form lands
Read the chart
Decide what to do
Write the chart
Book the slot
Send welcome email

Step 1 fires when the website posts the form to the agent's address. Step 2 reads from the practice software, a low-risk look-up, no change to anyone's chart. Step 3 is the only place the agent does real judgment: same person on file already, or a brand-new patient? Steps 4 through 6 are the writes, create or update the chart, book the slot, send the welcome email. Each write carries its own idempotency key, derived from the form submission's ID, so a retry will not produce duplicates.

What the tool wiring looks like, plain
  1. One read tool, the practice software, scoped to the patient table.
  2. One write tool, the same practice software, scoped to create or update a chart.
  3. One write tool, the calendar, scoped to book a single appointment kind.
  4. One notify tool, the email sender, scoped to one template and one sender address.
  5. Every write carries an idempotency key built from the intake form ID.

That is the whole tool surface. Four doors, each with the smallest key that opens it, each safe to retry. When something goes wrong on a Tuesday, and something will, Priya gets one clean recap email from the agent saying which step failed and why, with the form ID attached so she can finish the job in 30 seconds. The agent never tries to cancel a chart, never touches billing, never reads from the calendar of a doctor who is out that week. It does the four things it was wired to do, and nothing else.

The four tools, described on paper
agent-tools.describedtext
1# The four tools the dental-practice agent is allowed to call.
2# Each one names the action, the system, and the smallest scope
3# that lets the action happen.
4 
5tool: read_patient
6 system: practice_software
7 scope: patients.read
8 idempotent: not applicable (read only)
9 
10tool: upsert_patient
11 system: practice_software
12 scope: patients.write
13 idempotency_key: intake_form_id
14 
15tool: book_appointment
16 system: calendar
17 scope: appointments.create (new-patient slots only)
18 idempotency_key: intake_form_id
19 
20tool: send_welcome_email
21 system: email_sender
22 scope: send_as:frontdesk (welcome template only)
23 idempotency_key: intake_form_id
Header
Plain-English note explaining the file: each tool names the action, the system it touches, and the smallest scope that lets the action happen.
Read
A read-only lookup into the practice software, scoped to patients only. No idempotency key needed because reads do not change state.
Write chart
Creates or updates the patient chart. The intake form ID is the idempotency key, so a retry will never produce a duplicate row.
Book slot
Books one new-patient appointment in the calendar. Scope is locked to new-patient slots so the agent cannot touch a doctor’s other bookings.
Send email
Sends the welcome email from the front-desk address using one specific template. Same intake form ID guarantees one email per intake, not two.

That description is the plan on paper. The picture below is what the plan looks like when it actually runs. Routework keeps a tool-call inspector, the same kind of network panel a web developer sees in their browser, that lists every door the agent opened during a single run, in the order it opened them, with how long each one took and whether it succeeded. When Priya wants to know what the agent did with last Tuesday's 9:14 AM form, this is the screen she opens.

The tool-call inspector for one new-patient intake
●app.routework.io/runs/intake-9214/tools
Network
Decisions
Recap
MethodPathStatusTimeSize
GET/practice-software/patients?email=…200142 ms0.4 kB
POST/practice-software/patients201318 ms1.2 kB
POST/calendar/appointments201211 ms0.7 kB
POST/email-sender/send20289 ms0.3 kB
One row per tool call, in firing order. The 201s confirm the chart, the appointment, and the email each landed once. The 200 on the read is the existing-patient check coming back empty.

Four rows, one per tool, all green. That is the picture of a clean run. When something fails, and it will, the broken row turns salmon and the recap email Priya gets points straight at that row. She does not need to read the whole log; she reads one row. The inspector is the bridge between the abstract "the agent did its job" and the concrete "here is exactly what it touched, in what order, at what time."

In the next chapter, you will take this same set of four tools and put the limits on top, what the agent is not allowed to do, when it needs to pause and ask Priya, and how the whole arrangement stays inside the rails you draw around it.

KEY TAKEAWAYS
  1. A tool is one specific action the agent can take inside one system you already own.
  2. Sort every tool into one of four buckets, read, write, notify, or charge.
  3. Charge tools get more care than the other three combined. Treat them like real money.
  4. The right number of tools is the smallest number that lets the work finish.
  5. Each tool gets the smallest password the work needs, never the master key.
  6. Every write and every charge needs an idempotency key, so a retry never creates a duplicate.
  7. When a tool fails, the agent recaps to a human and stops, it does not loop.

End · Chapter 5 of 7

Mark it complete and it’s ticked off on your route.

Rivet, the product security agent for software teams, free to start. Human-led pentests and design review when you need them. AI agents are our specialty.

or get a free Rivet scan

BASEDChicago, IL · remote

FIELD NOTES

ONE SHORT EMAIL A MONTH

© 2026 ROUTEWORK — ALL RIGHTS RESERVED

Claude and Mythos are trademarks of Anthropic. RouteWork is not affiliated with Anthropic.