Context, memory and tools
Follow the information behind a customer follow-up email.

Each request needs relevant context
Context is the information available to the model in a request, such as instructions, the question, summaries, tool results and retrieved records. In a Messages API workflow, the application keeps history and supplies relevant material in later calls. This does not mean every product automatically keeps a complete conversation.
Explore the follow-up email, step by step
Open each step to see how the available information changes. The customer and dates are illustrative. Boxes do not represent token counts. Summarisation does not always lose information; this example deliberately shows a missing fact.
01The task arrives
Draft a follow-up email for the fictional customer Yuanhang Technology.
Rule: draft only from customer records. Task: write the follow-up email.
Look up customer facts first.
02A tool is requested
The model requests a CRM search. The application executes it.
Rule + user task Tool request: crm.search(customer demo schedule)
No result has returned yet.
03The result enters context
The CRM result is included in the next request.
CRM: trial first; demo 2 October, 15:00; concise English preferred.
There is now information to draft from.
04Old messages are summarised
In this example the summary keeps “next week” and omits the time.
Summary: trial first; demo next week; draft exists. Question: which day and time?
The precise time is unavailable here.
05A fact is stored outside the window
An alternative saves the explicit fact when it arrives and retrieves it later.
Memory record: customer=Yuanhang Technology Demo=2 October, 15:00; source=CRM
The application must save and update it.
06The fact is retrieved and checked
Include the relevant record again. Recheck the source if the schedule may have changed.
Retrieved CRM record: 2 October, 15:00 Answer uses the record in this request.
Recover precision and keep the source.
What memory, skills and MCP do
- Memory
Retrieve relevant facts.
- Skill
Load task instructions.
- Connected tools
Return execution results.
The application assembles the request for the model.
Their instructions or results need to enter the current context to affect a model call. MCP supplies a connection standard. It still needs a server, permission and application execution; a connection does not make returned data trustworthy by itself.