Skip to main content
Glama
Path of Building MCP Server

Path of Building MCP Server

by ianderse

analyze_defenses

Ranks a build's defenses by the binding constraint—lowest max hit per damage type—so you can see which hit kills the character and how much headroom remains before recommending defensive purchases.

Instructions

Ranks a build's defences by the BINDING CONSTRAINT: the max hit PoB computes per damage type (physical/fire/cold/lightning/chaos), lowest first, so you can see which hit kills this character and how much headroom the rest have. Use this before recommending any defensive purchase — TotalEHP averages across damage types and will rank a patch to the strongest type about level with a patch to the weakest. Also reports the usual layers (avoidance/mitigation/recovery, suppression, block, armour/PDR, regen). Limits: max hits use CAPPED resistance, so types at the cap tie and overcap counts for nothing here; the figures are for the currently loaded config and enemy settings. validate_build does NOT report max hits, so call this one for any survivability ranking.

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": {
      "build_name": "<build_name>"
    },
    "name": "analyze_defenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
build_nameYesBuild to analyze
sweep_resistancesNoMeasure how far the binding resistance is worth buying. Steps that resistance up 5% at a time on the real engine (a few seconds) and reports the point at which the floor changes hands, past which more of it buys nothing. Each step is a hypothetical calculation that swaps an equipped item for a copy carrying the extra resistance; the loaded build is never changed. Sweeps the lowest resisted max hit, so when physical is the overall floor it still ranks resistances and says physical owns the floor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly does: it discloses the capped-resistance limitation ('types at the cap tie and overcap counts for nothing'), that figures reflect the loaded config and enemy settings, and that the resistance sweep is hypothetical and never mutates the loaded build. It stops short of stating read-only/cost characteristics explicitly, but the sweep cost ('a few seconds') is a useful disclosure the structured fields do not carry.

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?

Front-loaded with the core ranking concept, then usage routing, then limits — a sensible order with no filler sentences. Sentences are dense and multi-clause, and the TotalEHP contrast is slightly verbose, but each clause carries operational information rather than restating the name.

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 two-parameter tool with no output schema and no annotations, the description covers what the ranking means, what secondary layers are reported, and the main interpretive trap (capped resistances causing ties). It does not describe the response shape or units for the max-hit figures, which leaves a small gap for an agent reasoning about the return value.

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 100%, and the schema already explains both build_name and sweep_resistances in detail, including the hypothetical-swap mechanics. The description adds framing (that the ranking is lowest-first by max hit) but no additional parameter-level syntax, ranges, or defaults beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and output ordering ('ranks a build's defences by the BINDING CONSTRAINT... lowest first') plus the exact metric being ranked (PoB max hit per damage type). It also explicitly distinguishes itself from validate_build, which 'does NOT report max hits', so an agent can separate it from siblings without opening any schema.

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?

Gives an explicit when-to-use trigger ('Use this before recommending any defensive purchase') and a when-not-to-use rationale (TotalEHP averages across types and mis-ranks patches). It also routes the agent away from validate_build for survivability ranking, which is exactly the alternative an agent would otherwise pick.

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