Skip to main content
Glama
@adhisang/minecraft-modding-mcp

@adhisang/minecraft-modding-mcp

by adhi-jp

nbt-patch

Read-only

Apply ordered RFC 6902 add, remove, replace, and test operations to a typed NBT JSON document, returning a valid patched document and reporting test conflicts.

Instructions

Apply RFC 6902 add, remove, replace and test operations in order to a typed NBT JSON document; returns the new document. value is the JSON put at path: a typed node {type, value} at a node's path. Every operation must leave valid typed NBT; a failed test fails with ERR_JSON_PATCH_CONFLICT. Example: {"typedJson":{...},"patch":[{"op":"replace","path":"/root/value/answer/value","value":7}]}

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": {
      "typedJson": "<typedJson>",
      "patch": "<patch>"
    },
    "name": "nbt-patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYesRFC 6902 operations, applied in order; add, replace and test need value.
typedJsonYesTyped NBT document {rootName, root}; every node is {type, value}, as nbt-decode returns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with them: it returns a new document instead of mutating in place. Beyond that, the description adds real behavioral detail: every operation must leave valid typed NBT, and a failed test raises ERR_JSON_PATCH_CONFLICT. It still doesn't cover what happens on order-dependent partial failures or other error codes.

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?

The description is compact and front-loads the core action, then the value semantics, then the error contract and an example. The sentences are dense and slightly run-on, so it loses a point on readability, but nothing meaningful is wasted.

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 two-parameter tool with no output schema, this covers the action, the return value (the new document), a validation constraint, and an error code. The main remaining gap is whether the input document is ever mutated and how partial failures are reported, but the overall definition is close to complete.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining what `value` means: a typed node {type, value} placed at the node's path. The worked example with /root/value/answer/value also clarifies the path/value relationship in ways that the bare schema does not.

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 names a specific verb (apply), a specific operation family (RFC 6902 add/remove/replace/test), and a specific resource (a typed NBT JSON document), and states that the result is a new document. That is enough to tell it apart from siblings like nbt-decode and nbt-encode 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 Guidelines3/5

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

Usage is only implied: it says the input is 'as nbt-decode returns', which hints at a decode-patch-encode workflow, but it never says when to choose this tool over the siblings or when not to. There are no exclusions or preconditions stated explicitly.

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