Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Find a modding rule

hoi4.reference_search
Read-onlyIdempotent

Search offline wiki and installed game docs by plain words or script name to find HOI4 modding rules. Returns up to 10 candidates with file, lines, revision, and command meaning to select right rule.

Instructions

Find a modding rule in the offline wiki and installed game docs by plain words or script name. Returns up to 10 short candidates (limit up to 12) with file, lines, revision and, for a command, a one-line meaning and its scopes. Pick the one that fits, since several commands sound alike, then read it with hoi4.reference_read using its id and revision. Example: {"query":"add_timed_idea"} or {"query":"make a country hold elections now"}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "hoi4.reference_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
sourcesNo
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.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context: a capped candidate list (10 by default, limit up to 12) and the per-result payload (file, lines, revision, plus one-line meaning and scopes for commands). It does not mention ranking behavior or what happens when nothing matches, but the annotation bar is already met and this adds substantive detail.

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?

It is front-loaded with the verb and resource, then the return shape, then the follow-up action, with zero filler sentences. The example block adds value but slightly lengthens an otherwise tight three-sentence definition.

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?

For a four-parameter read-only search with an output schema, the description supplies enough to call it correctly: what it searches, how to phrase the query, what comes back, and which tool to chain into. The only gap is silence on the 'sources' and 'workspaceId' filters, which an agent would have to infer from the schema alone.

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 it only partly does: 'query' is well explained via both input modes and examples, and 'limit' is implied by 'up to 10 short candidates (limit up to 12)', which matches the schema default and maximum. 'sources' (game_doc/wiki/script_doc) and 'workspaceId' are never mentioned in the description, leaving two of four parameters with no prose explanation.

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?

The description gives a specific verb ('Find'), a specific resource ('a modding rule'), and the exact corpus it searches ('offline wiki and installed game docs'), with the accepted input forms ('plain words or script name'). It also differentiates from the sibling that follows it ('then read it with hoi4.reference_read using its id and revision'), so an agent knows this is the discovery step, not the read step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the workflow explicitly: search here, choose among candidates because 'several commands sound alike', then call hoi4.reference_read with the returned id and revision. The two inline examples ('add_timed_idea' vs 'make a country hold elections now') show the script-name and natural-language query modes, which removes ambiguity about how to phrase queries.

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