Skip to main content
Glama

compile_gene

Compile a local Gene to WASM using Rotifer CLI. Validates or produces compilation artifacts for genes in the genes/ directory.

Instructions

Compile a local Gene to WASM via the Rotifer CLI (rotifer compile). The Gene must exist in the local genes/ directory. Returns compilation output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoForce compilation mode (auto-detected by default)
checkNoValidate only, don't produce artifacts (default: false)
gene_nameYesGene name (directory name under genes/)
wasm_pathNoPath to a pre-compiled .wasm file to wrap as IR
project_rootNoProject root path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It discloses the CLI invocation and the local-directory prerequisite, but says nothing about side effects (artifacts written to disk), where they land, failure behavior for a missing Gene, or the meaning of 'Returns compilation output'. Partial coverage.

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?

Three tight sentences with the purpose front-loaded, the prerequisite second, and the return noted last. Every sentence carries information and there is no filler.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description is adequate but thin. It omits artifact side effects, error modes, and any expansion of what the compilation output contains, leaving the agent to infer behavior from the schema alone.

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 description coverage is 100%, so all five parameters including the lang enum and check flag are already documented in the schema. The description adds only the required gene_name precondition, which is a marginal gain over structured data. Baseline 3 applies.

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?

States a specific verb ('Compile') and resource ('a local Gene to WASM') plus the mechanism ('via the Rotifer CLI'), so an agent can distinguish it from run_gene, test_gene, and install_gene. It never explicitly names a sibling it is not, which keeps it short of a 5.

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?

It gives one clear precondition ('The Gene must exist in the local genes/ directory') but offers no guidance on when to reach for this versus test_gene, run_gene, or wrap_gene, nor when-not to use it. Usage is implied rather than directed.

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