Skip to main content
Glama
pz-modding-mcp

pz-modding-mcp

by MrMikojo

pz_rebuild_indexes

Rebuild the Java API and item indexes from the installed Project Zomboid game after an update when a tool seems out of date.

Instructions

Rebuild the Java API and item indexes from the installed game. Only needed after a PZ update if a tool seems out of date: the tools rebuild by themselves when the game files change.

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": "pz_rebuild_indexes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does useful work by disclosing that the operation is self-healing and therefore rarely required, and that it reads from the installed game, but it says nothing about cost or duration, whether existing indexes are discarded first, what happens if the game install is missing, or whether it is safe to interrupt. Those gaps matter for an operation that regenerates state.

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 short sentences, both earning their place: the first defines the action, the second prevents unnecessary invocation. The load-bearing constraint about automatic rebuilding is placed where it will be read before the agent commits to the call.

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 zero-parameter maintenance tool with an output schema that documents its return values, this covers the essential questions: what it rebuilds, when it is needed, and when it is not. The remaining omission is operational cost and side effects on existing indexes, which is a real but secondary gap given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate and the baseline of 4 applies. The description correctly implies the call is argument-free by describing only installed-game-derived inputs.

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 pairs a specific verb ("Rebuild") with a specific resource ("the Java API and item indexes from the installed game"), so the agent knows exactly what the tool produces. It implicitly separates itself from the query-style siblings by framing this as a maintenance action rather than a read, but it never names any of them, which keeps it short of a 5.

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 precise trigger ("Only needed after a PZ update if a tool seems out of date") and the condition that makes it unnecessary ("the tools rebuild by themselves when the game files change"). That is an explicit when-to-use and when-not-to-use pair, which is exactly what an agent needs to avoid calling a heavy maintenance operation gratuitously.

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