Overview
Detect loops in an agent run: identical repeated tool calls, A-B-A-B cycles and stretches without new results. Hashes every tool call (tool name plus canonical arguments) and optional result, then reports exact repeats, periodic cycles of length 2 to 5 that repeat at least three times, and stagnation windows where several consecutive calls return results already seen. Returns the positions, the cycle pattern and a stop recommendation for the orchestrator.
Protocol
x402 (POST)
Price
$0.0020
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
uncategorized
Provider
denk
Indexed
2026-11-24 12:33:24
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"body": {
"calls": [
{
"arguments": {
"q": "x"
},
"tool": "search"
},
{
"arguments": {
"id": 1
},
"tool": "open"
},
{
"arguments": {
"q": "x"
},
"tool": "search"
},
{
"arguments": {
"id": 1
},
"tool": "open"
},
{
"arguments": {
"q": "x"
},
"tool": "search"
},
{
"arguments": {
"id": 1
},
"tool": "open"
}
]
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"result": {
"calls_analysed": 6,
"loops": [
{
"count": 3,
"positions": [
0,
2,
4
],
"tool": "search",
"type": "identical_call"
},
{
"count": 3,
"positions": [
1,
3,
5
],
"tool": "open",
"type": "identical_call"
},
{
"length": 2,
"pattern": [
"search",
"open"
],
"repeats": 3,
"start": 0,
"type": "cycle"
}
],
"stop_recommended": true
},
"service": "loop-detect",
"status": "success"
},
"type": "json"
}