Skip to main content
Glama

Compare enhancements against a unit

compare_enhancements
Read-onlyIdempotent

Simulates the attacking unit once with each enhancement its characters, including attached leaders, can take in the attacker's detachment, and once with none, against the defender, as simulate_combat does. Takes the same sides as simulate_combat; name the attacker's detachment, since enhancements come from it. Any enhancement the sides name is replaced by the one being compared. points keeps only enhancements costing that much or less, such as the points a list has spare. mode ranks shooting followed by melee (combined), or one phase. Returns without, the result with no enhancement, and enhancements, best first, each with its bearer, points and outcome. An enhancement with notCalculated has rules the simulator cannot estimate, so its outcome leaves them out; say so rather than ranking it. It compares damage against this one defender only, never what an enhancement does for movement, durability elsewhere or scoring.

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": {
      "attacker": "<attacker>",
      "defender": "<defender>"
    },
    "name": "compare_enhancements"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoWhat to rank by: shooting followed by melee (combined), shooting alone (ranged), or melee alone.combined
pointsNoOnly enhancements costing at most this many points, such as the points the list has left.
attackerYes
defenderYes
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
modifiersNoSituational modifiers the simulator page offers, such as { "all": { "cover": true, "hitModifier": -1 } }, { "melee": { "charged": true } }, { "ranged": { "distance": 18 } }, or { "target": { "invulnerable": 4 } }. distance is the inches to the target: weapons that cannot reach it make no attacks and are marked outOfRange, and each weapon is within half range by its own Range. commandReroll spends one Command Re-roll per phase on the first failed hit, wound, or save roll, or the first single-die Attacks roll below its average; compare with a run without it to judge the CP.
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / modifiers / properties / all / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound",
      -  "damage"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage",
      +  "save"
      +]
    • changedInput schema / properties / modifiers / properties / melee / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound",
      -  "damage"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage",
      +  "save"
      +]
    • changedInput schema / properties / modifiers / properties / ranged / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound",
      -  "damage"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage",
      +  "save"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / attacker / properties / attached / items / properties / vs
      Added value: +{
      +  "description": "A get_my_roster pick's vs, unchanged, for a unit saved by VS Data IDs: it stands for the unit's models, choices and spreads, so pass it with the pick's entryId as unit and leave those out.",
      +  "properties": {
      +    "allegiance": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "enhancement": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "models": {
      +      "additionalProperties": {
      +        "maximum": 60,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "options": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "maximum": 60,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "warlord": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "models",
      +    "options"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / attacker / properties / vs
      Added value: +{
      +  "description": "A get_my_roster pick's vs, unchanged, for a unit saved by VS Data IDs: it stands for the unit's models, choices and spreads, so pass it with the pick's entryId as unit and leave those out.",
      +  "properties": {
      +    "allegiance": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "enhancement": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "models": {
      +      "additionalProperties": {
      +        "maximum": 60,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "options": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "maximum": 60,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "warlord": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "models",
      +    "options"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / defender / properties / attached / items / properties / vs
      Added value: +{
      +  "description": "A get_my_roster pick's vs, unchanged, for a unit saved by VS Data IDs: it stands for the unit's models, choices and spreads, so pass it with the pick's entryId as unit and leave those out.",
      +  "properties": {
      +    "allegiance": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "enhancement": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "models": {
      +      "additionalProperties": {
      +        "maximum": 60,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "options": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "maximum": 60,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "warlord": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "models",
      +    "options"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / defender / properties / vs
      Added value: +{
      +  "description": "A get_my_roster pick's vs, unchanged, for a unit saved by VS Data IDs: it stands for the unit's models, choices and spreads, so pass it with the pick's entryId as unit and leave those out.",
      +  "properties": {
      +    "allegiance": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "enhancement": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "models": {
      +      "additionalProperties": {
      +        "maximum": 60,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "options": {
      +      "additionalProperties": {
      +        "additionalProperties": {
      +          "maximum": 60,
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "propertyNames": {
      +          "maxLength": 256,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "maxLength": 256,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "warlord": {
      +      "maxLength": 256,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "models",
      +    "options"
      +  ],
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / modifiers / properties / all / properties / singleRerolls / maxItems
      Previous value: -4New value: +12
    • changedInput schema / properties / modifiers / properties / melee / properties / singleRerolls / maxItems
      Previous value: -4New value: +12
    • changedInput schema / properties / modifiers / properties / ranged / properties / singleRerolls / maxItems
      Previous value: -4New value: +12
  4. Changed4 schema fields changed
    • changedInput schema / properties / modifiers / description
      Previous value: -"Situational modifiers the simulator page offers, such as { \"all\": { \"cover\": true, \"hitModifier\": -1 } }, { \"melee\": { \"charged\": true } }, or { \"target\": { \"invulnerable\": 4 } }. commandReroll spends one Command Re-roll per phase on the first failed hit, wound, or save roll, or the first single-die Attacks roll below its average; compare with a run without it to judge the CP."New value: +"Situational modifiers the simulator page offers, such as { \"all\": { \"cover\": true, \"hitModifier\": -1 } }, { \"melee\": { \"charged\": true } }, { \"ranged\": { \"distance\": 18 } }, or { \"target\": { \"invulnerable\": 4 } }. distance is the inches to the target: weapons that cannot reach it make no attacks and are marked outOfRange, and each weapon is within half range by its own Range. commandReroll spends one Command Re-roll per phase on the first failed hit, wound, or save roll, or the first single-die Attacks roll below its average; compare with a run without it to judge the CP."
    • addedInput schema / properties / modifiers / properties / all / properties / distance
      Added value: +{
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / modifiers / properties / melee / properties / distance
      Added value: +{
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / modifiers / properties / ranged / properties / distance
      Added value: +{
      +  "maximum": 200,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  5. Changed3 schema fields changed
    • changedInput schema / properties / modifiers / properties / all / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage"
      +]
    • changedInput schema / properties / modifiers / properties / melee / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage"
      +]
    • changedInput schema / properties / modifiers / properties / ranged / properties / singleRerolls / items / enum
      Previous value: -[
      -  "hit",
      -  "wound"
      -]New value: +[
      +  "hit",
      +  "wound",
      +  "damage"
      +]
  6. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds substantial behavior beyond them: the exact return shape (no-enhancement baseline plus ranked enhancements with bearer, points and outcome), the ordering (best first), and a caveat that notCalculated enhancements omit rules the simulator cannot estimate and should be flagged rather than ranked. It also discloses the substitution rule and the narrow damage-only comparison.

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

Conciseness3/5

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

The core purpose is front-loaded and nearly every sentence carries real information, but it arrives as one dense run-on paragraph. Phrasings like "Returns without, the result with no enhancement, and enhancements, best first" force re-reading, and the scope-limit and notCalculated caveats, which matter most, are buried at the end.

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?

For a tool with seven parameters, deep nested attacker/defender objects and no output schema, the description covers what an agent most needs: what is simulated, what comes back, ranking order, the points filter and the notCalculated caveat. It leaves the modifiers, llm_model and conversation_id behavior entirely to the schema, but those are already documented there, so nothing critical is missing.

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

Parameters4/5

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

With schema coverage at 71%, the description still adds meaning the schema does not: points becomes "enhancements costing that much or less, such as the points a list has spare", detachment is tied to where enhancements come from, and enhancement is described as being replaced by the compared one. mode is essentially restated from the schema rather than extended, keeping it below a 5.

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 precise verb and resource: it simulates the attacking unit once per enhancement its characters (including attached leaders) can take plus once with none, against the defender. It explicitly anchors itself to the sibling simulate_combat ("as simulate_combat does"), so an agent can tell this apart from a plain combat simulation without opening either schema.

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 gives real invocation conditions: name the attacker's detachment because enhancements come from it; any enhancement named on the sides is replaced by the one being compared; points filters to enhancements at or below that cost. It also states a clear scope limit (damage against this one defender only, never movement, durability elsewhere or scoring), though it does not name an alternative tool for those other questions.

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.