x402

Agent Trace Analyze (x402)

Analyze AI agent execution traces (LangChain/CrewAI/AutoGen). Identifies failure points, root causes, token waste, and suggests fixes.

get/x402/v2/agent-trace-analyze

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/agent-trace-analyze
  • Auth: none required

Query parameters

tracestring required

Agent log/trace output

Response

Success

root_causestring
step_countinteger
failure_typestring
failure_pointstring
suggested_fixstring

Example response

{
  "severity": "warning",
  "root_cause": "The trace input 'test_value' is not a valid AI agent execution log. It lacks essential components including: timestamped steps, tool invocations, agent reasoning, state transitions, or error messages. Cannot analyze execution flow without structured trace data.",
  "step_count": 0,
  "failure_type": "none",
  "trace_length": 10,
  "failure_point": "Trace input validation - insufficient execution data provided",
  "steps_summary": [],
  "suggested_fix": "Provide a complete agent execution trace with: (1) timestamped sequential steps, (2) agent thoughts/reasoning, (3) tool names and parameters, (4) tool outputs/responses, (5) any error messages or exceptions, (6) final state or outcome",
  "patterns_detected": [
    "insufficient_trace_data",
    "missing_execution_steps",
    "cannot_analyze_without_structured_log"
  ],
  "token_usage_breakdown": {
    "total": 97,
    "estimated_input_tokens": 12,
    "estimated_output_tokens": 85
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.