Skip to main content
Glama

mcp-optimizer

solve_assignment_problem_tool

Optimize task assignments between workers and tasks using the OR-Tools Hungarian algorithm. Input workers, tasks, and cost matrix to minimize or maximize efficiency with optional task limits.

Instructions

Solve assignment problem using OR-Tools Hungarian algorithm. Args: workers: List of worker names tasks: List of task names costs: 2D cost matrix where costs[i][j] is cost of assigning worker i to task j maximize: Whether to maximize instead of minimize (default: False) max_tasks_per_worker: Maximum tasks per worker (optional) min_tasks_per_worker: Minimum tasks per worker (optional) Returns: Dictionary with solution status, assignments, total cost, and execution time

Input Schema

NameRequiredDescriptionDefault
costsYes
max_tasks_per_workerNo
maximizeNo
min_tasks_per_workerNo
tasksYes
workersYes

Input Schema (JSON Schema)

{ "properties": { "costs": { "items": { "items": { "type": "number" }, "type": "array" }, "title": "Costs", "type": "array" }, "max_tasks_per_worker": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Max Tasks Per Worker" }, "maximize": { "default": false, "title": "Maximize", "type": "boolean" }, "min_tasks_per_worker": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Min Tasks Per Worker" }, "tasks": { "items": { "type": "string" }, "title": "Tasks", "type": "array" }, "workers": { "items": { "type": "string" }, "title": "Workers", "type": "array" } }, "required": [ "workers", "tasks", "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