How It Works
Tool calls and metadata must be passed directly in the request body of the/v1/evaluate endpoint. There is no separate enrichment step — everything must be submitted together when you send a call for evaluation.
Passing Tool Calls to the Evaluate Endpoint
The/v1/evaluate endpoint accepts a tool_calls array alongside your transcript and recording data. Each tool call entry describes a single invocation your agent made during the conversation.
Tool Call Schema
Each entry in thetool_calls array supports the following fields:
Example Request
Adding Metadata
The top-levelmetadata field is a free-form key-value object that stores additional context alongside the evaluation. It also powers Dynamic Variables in Custom Metrics — any {{placeholder}} in your metric descriptions will be substituted with matching keys from metadata.
Adding Events
You can also pass structured events that occurred during the call using theevents array. Events are distinct from tool calls — they represent higher-level occurrences like escalations, hold periods, or sentiment shifts.
Use Cases
Customer Support Quality
Track whether the agent used the right tools in the right order during support interactions:Compliance Monitoring
Verify that agents follow required verification procedures in regulated industries:Appointment Scheduling
Monitor agents that interact with booking and calendar systems:Best Practices
- Include
start_offset_ms— timing data lets Bluejay correlate tool calls with specific moments in the conversation, giving metrics richer context - Use descriptive names — tool call names should clearly indicate the action taken (e.g.,
check_order_statusnotapi_call_1) - Add descriptions — the
descriptionfield helps Custom Metrics understand what the tool does, improving evaluation accuracy - Send parameters — input parameters let you build metrics that check whether the agent used the correct inputs
- Combine with metadata — use
metadatafor call-level context (duration, resolution status, customer tier) andtool_callsfor action-level detail - Send everything in one request — unlike simulations, observability tool calls are submitted in the same
/v1/evaluatecall as the transcript and recording
Next Steps
Evaluate Endpoint Reference
Full API reference for the evaluate endpoint.
API Integration Tutorial
Step-by-step guide to connecting your pipeline.
Dynamic Variables
Use metadata to power dynamic variable substitution in metrics.
Tool Calls
Enrich simulation results with tool call data instead.