Skip to main content
Glama

Run one experimental route rule

run_route_policy
Read-onlyIdempotent

Execute a supplied bounded score AST on 2–128 Euclidean-km points with depot 0 and 2-opt. Validates the closed tour; exact=false. No retraining, external effects or promotion. Hashes identify programs, not independent validation.

Input Schema

NameRequiredDescriptionDefault
pointsYes
programYes
fuel_limitNo
time_budget_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "all_points_coincident": {
      -      "type": "boolean"
      -    },
      -    "contract_version": {
      -      "const": "0.2.0",
      -      "type": "string"
      -    },
      -    "elapsed_ms": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "exact": {
      -      "const": false,
      -      "type": "boolean"
      -    },
      -    "fuel_limit": {
      -      "maximum": 4000000,
      -      "minimum": 1,
      -      "type": "integer"
      -    },
      -    "fuel_used": {
      -      "maximum": 4000000,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "initial_length_km": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "kernel_version": {
      -      "const": "1.0.0",
      -      "type": "string"
      -    },
      -    "legs": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "distance_km": {
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "from_index": {
      -            "maximum": 127,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "to_index": {
      -            "maximum": 127,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "from_index",
      -          "to_index",
      -          "distance_km"
      -        ],
      -        "type": "object"
      -      },
      -      "maxItems": 128,
      -      "minItems": 2,
      -      "type": "array"
      -    },
      -    "length_km": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "limitations": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "order": {
      -      "items": {
      -        "maximum": 127,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "maxItems": 128,
      -      "minItems": 2,
      -      "type": "array"
      -    },
      -    "program_sha256": {
      -      "pattern": "^[a-f0-9]{64}$",
      -      "type": "string"
      -    },
      -    "provenance": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "client": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "version": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "version"
      -          ],
      -          "type": "object"
      -        },
      -        "identity_source": {
      -          "type": "string"
      -        },
      -        "model": {
      -          "type": "null"
      -        },
      -        "server": {
      -          "const": "scorecompute",
      -          "type": "string"
      -        },
      -        "tool": {
      -          "const": "run_route_policy",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "tool",
      -        "server",
      -        "client",
      -        "identity_source",
      -        "model"
      -      ],
      -      "type": "object"
      -    },
      -    "simplification": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "compiled_program_sha256": {
      -          "pattern": "^[a-f0-9]{64}$",
      -          "type": "string"
      -        },
      -        "executed_node_count": {
      -          "maximum": 31,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "original_node_count": {
      -          "maximum": 31,
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "original_program_sha256": {
      -          "pattern": "^[a-f0-9]{64}$",
      -          "type": "string"
      -        },
      -        "required_features": {
      -          "items": {
      -            "enum": [
      -              "distance",
      -              "depot",
      -              "isolation",
      -              "centrality",
      -              "progress"
      -            ],
      -            "type": "string"
      -          },
      -          "maxItems": 5,
      -          "type": "array"
      -        },
      -        "simplifier_version": {
      -          "const": "1.0.0",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "simplifier_version",
      -        "original_program_sha256",
      -        "compiled_program_sha256",
      -        "original_node_count",
      -        "executed_node_count",
      -        "required_features"
      -      ],
      -      "type": "object"
      -    },
      -    "stop_reason": {
      -      "enum": [
      -        "heuristic_converged",
      -        "fuel_exhausted",
      -        "time_budget_exhausted"
      -      ],
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "contract_version",
      -    "kernel_version",
      -    "program_sha256",
      -    "simplification",
      -    "order",
      -    "legs",
      -    "length_km",
      -    "initial_length_km",
      -    "stop_reason",
      -    "fuel_used",
      -    "fuel_limit",
      -    "elapsed_ms",
      -    "exact",
      -    "all_points_coincident",
      -    "limitations",
      -    "provenance"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed9 schema fields changed
    • changedOutput schema / properties / contract_version / const
      Previous value: -"0.1.0"New value: +"0.2.0"
    • removedOutput schema / properties / fuel_limit / exclusiveMinimum
      Removed value: -0
    • changedOutput schema / properties / fuel_limit / maximum
      Previous value: -9007199254740991New value: +4000000
    • addedOutput schema / properties / fuel_limit / minimum
      Added value: +1
    • changedOutput schema / properties / fuel_used / maximum
      Previous value: -9007199254740991New value: +4000000
    • addedOutput schema / properties / kernel_version
      Added value: +{
      +  "const": "1.0.0",
      +  "type": "string"
      +}
    • addedOutput schema / properties / simplification
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "compiled_program_sha256": {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    "executed_node_count": {
      +      "maximum": 31,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "original_node_count": {
      +      "maximum": 31,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "original_program_sha256": {
      +      "pattern": "^[a-f0-9]{64}$",
      +      "type": "string"
      +    },
      +    "required_features": {
      +      "items": {
      +        "enum": [
      +          "distance",
      +          "depot",
      +          "isolation",
      +          "centrality",
      +          "progress"
      +        ],
      +        "type": "string"
      +      },
      +      "maxItems": 5,
      +      "type": "array"
      +    },
      +    "simplifier_version": {
      +      "const": "1.0.0",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "simplifier_version",
      +    "original_program_sha256",
      +    "compiled_program_sha256",
      +    "original_node_count",
      +    "executed_node_count",
      +    "required_features"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / stop_reason / enum
      Added value: +[
      +  "heuristic_converged",
      +  "fuel_exhausted",
      +  "time_budget_exhausted"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "contract_version",
      -  "program_sha256",
      -  "order",
      -  "legs",
      -  "length_km",
      -  "initial_length_km",
      -  "stop_reason",
      -  "fuel_used",
      -  "fuel_limit",
      -  "elapsed_ms",
      -  "exact",
      -  "all_points_coincident",
      -  "limitations",
      -  "provenance"
      -]New value: +[
      +  "contract_version",
      +  "kernel_version",
      +  "program_sha256",
      +  "simplification",
      +  "order",
      +  "legs",
      +  "length_km",
      +  "initial_length_km",
      +  "stop_reason",
      +  "fuel_used",
      +  "fuel_limit",
      +  "elapsed_ms",
      +  "exact",
      +  "all_points_coincident",
      +  "limitations",
      +  "provenance"
      +]
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources