Skip to main content
Glama

Guild Wars 1 Build Compiler

Encode a build into a template code

encode_template
Read-onlyIdempotent

Compile a build (professions, attributes, 8 skill names in English or French) into an official in-game template code. The build is validated first; on rule violations the errors are returned instead of a code. Unknown skill names return closest-match suggestions. IMPORTANT: template codes MUST come from this tool — never write or guess a code by hand, hand-written codes are invalid in-game. If unsure, verify any code with decode_template.

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": {
      "primary": "<primary>",
      "attributes": "<attributes>",
      "skills": "<skills>"
    },
    "name": "encode_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
forPvpNoSet true for a PvP character's bar: PvE-only skills become errors. Never use '(PvP)' skill versions, even here: templates always carry the PvE id.
skillsYesExactly 8 official English or French skill names in bar order. Use null for an empty slot.
forHeroNoSet true if this bar is for a hero (PvE-only skills are errors)
primaryYesPrimary profession, e.g. "Dervish"
secondaryNoSecondary profession, e.g. "Monk". Omit or "None" for none.
attributesYesAttribute point allocations (template format caps this at 15 entries)
unlockedSkillIdsNoOptional: unlocked skill ids from a GWToolbox account export (/exportaccount): learnedCharacterSkills for a player bar, unlockedAccountSkills for a hero. Skills outside this list are flagged as warnings.

Output Schema

NameRequiredDescriptionDefault
codeNoOfficial in-game template code (present on success)
validNofalse when the build resolved but is illegal; absent on the other two shapes
errorsNoPresent (non-empty) when resolution failed or the build is invalid
warningsNoAdvisories accompanying a successful code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / attributes / items / additionalProperties
      Added value: +false
    • changedInput schema / properties / forHero / description
      Previous value: -"Set true if this bar is for a hero (PvE-only skills are flagged)"New value: +"Set true if this bar is for a hero (PvE-only skills are errors)"
    • changedInput schema / properties / unlockedSkillIds / description
      Previous value: -"Optional: unlocked skill ids from a GWToolbox account export (/exportaccount). Skills outside this list are flagged as warnings."New value: +"Optional: unlocked skill ids from a GWToolbox account export (/exportaccount): learnedCharacterSkills for a player bar, unlockedAccountSkills for a hero. Skills outside this list are flagged as warnings."
  2. Changed1 schema field changed
    • changedInput schema / properties / skills / description
      Previous value: -"Exactly 8 skill names in bar order. Use null for an empty slot. Names must be exact English skill names."New value: +"Exactly 8 official English or French skill names in bar order. Use null for an empty slot."
  3. Changed1 schema field changed
    • changedInput schema / properties / forPvp / description
      Previous value: -"Set true for a PvP character's bar. PvP versions of split skills are only valid when this is true, and a PvP bar is expected to use them."New value: +"Set true for a PvP character's bar: PvE-only skills become errors. Never use '(PvP)' skill versions, even here: templates always carry the PvE id."
  4. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  5. Changed1 schema field changed
    • addedInput schema / properties / forPvp
      Added value: +{
      +  "default": false,
      +  "description": "Set true for a PvP character's bar. PvP versions of split skills are only valid when this is true, and a PvP bar is expected to use them.",
      +  "type": "boolean"
      +}
  6. Changed6 schema fields changed
    • changedInput schema / properties / attributes / description
      Previous value: -"Attribute point allocations"New value: +"Attribute point allocations (template format caps this at 15 entries)"
    • addedInput schema / properties / attributes / maxItems
      Added value: +15
    • changedOutput schema / properties / errors / description
      Previous value: -"Present (non-empty) only when resolution failed; mutually exclusive with code"New value: +"Present (non-empty) when resolution failed or the build is invalid"
    • addedOutput schema / properties / errors / items / properties / suggestions
      Added value: +{
      +  "description": "Closest-match names, on resolution errors",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / valid
      Added value: +{
      +  "description": "false when the build resolved but is illegal; absent on the other two shapes",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / warnings / items / properties / suggestions
      Added value: +{
      +  "description": "Closest-match names, on resolution errors",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  7. Changed7 schema fields changed
    • addedInput schema / properties / attributes / items / properties / attribute / maxLength
      Added value: +64
    • addedInput schema / properties / primary / maxLength
      Added value: +64
    • addedInput schema / properties / secondary / maxLength
      Added value: +64
    • changedInput schema / properties / skills / items / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 64,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / unlockedSkillIds / maxItems
      Added value: +8192
    • changedOutput schema / properties / errors / description
      Previous value: -"Present only when resolution failed"New value: +"Present (non-empty) only when resolution failed; mutually exclusive with code"
    • addedOutput schema / properties / warnings / description
      Added value: +"Advisories accompanying a successful code"
  8. Changed3 schema fields changed
    • changedOutput schema / properties / code / description
      Previous value: -"Official in-game template code (successful encode only)"New value: +"Official in-game template code (present on success)"
    • addedOutput schema / properties / errors / description
      Added value: +"Present only when resolution failed"
    • removedOutput schema / properties / valid
      Removed value: -{
      -  "type": "boolean"
      -}
  9. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare this a non-destructive, idempotent read, and the description adds real context beyond them: the build is validated first, rule violations return errors instead of a code, and unknown skill names return closest-match suggestions. It does not mention the warning behavior from unlockedSkillIds, leaving a small gap in the failure-path disclosure.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the core action, then failure modes, then the hard constraint and verification path. Every sentence carries distinct information an agent needs.

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

Completeness5/5

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

Return values are covered by an output schema, all seven parameters are described in the schema, and the description covers the critical correctness constraint and error behavior. Nothing essential to invoking it correctly is missing.

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 coverage is 100%, so every parameter including forPvp, forHero and unlockedSkillIds is already documented in the schema. The description only restates the shape (professions, attributes, 8 skill names, English or French) without adding new meaning to any individual parameter.

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 resource: compile a build (professions, attributes, 8 skill names) into an official in-game template code. That is unambiguously distinct from the sibling decode_template, which the description names as the inverse operation.

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?

Explicitly says codes MUST come from this tool and never be hand-written, and routes the agent to decode_template when verification is needed. The implicit alternative (hand-authoring a code) is ruled out directly rather than left to inference.

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.