Skip to content
HALOWERK

Denkwerk

loop detect

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.

POST https://denk.halowerk.com/v1/loop-detect

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
callsarrayYes
min_repeatsintegerNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "calls"
  ],
  "properties": {
    "calls": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "tool"
        ],
        "properties": {
          "tool": {
            "type": "string",
            "maxLength": 200
          },
          "arguments": {},
          "result": {}
        }
      }
    },
    "min_repeats": {
      "type": "integer",
      "minimum": 2,
      "maximum": 20,
      "default": 3
    }
  }
}

Open original schema

Published input example

{
  "calls": [
    {
      "tool": "search",
      "arguments": {
        "q": "x"
      }
    },
    {
      "tool": "open",
      "arguments": {
        "id": 1
      }
    },
    {
      "tool": "search",
      "arguments": {
        "q": "x"
      }
    },
    {
      "tool": "open",
      "arguments": {
        "id": 1
      }
    },
    {
      "tool": "search",
      "arguments": {
        "q": "x"
      }
    },
    {
      "tool": "open",
      "arguments": {
        "id": 1
      }
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’