Skip to main content
Glama

mcp-optimizer

solve_transportation_problem_tool

Optimize transportation logistics by calculating the most cost-effective shipping routes between suppliers and consumers using OR-Tools on the MCP-optimizer server.

Instructions

Solve transportation problem using OR-Tools. Args: suppliers: List of supplier dictionaries with 'name' and 'supply' keys consumers: List of consumer dictionaries with 'name' and 'demand' keys costs: 2D cost matrix where costs[i][j] is cost of shipping from supplier i to consumer j Returns: Dictionary with solution status, flows, total cost, and execution time

Input Schema

NameRequiredDescriptionDefault
consumersYes
costsYes
suppliersYes

Input Schema (JSON Schema)

{ "properties": { "consumers": { "items": { "additionalProperties": true, "type": "object" }, "title": "Consumers", "type": "array" }, "costs": { "items": { "items": { "type": "number" }, "type": "array" }, "title": "Costs", "type": "array" }, "suppliers": { "items": { "additionalProperties": true, "type": "object" }, "title": "Suppliers", "type": "array" } }, "required": [ "suppliers", "consumers", "costs" ], "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