Skip to main content
Glama
HOI4 Agent Tools

HOI4 Agent Tools

by klimPaskov

Find docs for a modding task

hoi4.reference_context
Read-onlyIdempotent

Find HOI4 modding documentation for events, decisions, focuses, GUI, maps, localisation, AI, and more, returning short reference sections you can expand with hoi4.reference_read.

Instructions

Find documentation for the content you are building: events, decisions, ideas, focuses, technology, GUI, maps, localisation or AI. Example: {"surface":"event","question":"fire an event after a delay"}. Returns up to 16 short sections; read more with hoi4.reference_read.

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": {
      "surface": "<surface>"
    },
    "name": "hoi4.reference_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
surfaceYes
questionNo
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?

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the description's added value is result shape: "up to 16 short sections" tells the agent output is truncated summaries rather than full docs, and the pointer to hoi4.reference_read explains how to get more. It doesn't mention the 24-section cap on limit or what happens with an empty question.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences plus an inline example, with the primary capability front-loaded and the follow-up tool named at the end. No filler or redundant restatement of the title.

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?

An output schema exists, so return-value explanation is not required, and the description covers trigger, example, and escalation path adequately for a lookup tool. The remaining gap is workspaceId semantics and any hint about querying a non-current workspace.

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 coverage is 0%, so the description must carry the load. It partially does: the surface values are enumerated in prose (though "general" is omitted), the example illustrates what a good question looks like, and "up to 16" hints at the limit default. workspaceId is never explained, leaving one of four parameters undocumented everywhere.

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 opens with a specific verb+resource ("Find documentation") and enumerates the domains covered (events, decisions, ideas, focuses, technology, GUI, maps, localisation, AI), which maps directly onto the surface enum. It also signals a follow-up path via hoi4.reference_read, though it never distinguishes itself from the sibling hoi4.reference_search.

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?

"for the content you are building" plus a concrete worked example ("fire an event after a delay") gives a clear trigger condition, and the escalation hint to hoi4.reference_read covers the next step. There is no exclusion guidance, e.g. when a full-text lookup via hoi4.reference_search would be preferable.

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