Required
- TypeScript
- Python
Create a child span for each tool call and include the tool name:
Optional tool-call data
Recommended attributes:tool.nametool.argstool.resulttool.statustool.duration_ms(if you compute it separately)
- TypeScript
- Python
For large payloads, store only summary fields (for example, item counts or IDs) and avoid full sensitive bodies.
Mark a tool call as failed
- TypeScript
- Python
Dashboard outcome
Tool-call spans appear under the active run and show:- which tool was used
- what arguments were passed
- what result was returned
- whether the tool failed
- TypeScript
- Python
This makes bad arguments, retries, and unnecessary calls easy to spot.

