Module 2 · First agent without code

The agent's tools: search, attachments, calculation and files

Lesson 5 of 15 8 min lesson Updated on October 30, 2026
Progress in the course33%

In this lesson

Tools are what let the agent act.

Without tools, the agent only writes. With them, it searches, reads files and calculates. Each door has its own way of going wrong.

Search: check the link

The platforms cite the source of a search. But OpenAI warns that citations can be incomplete, outdated or incorrect. The link opens, it is about the subject, and it still doesn't say what the agent wrote. This is the hardest mistake to catch.

In 2025, the Tow Center, at Columbia University, tested eight AI search engines, and they got more than 60% of the queries wrong, and did so confidently. The rule: the proof of an answer is the link, opened and read by you.

Acceptance test: two questions with an official answer you know, two with no official page (the agent should say "I couldn't find it") and one about something recent. Five right answers pass. With three or fewer, search stays off.

Indirect injection and the lethal trifecta

Indirect injection is an order hidden in a text the agent is going to read, like a fake note stuck on an envelope. OWASP, which lists AI risks, puts this problem in first place.

Researcher Simon Willison uses the name lethal trifecta for the combination of three things: private data, outside content and the ability to send data out. With all three together, tricking the agent becomes easy. The rule is not to never turn search on. It is to remove one of the three or put a person before the exit.

Attachments

The model reads the text that exists in the file. A photo or a scanned PDF has no text underneath: the model tries to recognize letters in the image, and the exact values don't always come out right. In spreadsheets, it helps to have one row per record and a descriptive header.

Test: three values you know (beginning, middle and end), one file that is hard on purpose and the question "how many pages did you read?". Rule for the sheet: a value taken from an image is a draft and only goes into the record after a person has checked it.

Calculation

The model can't reliably do math in its head: adding up 412 rows "in its head" is the task it gets wrong most. With code, a program does the sum, and the sum doesn't go wrong. The mistake comes earlier, in the reading.

Scenario

Hypothetical: the building supplies store has the columns "unit price" and "total price". The agent adds up the unit price as revenue. The number looks normal, and the mistake goes unnoticed for months. The rule: describe each column before adding and ask when the header doesn't say.

Building files

A good-looking file fools you, because it looks finished. A list of 180 students can turn into 176 if four names were off-pattern. The test: count the rows in the input and in the file, and include an odd name on purpose. A file built by the agent goes out through a person's hands, after the count.

Which tool, which test

TaskToolTest
A rule that changesSearchFive questions, link opened
Read an attachmentAttachmentThree values and a page count
Add up or countCodeTotal checked by hand
Build a spreadsheetFileRow count

What the pros know

Paying more doesn't guarantee more right answers. In the Tow Center study, from 2025, the paid AI search models gave more wrong answers stated with confidence than the free versions. People who work with AI know that confident text is not a sign of a right answer, and that the acceptance test applies to the expensive tool too. Test each tool with questions whose answer you know, before trusting it on the ones you don't, and record the date of the test.

Careful

An agent that reads customer emails and replies on its own, with the customer list within reach, is in the dangerous combination. A sentence in the instructions helps, but it is only one layer.

Practice · 10 min

  1. Ask the agent three questions: one with an official source, one with no source and one recent. Open each link and look for the sentence.
  2. Take a PDF that has text, pick three values and ask the agent for them. Ask how many pages it read.
  3. On the agent's sheet, write one line per tool with the result and the date. A tool that fails stays "off until it passes".
Deliverable: the sheet with one dated line for each tool tested.

Summary

Sources

Read on October 30, 2026.

  1. Columbia Journalism Review. AI Search Has A Citation Problem: Tow Center study, March 2025.
  2. OpenAI. ChatGPT search: warning about citations.
  3. Simon Willison. The lethal trifecta for AI agents.
  4. OWASP. LLM01:2025 Prompt Injection.
  5. OpenAI. Data analysis with ChatGPT: spreadsheet tips.

Lesson quiz

Three situations to apply what you learned.

Lesson 5 of 15

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp