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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "points": "<points>",
      "program": "<program>"
    },
    "name": "run_route_policy"
  }
}

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

B3.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower and the description clears it by adding genuine behavioral context: results are non-exact heuristics, nothing is retrained or promoted, no external effects occur, and hashes identify programs rather than constitute independent validation. That last caveat is an important, non-obvious warning about over-trusting output. It does not describe the response payload, which keeps it from a 5.

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

Conciseness4/5

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

Four compact clauses, front-loaded with the action, with no filler sentences. The density is high but each clause carries distinct information; the jargon ('score AST', '2-opt', 'exact=false') is terse rather than padded.

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

Completeness2/5

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

This is a complex tool: a deeply nested recursive AST schema, four parameters, no output schema, and no parameter-level documentation. The description covers scope and safety but leaves out what the tool returns (a tour? a cost? validation status?), how fuel_limit and time_budget_ms interact with 'exact=false', and what failure modes exist when a tour fails validation. For this complexity level the definition is under-specified.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden. It does clarify the points parameter (2-128 Euclidean-km, depot 0) and gestures at the program being a 'bounded score AST', but the two budget parameters (fuel_limit, time_budget_ms) are never mentioned, nor are the feature names (distance, depot, isolation, centrality, progress), the operator set, or the program version constraint. Half the parameter surface remains undocumented anywhere.

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

Purpose4/5

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

The description names a specific verb and resource ('Execute a supplied bounded score AST') and pins the operating envelope: 2-128 Euclidean-km points, depot 0, 2-opt, closed-tour validation. That is far more than a restatement of the name. It stops short of explicitly distinguishing itself from the sibling forge_route_policy, which is presumably the authoring counterpart.

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

Usage Guidelines3/5

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

Usage is implied through the framing 'experimental route rule', 'exact=false' and 'No retraining, external effects or promotion', which signals this is a sandboxed evaluation path rather than a production solver. However, it never states when an agent should pick this over forge_route_policy or route_optimizer, and gives no prerequisites for supplying a valid program.

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.

Resources