{"uid":"cap_6v4NQ9gD4lvavft5LNn1c","slug":"delx-dependency-order-a898a9a4","name":"Delx Dependency Order","description":"Compute a stable topological order for workflow nodes and report structural cycles — call when ordering workflow nodes and detecting structural cycles. Use before side effects when composing multi-step agent jobs—the same loyalty/workflow demand band agents already pay for on Bazaar, but fully local. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no clai…","url":"https://api.delx.ai/api/v1/x402/dependency-order","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"edges":{"type":"array","description":"Directed edges as {from,to} objects among nodes."},"nodes":{"type":"array","description":"Workflow node identifiers for topological ordering."}}},"responseSchema":{"type":"json","example":{"order":["a","b","c"],"cyclic":false,"schema":"delx/util-dependency-order/v1","advisory":"Cycle detection is structural only.","unresolved":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YyeeNpqashh5ACIktIsq7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a stable topological sort order for a set of workflow nodes given directed edges, and detects structural cycles in the dependency graph.","exampleAgentPrompt":"Figure out the correct execution order for my workflow nodes — I have nodes A, B, C, D and edges B→A, C→B, D→C — sort them topologically and let me know if there are any cycles.","exampleUseCases":[{"title":"Ordering multi-step agent pipeline","prompt":"I'm building an agent job with steps: fetch_data, clean_data, run_model, and send_report. The dependencies are clean_data needs fetch_data first, run_model needs clean_data, and send_report needs run_model. Can you compute the correct execution order and check for cycles?"},{"title":"Detecting circular dependencies in a build graph","prompt":"I have a build system with modules auth, db, api, and cache. The edges are api→auth, api→db, db→cache, and cache→api. Can you run a topological sort and tell me if there's a circular dependency?"},{"title":"Validating microservice startup order","prompt":"Before I deploy, I need to know the right startup sequence for my services: gateway, auth-service, user-service, and notification-service, given that gateway depends on auth-service and user-service, and notification-service depends on user-service. Can you give me a stable startup order and flag any cycles?"}],"resultDescription":"Returns deterministic machine-readable JSON containing a stable topological ordering of the provided nodes (when no cycles exist) and a report of any structural cycles found in the directed graph.","failureModes":["Cycle detected — returns cycle report instead of a linear order when the graph is not a DAG","Missing or malformed edges array — validation error if edges are not {from, to} objects","Unknown node references in edges — nodes referenced in edges but not listed in the nodes array may cause incomplete results","Empty nodes/edges — returns trivially valid empty order","Payment failure — x402 payment not accepted or insufficient USDC balance"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, stateless, local-only topological sort with cycle detection for workflow or pipeline planning, especially inside multi-step agent jobs where you want no data retention, no upstream dependencies, and a predictable low-cost ($0.003 USDC) per-call pricing model on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:36.035Z","isFirstParty":false}