Skip to main content
Glama

attack_speed

Calculate frames per attack and IAS breakpoints for a Diablo II character, weapon, skill, and game version using imported animation and data tables.

Instructions

Attack speed: frames per attack for a setup, and the increased attack speed (IAS) breakpoints, computed from the game's animation data (animdata.d2) and data tables for the version. character: a class, a mercenary (rogue, town guard, iron wolf, barbarian mercenary) or a monstats.txt Id. weapon: a weapons.txt name or code ('' for unarmed; a mercenary's own weapon if left out). skill: a skills.txt name ('attack' for a normal attack): Zeal, Fury, Fend, Strafe and Dragon Talon are timed hit by hit with the animation rewinds; Jab, Frenzy, Double Swing, Double Throw, Dragon Claw as sequences; Whirlwind by its own weapon-only rule; Smite, Bash, Kick and other skills that follow attack speed. ias: total IAS from all gear including the weapon. weapon_ias: the part of it on the weapon (it counts twice for shape-shifted players and alone for Whirlwind). skill_ias: IAS from skills and auras (Fanaticism, Frenzy, Burst of Speed, the wereform skills' IAS, Blessed Aim's...), added after diminishing returns, can be negative (Holy Freeze, slows). form: 'human', or 'werewolf' / 'werebear' (or another shape-shift state). weapon2: the other hand's weapon for a Barbarian or Assassin holding two. hits: how many hits a multi-hit skill makes (default: its maximum). version: the game version the data was imported as, e.g. '1.13c'. The reply gives frames per hit separated by '/' (the last part is the final hit and the follow-through), then the IAS (from gear other than the weapon) at which that changes. Limits: no dual-wield Whirlwind, no Whirlwind or sequences while shape-shifted, no throwing-skill specifics beyond the throw animation; Fury and other shape-shifted skills use the documented wereform base-speed rule; mods are right only if their animdata.d2 and tables are imported.

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": {
      "character": "<character>"
    },
    "name": "attack_speed"
  }
}

Input Schema

NameRequiredDescriptionDefault
iasNo
formNohuman
hitsNo
skillNoattack
weaponNo
versionNo
weapon2No
characterYes
skill_iasNo
weapon_iasNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description must disclose behavior; it does so by naming the underlying animdata.d2 and table dependency, explaining the reply's frames-per-hit and IAS-threshold format, and listing important limitations. It still omits error handling and performance or auth context, so it is not exhaustive.

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?

The description is front-loaded and organized largely as a parameter glossary, which suits a 10-parameter tool. It is still dense and includes an incomplete phrase ('Blessed Aim's...') and some repeated limitation material, so it is not maximally concise.

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 complex 10-parameter calculation with no annotations and zero schema descriptions, the definition covers purpose, input meanings, output shape, data prerequisites, and major edge-case limits. The main remaining gap is guidance on sibling alternatives, plus error behavior, but the core call path is complete.

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

Parameters5/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 defines nearly every parameter semantically: character accepts a class, mercenary, or monstats ID; weapon accepts a name or code and empty for unarmed; IAS fields have distinct counting rules; form, hits, and version are explained. This is a strong compensation for the schema gap.

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 opens with a precise verb-and-resource statement: it computes frames per attack and IAS breakpoints from animation data and tables for a given version. It is clearly scoped to D2 attack-speed calculations, but it does not distinguish itself from siblings such as frame_breakpoints or calculate.

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?

It supplies implied usage through detailed input scenarios and explicit limits (no dual-wield Whirlwind, no Whirlwind or sequences while shape-shifted), so an agent can tell this is for attack-speed breakpoint computation. However, it never states when to prefer it over frame_breakpoints or another sibling, nor does it give formal when-not guidance.

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