The fastest order to visit your stops.

Travelling salesman in milliseconds. Returns the optimised order, the savings, and per-leg breakdowns.

mcp.footstep.ai / optimize_stops
Why you need it

Why your agent needs this.

When the user gives the agent a list of stops and asks for the best order, the agent shouldn't write a heuristic. optimize_stops is one call: pass the stops, get back the optimised tour with savings against the input order. The agent reports the result; the maths happens server-side.

What it does for you

What your agent gets back.

  • Render envelope with an ordered LineString and Point layers carrying order_index per stop.
  • Savings against the input order, in plain numbers the agent can quote back.
  • Per-leg distance and duration for the agent to narrate.
  • Composes with find_and_route when the user names the stops rather than passing coordinates.
  • 3 to roughly 30 stops per call.
Try it

Plug it into your agent.

Add Footstep to your MCP-aware runtime. Your model picks the tool at runtime; you wrote none of the orchestration.

Prompt that triggers optimize_stops
"Best order to visit these 8 delivery stops."
claude_desktop_config.json
{
  "mcpServers": {
    "footstep": {
      "url": "https://mcp.footstep.ai",
      "headers": {
        "x-api-key": "sk_live_your_key_here"
      }
    }
  }
}

Ready to call it?

£5 free credit on signup. One auth header, every major runtime.