Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Explore mod content and find free IDs

hoi4.mod_index
Read-onlyIdempotent

Summarize a Hearts of Iron IV mod's content and locate available event, focus, decision, idea, leader, or technology IDs across the mod, game, and dependencies.

Instructions

Summarize the content in a mod or find a free event ID across the mod, game and dependencies. Use overview for descriptors, folders and definitions (the 50 busiest namespaces; pass a namespace or prefix to list those starting with it), or next_id with a namespace or prefix. Example: {"mode":"next_id","kind":"event","namespace":"my_mod"}. Returns a compact summary; the first call indexes the mod, which takes seconds on a large one.

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_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoevent
modeNooverview
layerNomod
prefixNo
namespaceNo
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.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds real value beyond them: the first call builds an index that 'takes seconds on a large one', the return is a compact summary, and overview caps at the 50 busiest namespaces. It does not say whether the index persists across sessions or how staleness is handled, which matters for a tool with implicit caching.

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?

Two sentences plus an inline JSON example; the primary purpose is front-loaded and each clause carries information. The parenthetical about the 50 busiest namespaces is dense but earns its place, though the sentence mixing overview's two behaviors is slightly overloaded.

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 values need no explanation, and the indexing-cost warning covers the main operational surprise. Still, for a tool whose schema is entirely undocumented, leaving layer, kind's full enum and workspaceId unexplained is a real gap an agent could hit on a non-default 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?

Schema description coverage is 0% across 6 parameters, so the description must carry the load and only partly does. It explains mode, namespace/prefix (with the 'starting with it' prefix semantics), and implies layer via 'mod, game and dependencies', but kind is only illustrated with 'event' out of six enum values, layer's actual 'mod' vs 'all' distinction is never stated, and workspaceId is undocumented entirely.

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 two concrete verbs and their resources: summarize mod content, or find a free event ID. The scope ('across the mod, game and dependencies') is explicit, and nothing here overlaps with the sibling validation, error, localisation or reference tools, so an agent can route to it without opening a schema.

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?

Gives per-mode guidance: overview for descriptors, folders and definitions; next_id with a namespace or prefix. The worked example anchors the next_id call shape. It stops short of naming when to prefer a sibling tool (e.g. reference_search) for lookups, so it is strong but not fully exclusive.

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