Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Read the game error log

hoi4.error_log
Read-onlyIdempotent

Retrieve and group Hearts of Iron IV game launch errors by category, with source file, line, and fix hints. Highlight new errors since the previous launch and changed mod files.

Instructions

Find errors from the last game launch and group them by category, with source files, lines and fix hints. Show which files changed since the log and which errors appeared after a relaunch; mod entries come first. Example: {"scope":"mod","category":"effect"}. Returns at most 20 entries (limit 50) with fix hints and which entries are new since the previous launch.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
scopeNoall
offsetNo
categoryNo
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.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description is free to add the details that matter: results are capped at 20 by default and 50 max, entries are grouped by category, mod entries sort first, and new-since-last-launch entries are flagged. What it does not cover is whether the log is re-read on every call or cached, and whether it fails when no log exists.

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 purpose, then behavior, then an example — a sensible order with no filler. There is mild redundancy: fix hints are mentioned twice (opening sentence and closing sentence), and the limit default/max repeats what the schema already declares.

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?

An output schema exists, so the description did not need to spell out the return shape and arguably over-explains it. Against a six-parameter, zero-coverage schema, however, the definition leaves the query/offset/workspaceId semantics and the no-log failure case unaddressed, which is a real gap for an agent constructing a call.

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?

With 0% schema coverage, the description has to carry all six parameters and only partly does. It demonstrates a filter combination via the example {"scope":"mod","category":"effect"} and restates the limit ceiling, but never explains query, offset, or workspaceId — the last of which is the least self-explanatory and defaults to "current".

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: "Find errors from the last game launch and group them by category", plus what each entry carries (source files, lines, fix hints). It is clearly distinguishable from a single-error explainer like hoi4.explain_error, though it never names an alternative explicitly.

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 is implied rather than stated: the reader infers this is the post-launch triage tool because it mentions the last launch and relaunch comparisons. There is no explicit when-to-use/when-not guidance, no mention of hoi4.explain_error for drilling into a single error, and no stated prerequisites.

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