Schedule ready nodes

schedule-ready-nodes · version 1.0.0 · Graphs & scheduling · free, no key needed

List DAG nodes that can start because they are not completed and every predecessor is completed.

Use when you need to: schedule ready nodes · ready nodes given completed set · which dependency nodes can start.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "nodes": [
    "fetch",
    "compile",
    "lint",
    "link"
  ],
  "edges": [
    {
      "from": "fetch",
      "to": "compile"
    },
    {
      "from": "fetch",
      "to": "lint"
    },
    {
      "from": "compile",
      "to": "link"
    },
    {
      "from": "lint",
      "to": "link"
    }
  ],
  "completed": [
    "fetch"
  ]
}

Response:

{
  "result": {
    "ready": [
      "compile",
      "lint"
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "schedule-ready-nodes",
  "version": "1.0.0",
  "input": {
    "nodes": [
      "fetch",
      "compile",
      "lint",
      "link"
    ],
    "edges": [
      {
        "from": "fetch",
        "to": "compile"
      },
      {
        "from": "fetch",
        "to": "lint"
      },
      {
        "from": "compile",
        "to": "link"
      },
      {
        "from": "lint",
        "to": "link"
      }
    ],
    "completed": [
      "fetch"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/schedule-ready-nodes/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"nodes":["fetch","compile","lint","link"],"edges":[{"from":"fetch","to":"compile"},{"from":"fetch","to":"lint"},{"from":"compile","to":"link"},{"from":"lint","to":"link"}],"completed":["fetch"]}'

The machine-readable contract is at /v1/tools/schedule-ready-nodes/versions/1.0.0.

CLI

node cli.mjs run schedule-ready-nodes 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.