Skip to main content
Glama
Verge3D MCP Server
by sanky369

verge3d_compress_ktx2

Compress PNG or JPEG textures into GPU-ready KTX2 files for Verge3D WebGL/WebXR assets, choosing UASTC or ETC1S encoding and optional mipmap generation.

Instructions

Compress a PNG or JPEG texture into GPU-ready KTX2 format using Verge3D's bundled toktx encoder.

Args: input_path: Path to input PNG/JPEG texture. output_path: Optional destination .ktx2 path (defaults to same path with .ktx2 extension). method: 'UASTC' (higher quality, Zstandard supercompressed) or 'ETC1S' (smaller file size). generate_mipmaps: Generate mipmap chain (recommended True).

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": {
      "input_path": "<input_path>"
    },
    "name": "verge3d_compress_ktx2"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoUASTC
input_pathYes
output_pathNo
generate_mipmapsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses useful traits — the encoder used, that output_path defaults to the input path with a .ktx2 extension, and the quality/size tradeoff between UASTC and ETC1S — but says nothing about overwrite behavior, whether the source file is retained, permissions, or failure modes for an operation that writes to disk.

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?

Front-loaded one-sentence summary followed by a compact per-parameter block; no filler or repetition. The Args list is slightly structural boilerplate but each line carries real 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?

An output schema exists, so return values need not be explained, and parameter coverage is solid. However, for an unannotated filesystem-writing tool, the description omits what an agent would want before invoking it — overwrite semantics, whether the destination directory must exist, and error behavior.

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 description coverage is 0%, and the description compensates by documenting all four parameters in an Args block, including defaults (UASTC, True, same-path .ktx2) and the practical meaning of the method choice. It stops short of stating valid literal values or constraints, so the compensation is good rather than complete.

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 — compress a PNG/JPEG texture into GPU-ready KTX2 — and names the concrete toolchain (Verge3D's bundled toktx encoder). The format and input-type specificity is enough to distinguish it from the sibling verge3d_compress_lzma without opening either 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 implied by the input types (textures) and the method tradeoff note, but there is no explicit 'use this when...' framing, no mention of when not to use it, and no pointer to an alternative such as verge3d_compress_lzma for non-texture assets.

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