Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Read a modding rule

hoi4.reference_read
Read-onlyIdempotent

Read a documentation section by id and revision to view its content, starting line, and line limit. Continue past the first 80 lines using the returned continuation line.

Instructions

Read a documentation section returned by reference_search or reference_context. Pass its id and revision. Example: {"id":"","revision":""}. Returns at most 80 lines (40 by default) and 8,000 bytes, with a line to continue from.

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": {
      "id": "<id>",
      "revision": "<revision>"
    },
    "name": "hoi4.reference_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
sourceNo
maxLinesNo
revisionYes
startLineNo
startColumnNo
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?

Beyond the readOnly/idempotent/non-destructive annotations, it discloses output size caps (80 lines max, 40 by default, 8,000 bytes) and the existence of a continuation line, which is exactly the operating context an agent needs. It omits failure behavior, such as what happens with a stale revision, which keeps it below 5.

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?

Three front-loaded sentences: what to read, what to pass, what comes back. The inline JSON example earns its place, though it partially repeats the required-fields information already in the schema.

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 content need not be re-explained, and size limits are covered. However, for a 7-parameter tool with 0% schema coverage, the missing guidance on 'source' and 'workspaceId' leaves real gaps an agent could stumble on.

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 7 parameters, so the description must carry the load. It explains id, revision, and implicitly the default line cap and continuation, but leaves 'source' (enum with three values), 'workspaceId', and the startColumn semantics entirely undocumented outside the schema.

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 ('Read a documentation section') and ties it to the sibling tools that produce its inputs ('returned by reference_search or reference_context'), so it is distinguishable from those siblings without opening any 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?

Makes the prerequisite workflow explicit: the id and revision must come from reference_search or reference_context, and it shows a concrete example payload. It does not state when to prefer this over reference_context directly, but the ordering constraint is clear enough to act on.

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