Skip to main content
Glama

optimize_evolve

Read-only

Evolves solutions to combinatorial or discrete optimization problems (e.g., feature selection, allocation, permutation) using a genetic algorithm with optional multi-objective Pareto frontier.

Instructions

Genetic algorithm for combinatorial / discrete optimization with optional Pareto frontier for multi-objective problems. Use when the search space is discrete or mixed (binary feature selection, integer allocation, permutation problems like TSP), or when you want to explore multiple non-dominated solutions. For continuous black-box parameters, use optimize_cmaes — it converges faster on smooth objectives. Stochastic: same input gives different best chromosome each run. Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geneLengthYesNumber of genes (variables) per chromosome.
boundsNo
fitnessWeightsNoPer-gene weights in the default linear fitness sum. Length should equal geneLength.
populationSizeNoDefault: 100, capped at 500.
maxGenerationsNoDefault: 100, capped at 500.
mutationRateNoPer-gene mutation probability (default: 0.01).
crossoverRateNoCrossover probability (default: 0.8).
selectionMethodNoDefault: tournament.
crossoverMethodNoDefault: single-point.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bestChromosomeYes
paretoFrontierNoNon-dominated solutions (multi-objective only).
convergenceGenerationNoGeneration at which best fitness stopped improving.
totalGenerationsYes
executionTimeMsNo
fitnessHistoryNoLast 20 generations' best fitness.
Behavior4/5

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

Adds context beyond annotations by disclosing stochastic nature ('same input gives different best chromosome each run') and that it is 'Free'. Annotations already provide readOnlyHint, so description supplements with behavioral traits.

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: purpose, usage guidelines, and stochastic disclosure. Each sentence adds value without redundancy. Front-loaded with most important information.

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

Completeness4/5

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

Covers purpose, domain, alternatives, and stochasticity. Given output schema exists, return values are not required. Minor gap: explicit description of how to set up multi-objective optimization could be helpful, but phrase 'with optional Pareto frontier' sufficiently hints at it.

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 description coverage is 89%, so baseline is 3. Description does not elaborate on parameters beyond mentioning 'optional Pareto frontier' which is implied behavior, not parameter-specific. Adequate but not additional value.

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 clearly states it is a 'genetic algorithm for combinatorial / discrete optimization with optional Pareto frontier for multi-objective problems', using specific verb and resource. It distinguishes from sibling optimize_cmaes by domain (discrete vs continuous).

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

Usage Guidelines5/5

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

Explicitly says 'Use when the search space is discrete or mixed' and directs to optimize_cmaes for continuous problems. Also mentions stochastic behavior, providing clear when-to-use and when-not-to-use advice.

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

Install Server

Other Tools

Latest Blog Posts

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/Whatsonyourmind/oraclaw'

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