Skip to content
Proud to collaborate with Microsoft for Startups

agents.metrics-tool-record ​

Append a tool call record to a session and emit a Lumen tool span

Record a single tool call within a session step.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALinternal.invocationInternal — called by the runner agent to record execution metrics

Input Schema ​

FieldTypeRequiredDefaultDescription
session_uuidstringYes——
organization_uuidstringNo——
step_metric_uuidstringNo——
tool_namestringYes——
successbooleanYes——
latency_msintegerNo——
error_categorystringNo——
error_messagestringNo——
input_size_charsintegerNo——
output_size_charsintegerNo——
tool_call_refstringNo——
tool_sourcestringNo——
mcp_server_uuidstringNo——
skill_uuidstringNo——
workflow_typestringNo——
workflow_run_uuidstringNo——
round_indexintegerNo——
policy_decisionstringNo——
approval_uuidstringNo——
arguments_hashstringNo——
result_hashstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
tool_call_uuidjsonNo——
session_uuidjsonNo——
organization_uuidjsonNo——
step_metric_uuidjsonNo——
tool_namejsonNo——
successjsonNo——
latency_msjsonNo——
error_categoryjsonNo——
error_messagejsonNo——
input_size_charsjsonNo——
output_size_charsjsonNo——
tool_call_refjsonNo——
tool_sourcejsonNo——
mcp_server_uuidjsonNo——
skill_uuidjsonNo——
workflow_typejsonNo——
workflow_run_uuidjsonNo——
round_indexjsonNo——
policy_decisionjsonNo——
approval_uuidjsonNo——
arguments_hashstringNo——
result_hashstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.metrics-tool-record",
  "initial_data": {
    "session_uuid": "value",
    "tool_name": "value",
    "success": true
  }
}