Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Check HOI4 script commands and scopes

hoi4.script_validate
Read-onlyIdempotent

Validate Hearts of Iron IV effect, trigger, or mod files to find broken syntax, unknown commands, and invalid scopes, or check that mod references resolve by kind.

Instructions

Find broken syntax, commands and scopes in an effect, trigger or mod file using the installed docs. Unknown helpers and native argument blocks stay unresolved. Example: {"source":"add_political_power = 10","kind":"effect","scope":"country"} or {"path":"events/a.txt"}. {"closure":true} instead counts whether the references of the whole mod resolve, per kind. Returns up to 12 findings.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
pathNo
limitNo
scopeNo
sourceNo
closureNo
bindingsNo
workspaceIdNocurrent
documentationNogame_doc

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 declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real value beyond them: it discloses the limitation that unknown helpers and native argument blocks stay unresolved, and states the result volume ('up to 12 findings'). It could go further on how findings are ordered or truncated, but the disclosed limitation is exactly the kind of context annotations cannot 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?

The purpose is front-loaded in the first sentence, and the limitation and closure mode follow in priority order. The inline JSON examples are compact and earn their space by disambiguating the source/path modes, though the sentence mixing closure into the example paragraph is slightly dense.

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 return structure need not be explained, and the description correctly just focuses on modes, limits and caveats. For a 9-parameter, zero-coverage tool it still leaves key gaps: whether path and source are mutually exclusive, what bindings does, and what the documentation enum (game_doc vs script_doc) changes about validation.

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% across 9 parameters, so the description has to compensate. It gives meaning to kind (effect vs trigger via the example), scope (country in the example), source, path and closure, plus implies limit through 'up to 12 findings'. bindings, workspaceId and documentation are left entirely unexplained in both schema and description, so the compensation is only partial.

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?

The description uses a specific verb and resource: it finds broken syntax, commands and scopes in an effect, trigger or mod file, validated against installed docs. That is clearly distinct from siblings like error_log or mod_health, though no sibling is named explicitly. An agent can tell what the tool does without opening the schema.

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?

Two concrete invocation examples ({source,kind,scope} and {path}) and the note that {closure:true} switches to whole-mod reference resolution give implied usage guidance. However, it never says when path versus source should be chosen, even though both are optional and the winner is undefined, and it names no alternative sibling tool for adjacent tasks.

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