Skip to main content
Glama
WebTrace MCP Server

WebTrace MCP Server

by kings0527

dump_wasm_memory

Read a specified region of a WASM instance's linear memory by offset and length, extracting it in hex, UTF-8, base64, or uint8 for debugging and reverse engineering.

Instructions

读取WASM实例的线性内存指定区域。

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": {
      "offset": "<offset>",
      "length": "<length>"
    },
    "name": "dump_wasm_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthYes
offsetYes
encodingNohex
instanceIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and delivers almost nothing: it does not say the operation is non-mutating, what happens if the region exceeds memory bounds, whether a missing instanceId falls back to a default instance, or what the failure modes are. The 1 MiB cap exists only in the schema and is not contextualized.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, but its brevity is under-specification rather than economy — nothing about region addressing, encoding, or instance targeting survives the trim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A four-parameter memory-inspection tool with no annotations, no output schema, and zero schema coverage needs a description that explains addressing, encoding choice, and instance selection. This one leaves all three unaddressed, so an agent could call it but not confidently predict the result.

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% across four parameters, so the description must compensate and does not: it only vaguely gestures at offset/length via 指定区域 and says nothing about the encoding enum (hex/utf8/base64/uint8) or the optional instanceId selector. An agent cannot tell from prose how the region is addressed or formatted.

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 sentence names a specific verb (读取 / read) and a specific resource (WASM 实例的线性内存 / a WASM instance's linear memory) plus a scope (指定区域 / specified region). That is enough to separate it from siblings like analyze_wasm or extract_wasm, 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?

There is no guidance on when to reach for this tool versus analyze_wasm, extract_bytecode or trace_execution, and no prerequisites stated — e.g. whether the instance must already be hooked or whether instanceId can be omitted. The agent must infer all routing and preconditions.

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