Structured Logs for Reliable Tool Runners
Make a tool run explain itself. Design structured events that show what happened, which attempt produced the result, and what an operator should do next.
Read the guideFIELD NOTES / TOPIC
Read focused structured logs articles and connect the ideas to the rest of your tools API workflow.
Structured logs describe events using consistent fields so a reader can follow an action without interpreting a collection of unrelated messages. A run identity, step name, outcome, and relevant context create a useful starting point.
Use these guides to decide which evidence belongs in a log and which information should stay out. A retry, a rejected request, and a completed action are different events. Keep them distinguishable, connect relevant artifacts to the run, and make retention intentional. The goal is a readable record that helps somebody decide what happened and what to do next. Review question: Would these events let an operator distinguish a new action, a retry, and a late response without inspecting sensitive input data?
Make a tool run explain itself. Design structured events that show what happened, which attempt produced the result, and what an operator should do next.
Read the guide