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

@adhisang/minecraft-modding-mcp

by adhi-jp

nbt-decode

Read-only

Decode Java Edition NBT bytes from base64, gzip, or uncompressed input into a typed JSON document with node types and values for inspection and downstream processing.

Instructions

Decode Java Edition NBT bytes (base64, gzip or uncompressed) into a typed JSON document {rootName, root}, where every node is {type, value} and long values are decimal strings. Example: {"nbtBase64":"CgABUgMABmFuc3dlcgAAACoA"}

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": {
      "nbtBase64": "<nbtBase64>"
    },
    "name": "nbt-decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
nbtBase64YesJava Edition NBT bytes as base64; whitespace is ignored.
compressionNoauto: gunzip when the bytes start with the gzip header.auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0-rc.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description goes further by disclosing the exact return shape and the important detail that long values are rendered as decimal strings to avoid precision loss. It omits error behavior for malformed or non-NBT input, which keeps it from a 5.

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 covering purpose, accepted encodings and output shape, followed by a compact worked example. No filler and nothing buried at the end.

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?

With no output schema, the description correctly takes on the burden of describing the return value, defining both the envelope {rootName, root} and per-node {type, value} structure. Remaining gaps are minor: nothing about failure modes for invalid base64/gzip payloads or size limits.

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 100%, including per-parameter descriptions and the compression enum with its default, so the baseline is 3. The description's phrase 'base64, gzip or uncompressed' loosely mirrors the compression values but adds no syntax or behavioral detail beyond 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 ('Decode Java Edition NBT bytes ... into a typed JSON document') and specifies the accepted input encodings. The name plus the mention of encoding clearly separates it from the nbt-encode sibling, and the output shape {rootName, root} is stated up front.

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 implied by the input acceptance criteria (base64, gzip or uncompressed), but the description never says when to choose this over nbt-encode or what to do with the resulting document. No exclusions or prerequisites are given, so the agent must infer the decode-inverse-of-encode relationship.

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