# Workflow Dependency Validation

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

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/micro/workflow-dependency-validation?utm_source=zero.xyz
- Price: $0.0275/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/workflow-dependency-validation-ca8aa5e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8yySYeHawP2VG29oHEmPL

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-validation-ca8aa5e3 -d '<json body>'
```

Example prompt: Can you validate this set of workflow steps for me — check for duplicate IDs, missing dependencies, and any cycles, then give me the correct topological execution order if it's all valid? The data class is 'synthetic'.

## When to prefer this

Choose this endpoint when you need a fast, deterministic, read-only check of a workflow DAG (up to 64 steps) before execution — specifically to catch duplicate IDs, unresolved dependencies, and cycles without any side effects. It is not a scheduler or executor; prefer it as a pre-flight validation step in pipeline authoring tools, agent orchestration systems, or CI/CD workflows where correctness of the dependency graph must be confirmed before committing to execution.

## Known failure modes

- More than 64 steps submitted — exceeds maxItems limit and will be rejected
- Missing required 'steps' or 'dataClass' fields in body — returns validation error
- Cycle detected in dependency graph — returns error without topological order
- Duplicate step IDs found — returns error identifying conflicting IDs
- Missing dependency reference (a step depends on a non-existent step ID) — returns error
- Invalid dataClass value (not 'public' or 'synthetic') — schema validation failure
- Payment failure via x402 protocol — request not processed

## 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.

## Output

Returns a deterministic topological ordering of workflow steps when the graph is valid, along with validation findings covering duplicate step IDs, missing dependency references, and detected cycles. Also includes metadata such as offer ID, version, input digest, receipt digest, amount in base units, and any boundary annotations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "dataClass",
      "steps"
     ],
     "properties": {
      "steps": {
       "type": "array",
       "maxItems": 64,
       "minItems": 1
      },
      "dataClass": {
       "enum": [
        "public",
        "synthetic"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "version",
      "offerId",
      "amountBaseUnits",
      "inputDigest",
      "result",
      "boundaries",
      "receiptDigest"
     ],
     "properties": {
      "result": {
       "type": "object"
      },
      "offerId": {
       "enum": [
        "workflow-dependency-validation"
       ],
       "type": "string"
      },
      "version": {
       "enum": [
        "maha-microproducts/0.1"
       ],
       "type": "string"
      },
      "boundaries": {
       "type": "array",
       "maxItems": 128,
       "minItems": 0
      },
      "inputDigest": {
       "type": "string",
       "maxLength": 71
      },
      "receiptDigest": {
       "type": "string",
       "maxLength": 71
      },
      "amountBaseUnits": {
       "enum": [
        "27500"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/workflow-dependency-validation-ca8aa5e3/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)
