{"uid":"cap_8yySYeHawP2VG29oHEmPL","slug":"workflow-dependency-validation-ca8aa5e3","name":"Workflow Dependency Validation","description":"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.","url":"https://www.mahastrategies.com/api/v1/micro/workflow-dependency-validation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0275","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0275/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0275","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0275","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZrAnVYd3VIlhR-nDS57Fb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0275","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates up to 64 workflow steps for duplicate IDs, missing dependencies, and cycles, returning a deterministic topological order when the graph is valid.","exampleAgentPrompt":"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'.","exampleUseCases":[{"title":"CI/CD pipeline dependency check","prompt":"I've defined 12 steps in my CI/CD pipeline and I'm worried some might have circular dependencies or missing upstream steps — can you run a dependency validation on them and tell me the correct execution order if they're clean? Mark the data as synthetic."},{"title":"Agent task graph pre-flight validation","prompt":"Before I launch my multi-agent workflow, can you validate all 30 task steps for duplicate IDs, missing dependencies, and cycles? I need a confirmed topological order before I hand this off to the executor — data class is synthetic."},{"title":"Data pipeline DAG audit","prompt":"I have a data transformation pipeline with about 20 steps and I suspect there might be a cycle buried in the dependency graph — please check all the steps for cycles, duplicate IDs, and missing dependencies, and return the valid execution order if it passes. Data class is public."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:55:49.551Z","isFirstParty":false,"canonicalSlug":"workflow-dependency-validation-ca8aa5e3"}