Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Check a whole mod

hoi4.mod_health
Read-onlyIdempotent

Runs a full Hearts of Iron IV mod health check across error logs, engine rules, scripts, localisation, and assets, then returns the top problems with fixes and next tools.

Instructions

Check a whole mod in one call: the last error.log, the engine check (unknown effects, triggers and modifiers, duplicate ids, broken overrides), script validation, and the localisation and asset audits. Returns the 10 problems that matter most, each counted with 2 examples, its fix and the tool to use next, and which audits ran. Example: {"limit":5} or {"checks":["error_log","engine_check"]}. Takes up to a minute on a large mod.

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.mod_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
checksNo
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

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the safety profile is given. The description adds real behavior beyond that: the response caps at the 10 most important problems, each with a count, 2 examples, a fix and a recommended next tool, plus which audits actually ran, and it discloses a latency cost ('up to a minute on a large mod').

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?

Front-loaded with the aggregate scope, then the scope list, then the return shape, then concrete examples, then the performance caveat. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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?

The output schema exists, so the return-value explanation is bonus rather than obligation, and it is handled well. For a read-only audit aggregator the main missing piece is the meaning/scope of `workspaceId` and whether results depend on prior indexing; otherwise an agent has enough to call it correctly and interpret the reply.

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 has to carry parameter meaning. It partially does: the enumerated audits map onto the `checks` enum values and two concrete call examples are given, and 'the 10 problems that matter most' implicitly explains the `limit` cap. The third parameter, `workspaceId`, is never mentioned, leaving a real gap.

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 ('Check a whole mod in one call') and immediately enumerates the four audit families it covers: error.log, engine check, script validation, localisation and asset audits. That enumeration distinguishes it from the narrower siblings like hoi4.error_log and hoi4.script_validate without needing to name them.

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?

Usage context is implied rather than stated: 'in one call' plus the aggregate scope signals this is the broad sweep vs. the single-purpose siblings, and the return payload points to 'the tool to use next' for follow-up. However, it never explicitly says when to prefer hoi4.error_log or hoi4.script_validate over this, nor any prerequisite (e.g. whether an index must exist first).

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