Skip to main content
Glama

Get spec section

section_get
Read-only

Retrieve a WebAssembly spec clause by its id or anchor from core, js-api, or web-api. Get the clause title, cleaned prose, cross-references, formal references, and rendered URL.

Instructions

Fetch one spec clause by id or anchor, across core / js-api / web-api (set spec). For core: syntax-numtype, valid-unreachable, binary-instr, … For the embedding specs: modules, memories, streaming-modules, … Matches the rendered spec's stable fragment ids. Returns the clause title, cleaned prose, cross-references, the SpecTec formal_refs it cites (core), and the rendered URL. Core validation/execution clauses are SpecTec-generated: prose may be terse, but formal_refs + url point to the formal rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesClause id or anchor. For `core`: `syntax-numtype`, `valid-unreachable`, `binary-instr`, … For `js-api` / `web-api`: `modules`, `memories`, `streaming-modules`, … These match the stable fragment ids in the rendered spec.
specNoWhich WebAssembly spec to query: `core` (default; instructions, types, validation, execution, formats), `js-api` (JavaScript embedding), or `web-api` (Web platform integration).core
versionNoWebAssembly spec version to query. `latest` (default) is the current served version; `main` is the upstream working draft.latest
Behavior4/5

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

The description aligns with the `readOnlyHint` annotation by indicating a fetch operation. It adds valuable context about the nature of core validation/execution clauses being SpecTec-generated with terse prose but pointing to formal rules via `formal_refs` and URL. No contradiction with annotations.

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 adequately concise and front-loaded with the core purpose. It includes useful examples and return information without unnecessary fluff. A minor improvement could be slightly shorter sentences, but overall it is well-structured.

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?

Given no output schema, the description sufficiently outlines what the tool returns (clause title, cleaned prose, cross-references, formal_refs, rendered URL). It covers the main behavioral expectations and output structure, making it complete for the agent to understand the tool's functionality.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with descriptions for all three parameters. The tool description adds substantial meaning beyond the schema by providing concrete examples of valid `id` values (e.g., `syntax-numtype`, `valid-unreachable`) and explaining that these match stable fragment IDs in the rendered spec.

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 'Fetch' and resource 'spec clause by id or anchor', clearly stating its purpose. It distinguishes itself from sibling tools like `section_list` and `spec_version` by focusing on fetching a single clause by identifier, not listing or searching.

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 provides clear context on when to use this tool: to retrieve a specific clause by its id/anchor across different specs (core, js-api, web-api). It implicitly differentiates from siblings like `section_list` by focusing on individual clause retrieval, though it does not explicitly state when not to use it.

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