Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Check localisation in every language

hoi4.localisation_inspect
Read-onlyIdempotent

Inspect HOI4 localisation keys or audit a mod for undefined keys, missing translations, duplicates and file issues. Use it to check coverage before shipping.

Instructions

Read localisation in every language the game and mod ship. key: one key per language with file, line and layer, the languages lacking it and the files mentioning it. audit: keys the mod uses that no language defines, keys missing from a supported language, keys defined twice in one language, and file problems. coverage: keys per language. Example: {"mode":"key","key":"my_event.1.t"} or {"mode":"audit"}. Returns counts per problem and a few examples of each.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hoi4.localisation_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
modeNoaudit
limitNo
languageNo
workspaceIdNocurrent

Output Schema

NameRequiredDescriptionDefault
codeYes
dataYes
statusYes
blockersNo
artifactsNo
validationYes
diagnosticsNo
workspaceIdYes
changedFilesNo
filesScannedNo
proposedFilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.21.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, closed-world behavior, so the description's job is supplemental and it delivers: it discloses what each mode reports, that results are grouped by layer/line/file, and that audit output is "counts per problem and a few examples of each" rather than exhaustive. It does not discuss cost, scan scope limits, or pagination behavior, which would have pushed it higher.

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?

Extremely dense with zero waste: one sentence of scope, three labeled mode clauses, two copy-ready invocation examples, and a note on return shape. The colon-labeled structure is front-loaded and scannable despite the terseness.

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

Completeness3/5

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

With an output schema present, the description needn't explain return values, and annotations cover safety, so the remaining burden is mode selection and parameters. Mode selection is well covered, but the unmentioned language/workspaceId scoping means an agent cannot tell from the description whether `language` restricts the audit or key lookup.

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 0%, so the description carries the burden and only partly does: it explains `key` and all three `mode` values and provides two concrete example payloads. It never mentions `language`, `workspaceId`, or what `limit` (default 5, max 50) controls, which are three of five parameters left undocumented.

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?

States a specific verb and resource clearly: "Read localisation in every language the game and mod ship," and then enumerates the three modes (key, audit, coverage) it operates in. This is unambiguous against the write-oriented sibling hoi4.localisation_write, though that contrast is implied by the verb rather than called out explicitly.

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?

Each mode is described by what it returns (per-key language breakdown, problem classes, key counts), which effectively tells the agent which mode to pick for which question. There is no explicit when-not-to-use or pointer to a specific alternative tool, so it falls short of a 5.

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