Skip to main content
Glama

edit_mod_config

Safely edit Minecraft mod config files in config/ with JSON/TOML validation, diff preview, and automatic snapshots before changes.

Instructions

Safely edit a config file inside config/ with JSON/TOML validation, diff preview, and auto-snapshot.

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": {
      "instance_path": "<instance_path>",
      "config_filename": "<config_filename>",
      "new_content": "<new_content>"
    },
    "name": "edit_mod_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
new_contentYes
instance_pathYes
config_filenameYes

Output Schema

NameRequiredDescriptionDefault
pathYes
formatYes
dry_runYes
snapshot_idYes
preview_diffYes
bytes_writtenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: JSON/TOML validation before write, a diff preview, and an auto-snapshot implying recoverability. It still omits failure behavior on invalid content and the fact that the default call performs no write, which are material for a mutation tool.

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?

A single front-loaded sentence with no filler; every clause (validation, diff preview, auto-snapshot) adds distinct information.

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?

The output schema covers return values and the safety pipeline is stated, but for a mutation tool with zero annotation coverage and 0% parameter documentation, the description should clarify the dry_run default and instance_path. Adequate, not complete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely does not. It clarifies the config/ scoping of config_filename and that new_content is validated JSON/TOML, but instance_path and dry_run are never explained, and dry_run is the most operationally significant parameter.

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 names a specific verb and resource ("edit a config file inside config/") plus the safety pipeline applied. It distinguishes itself from read-only siblings like read_mod_config and list_mod_configs by being the mutation path, though it never names an alternative explicitly.

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

Usage Guidelines2/5

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

It says nothing about when to prefer this over direct file writes or how it relates to siblings such as rollback_snapshot or read_mod_config. Critically, it never mentions that dry_run defaults to true, so an agent gets no guidance on the preview-versus-commit workflow.

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