# Workflow Dependency Check

> Workflow Dependency Check is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.035006/call, status unknown (last checked 2026-10-15).

Validates up to 64 workflow steps for duplicate IDs, missing dependencies, and cycles, returning a deterministic topological order when the graph is valid.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/verify/workflows/dependencies?utm_source=zero.xyz
- Price: $0.035006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/workflow-dependency-check-9342470b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uKpM4Ji66qkaiLc_KhREI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability workflow-dependency-check-9342470b -d '<json body>'
```

Example prompt: Can you check these 12 workflow steps for any duplicate IDs, missing dependencies, or cycles, and give me a valid topological execution order if everything looks clean? The data is synthetic.

## When to prefer this

Choose this endpoint when you need a pure, stateless DAG validation service that checks for structural graph errors (duplicates, missing refs, cycles) and produces a guaranteed topological order — before any execution or scheduling occurs. Prefer this over general-purpose workflow engines when you want a lightweight, deterministic pre-flight check at low cost ($0.035 per call) without side effects, tool execution, or access approval steps.

## Known failure modes

- Steps array exceeds 64 items — request rejected
- Cycle detected — topological order cannot be produced, cycle path returned
- Duplicate step IDs found — error listing the conflicting IDs returned
- Missing dependency reference — step references an ID not present in the steps array
- Invalid dataClass value — must be 'public' or 'synthetic'
- Malformed steps payload — missing required step structure fields

## How this service works

Check up to 64 workflow steps for duplicate IDs, missing dependencies and cycles. Returns a deterministic topological order only when valid. No scheduling, tool execution, access approval or guarantee that the workflow will succeed. New modular adapter: retained result recovery for 24 hours, minimal receipt metadata for 90 days. Existing live route unchanged.

## Output

Returns either a deterministic topological ordering of all workflow steps (when the graph is valid) or a structured list of validation errors — duplicate step IDs, missing dependency references, and/or detected cycles. Results are retained for 24 hours; minimal receipt metadata is kept for 90 days. No scheduling or execution is performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "steps": {
   "type": "array",
   "maxItems": 64,
   "minItems": 1
  },
  "dataClass": {
   "enum": [
    "public",
    "synthetic"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/workflow-dependency-check-9342470b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
