Skip to main content
Glama

List instructions

instruction_list
Read-only

Enumerate WebAssembly instructions with optional filters for category, version, prefix, or trapping behavior. Returns sorted rows with basic info for further detail.

Instructions

Enumerate WebAssembly instructions with optional filters: category (control, numeric, parametric, variable, table, memory, ref, i31, struct, array, extern, vec), introduced_in (1.0 | 2.0 | 3.0), prefix (mnemonic prefix like i32.), and can_trap (only trapping / only non-trapping instructions). Returns lightweight rows (incl. can_trap) sorted by opcode; follow up with instruction_get for full detail incl. trap conditions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prefixNoFilter to mnemonics starting with this prefix, e.g. `i32.` or `v128.`. Case-insensitive.
versionNoWebAssembly spec version to query. `latest` (default) is the current served version; `main` is the upstream working draft.latest
can_trapNoFilter by trapping behavior: `true` keeps only instructions that can trap at runtime, `false` keeps only those that never trap. See instruction_get for the per-instruction trap conditions.
categoryNoFilter by instruction category: control, numeric, parametric, variable, table, memory, ref, i31, struct, array, extern, vec (vector/SIMD).
introduced_inNoFilter to instructions introduced in this WebAssembly version: `1.0`, `2.0`, or `3.0`.
Behavior5/5

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

The description discloses that results are sorted by opcode and includes the can_trap field, which adds behavioral context beyond the readOnlyHint annotation. It also references instruction_get for trap conditions, managing expectations.

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?

The description is concise, consisting of two well-structured sentences. Every element earns its place, with no redundant or extraneous text.

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

Completeness5/5

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

The description adequately covers the tool's functionality, return format (lightweight rows, sorted, includes can_trap), and relationship to sibling tools. Given no output schema, it provides sufficient information for an agent to understand what to expect.

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?

With 100% schema description coverage, the baseline is 3. The description adds value by explaining the purpose of each filter, giving an example for prefix, and noting the return includes can_trap, thus providing meaningful context beyond schema field names.

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 uses the specific verb 'Enumerate' with the resource 'WebAssembly instructions' and lists all optional filters, clearly defining the tool's scope. It distinguishes from the sibling 'instruction_get' by noting that tool provides full detail.

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

Usage Guidelines4/5

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

The description states the tool returns lightweight rows and suggests following up with instruction_get for full detail, providing clear usage guidance. However, it could explicitly mention when not to use this tool versus alternatives like instruction_search.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xyzzylabs/wasm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server