Skip to main content
Glama

mcp-optimizer

solve_vehicle_routing_problem

Optimize vehicle routes to efficiently distribute resources across multiple locations. Input locations, vehicles, and constraints to generate optimal routing solutions.

Instructions

Solve Vehicle Routing Problem (VRP) to optimize routes for multiple vehicles.

Args: locations: List of location dictionaries with name, coordinates, and demand vehicles: List of vehicle dictionaries with capacity constraints distance_matrix: Optional pre-calculated distance matrix time_matrix: Optional pre-calculated time matrix depot: Index of depot location (default: 0) time_limit_seconds: Maximum solving time in seconds (default: 30.0) Returns: Optimization result with routes for all vehicles

Input Schema

NameRequiredDescriptionDefault
depotNo
distance_matrixNo
locationsYes
time_limit_secondsNo
time_matrixNo
vehiclesYes

Input Schema (JSON Schema)

{ "properties": { "depot": { "default": 0, "title": "Depot", "type": "integer" }, "distance_matrix": { "anyOf": [ { "items": { "items": { "type": "number" }, "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Distance Matrix" }, "locations": { "items": { "additionalProperties": true, "type": "object" }, "title": "Locations", "type": "array" }, "time_limit_seconds": { "default": 30, "title": "Time Limit Seconds", "type": "number" }, "time_matrix": { "anyOf": [ { "items": { "items": { "type": "integer" }, "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Time Matrix" }, "vehicles": { "items": { "additionalProperties": true, "type": "object" }, "title": "Vehicles", "type": "array" } }, "required": [ "locations", "vehicles" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmitryanchikov/mcp-optimizer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server