Skip to main content
Glama

Optimization Solver (LP / MIP Scheduling)

Optimization Solver — Get Engine Script (large models)

optimization_solver_get_engine
Read-only

For models above ~3,000 variables or constraints, long runs (time limit over 60 s), MPS files, or any table already in your code sandbox. Returns a complete numpy-only Python script with the same engine as optimization_solver; it reads the tables (CSV / TSV / JSON) or MPS file named in the call, prints the decision cards and the plan summary, and writes the full result to optimization_result.json. No data reaches this server on this path.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "optimization_solver_get_engine"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoOther inputs exactly as optimization_solver takes them (problem_type, budget, batch_size, time_limit_seconds up to 600 ...).
mps_pathNoMPS model file in your sandbox.
jobs_pathNojobs file in your sandbox (CSV/TSV/JSON).
costs_pathNocosts file in your sandbox (CSV/TSV/JSON).
staff_pathNostaff file in your sandbox (CSV/TSV/JSON).
usage_pathNousage file in your sandbox (CSV/TSV/JSON).
groups_pathNogroups file in your sandbox (CSV/TSV/JSON).
shifts_pathNoshifts file in your sandbox (CSV/TSV/JSON).
budgets_pathNobudgets file in your sandbox (CSV/TSV/JSON).
periods_pathNoperiods file in your sandbox (CSV/TSV/JSON).
sources_pathNosources file in your sandbox (CSV/TSV/JSON).
machines_pathNomachines file in your sandbox (CSV/TSV/JSON).
products_pathNoproducts file in your sandbox (CSV/TSV/JSON).
projects_pathNoprojects file in your sandbox (CSV/TSV/JSON).
resources_pathNoresources file in your sandbox (CSV/TSV/JSON).
variables_pathNovariables file in your sandbox (CSV/TSV/JSON).
constraints_pathNoconstraints file in your sandbox (CSV/TSV/JSON).
ingredients_pathNoingredients file in your sandbox (CSV/TSV/JSON).
current_plan_pathNocurrent_plan file in your sandbox (CSV/TSV/JSON).
destinations_pathNodestinations file in your sandbox (CSV/TSV/JSON).
requirements_pathNorequirements file in your sandbox (CSV/TSV/JSON).

Output Schema

NameRequiredDescriptionDefault
notesNo
pathsNo
scriptYes
languageNo
requiresNo
writes_fileNo
instructionsYes
engine_versionYes
scipy_requiredNo
data_requirementsNo
network_access_requiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, non-destructive, open-world. The description adds important context: no data reaches the server, the returned script writes results to optimization_result.json, and it prints decision cards and plan summary. It does not detail execution permissions or whether the script runs automatically.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with usage conditions, then output and privacy. No redundant or vague phrasing; every sentence contributes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter tool with nested params and an output schema, the description covers when to use it, what it returns, side effects, and privacy. The schema handles individual path details, so nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with descriptions for all 21 path parameters. The description restates file formats and that params mirror optimization_solver, but adds no new syntax or constraints beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action (returns a complete numpy-only Python script) and resource (engine script for large models), and distinguishes from the sibling by noting it uses the same engine as optimization_solver for larger/sandbox scenarios.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It lists explicit conditions for use: models above ~3,000 variables/constraints, long runs (time limit over 60 s), MPS files, or tables already in the sandbox. It implies optimization_solver is the alternative for smaller/online cases but does not name it as an explicit fallback.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.